public class LocalNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.UUID |
id |
private java.util.List<RemoteNodeDiscoveryListener> |
listeners |
private LocalHost |
localHost |
private Actor |
mainActor |
private java.util.concurrent.ThreadPoolExecutor |
scheduler |
Constructor and Description |
---|
LocalNode() |
LocalNode(LocalHost provider) |
LocalNode(LocalHost provider,
java.lang.Runnable runnable) |
LocalNode(java.lang.Runnable runnable) |
Modifier and Type | Method and Description |
---|---|
void |
addDiscoveryListener(groovy.lang.Closure listener) |
void |
addDiscoveryListener(RemoteNodeDiscoveryListener listener) |
void |
connect() |
void |
connect(LocalHost provider) |
void |
disconnect() |
java.util.UUID |
getId() |
SerialHandles |
getLocalHost() |
Actor |
getMainActor() |
java.util.concurrent.Executor |
getScheduler() |
void |
onConnect(RemoteNode node) |
void |
onDisconnect(RemoteNode node) |
void |
removeDiscoveryListener(RemoteNodeDiscoveryListener listener) |
java.lang.String |
toString() |
private final java.util.List<RemoteNodeDiscoveryListener> listeners
private final java.util.concurrent.ThreadPoolExecutor scheduler
private final Actor mainActor
private final java.util.UUID id
private final LocalHost localHost
public LocalNode()
public LocalNode(java.lang.Runnable runnable)
public LocalNode(LocalHost provider)
public LocalNode(LocalHost provider, java.lang.Runnable runnable)
public void connect()
public void connect(LocalHost provider)
public void disconnect()
public void addDiscoveryListener(RemoteNodeDiscoveryListener listener)
public void addDiscoveryListener(groovy.lang.Closure listener)
public void removeDiscoveryListener(RemoteNodeDiscoveryListener listener)
public void onConnect(RemoteNode node)
public void onDisconnect(RemoteNode node)
public Actor getMainActor()
public java.util.concurrent.Executor getScheduler()
public java.util.UUID getId()
public java.lang.String toString()
toString
in class java.lang.Object
public SerialHandles getLocalHost()