Class NodeResolverService
java.lang.Object
com.tccc.kos.commons.util.ready.ReadyBean
com.tccc.kos.commons.core.service.AbstractService
com.tccc.kos.core.service.noderesolver.NodeResolverService
- All Implemented Interfaces:
CtxEventListener,ContextHandleAware,HandleAware,Ready,ReadyAndReadyListener,ReadyListener
Service for resolving a
NodeId to an ip address on the local network.- Version:
- 2024-02-20
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.tccc.kos.commons.core.service.AbstractService
getHandle, getHandlePrefixMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompletedMethods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPathMethods inherited from interface com.tccc.kos.commons.util.ready.ReadyAndReadyListener
onBeanReady, onDependenciesReadyMethods inherited from interface com.tccc.kos.commons.util.ready.ReadyListener
onDependenciesGroupReady
-
Constructor Details
-
NodeResolverService
public NodeResolverService()
-
-
Method Details
-
resolve
Resolve anodeIdto an ip address. Returns null if the nodeId has no known address. -
resolve
Resolve a hostname to an ip address if the hostname happens to be a known nodeId. Returns null if the hostname doesn't match any known node.
-