org.codehaus.gpars

groovyx.gpars.remote
[Java] Class LocalNode

java.lang.Object
  groovyx.gpars.remote.LocalNode

@SuppressWarnings({"MagicNumber"})
public class LocalNode
extends java.lang.Object

Representation of local node

Authors:
Alex Tkachman


Field Summary
private java.util.UUID id

private java.util.List listeners

private LocalHost localHost

private Actor mainActor

private java.util.concurrent.ThreadPoolExecutor scheduler

 
Constructor Summary
LocalNode()

LocalNode(java.lang.Runnable runnable)

LocalNode(LocalHost provider)

LocalNode(LocalHost provider, java.lang.Runnable runnable)

 
Method Summary
void addDiscoveryListener(RemoteNodeDiscoveryListener listener)

void addDiscoveryListener(groovy.lang.Closure 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()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

id

private final java.util.UUID id


listeners

private final java.util.List listeners


localHost

private LocalHost localHost


mainActor

private final Actor mainActor


scheduler

private final java.util.concurrent.ThreadPoolExecutor scheduler


 
Constructor Detail

LocalNode

public LocalNode()


LocalNode

public LocalNode(java.lang.Runnable runnable)


LocalNode

public LocalNode(LocalHost provider)


LocalNode

public LocalNode(LocalHost provider, java.lang.Runnable runnable)


 
Method Detail

addDiscoveryListener

public void addDiscoveryListener(RemoteNodeDiscoveryListener listener)


addDiscoveryListener

public void addDiscoveryListener(groovy.lang.Closure listener)


connect

public void connect()


connect

public void connect(LocalHost provider)


disconnect

public void disconnect()


getId

public java.util.UUID getId()


getLocalHost

public SerialHandles getLocalHost()


getMainActor

public Actor getMainActor()


getScheduler

public java.util.concurrent.Executor getScheduler()


onConnect

public void onConnect(RemoteNode node)


onDisconnect

public void onDisconnect(RemoteNode node)


removeDiscoveryListener

public void removeDiscoveryListener(RemoteNodeDiscoveryListener listener)


toString

@Override
public java.lang.String toString()


 

Copyright © 2008–2010 Václav Pech. All Rights Reserved.