public abstract class RemoteRefRegistry extends Object implements RemoteConnection
| Modifier and Type | Field and Description |
|---|---|
protected org.nustaq.serialization.FSTConfiguration |
conf |
ThreadLocal<ObjectSocket> |
currentObjectSocket |
protected boolean |
terminated |
| Constructor and Description |
|---|
RemoteRefRegistry() |
protected org.nustaq.serialization.FSTConfiguration conf
public ThreadLocal<ObjectSocket> currentObjectSocket
protected volatile boolean terminated
public Actor getPublishedActor(int id)
public Callback getPublishedCallback(int id)
public RemoteScheduler getScheduler()
public ConcurrentLinkedQueue<Actor> getRemoteActors()
public boolean isTerminated()
public void setTerminated(boolean terminated)
public int publishActor(Actor act)
public void unpublishActor(Actor act)
public int registerPublishedCallback(Callback cb)
public void removePublishedObject(int receiverKey)
public void registerRemoteRefDirect(Actor act)
public Actor registerRemoteActorRef(Class actorClazz, int remoteId, Object client)
protected void remoteRefStopped(Actor actor)
actor - protected void stopRemoteRefs()
protected void sendLoop(ObjectSocket channel) throws IOException
IOExceptionprotected void receiveLoop(ObjectSocket channel)
public boolean singleReceive(ObjectSocket channel) throws Exception
channel - Exceptionpublic void cleanUp()
public boolean singleSendLoop(ObjectSocket chan) throws IOException
chan - IOExceptionprotected void writeObject(ObjectSocket chan, RemoteCallEntry rce) throws Exception
Exceptionpublic void receiveCBResult(ObjectSocket chan, int id, Object result, Object error) throws Exception
Exceptionpublic void close()
close in interface RemoteConnectionpublic org.nustaq.serialization.FSTConfiguration getConf()
public abstract Actor getFacadeProxy()
Copyright © 2014. All rights reserved.