public class RemoteMultiplexerClient extends Object
Constructor and Description |
---|
RemoteMultiplexerClient(MultiplexerClient multiplexerClient)
Creates a new Distributed Client, using the ICEClient multiplexer connection as the transport.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
_onInvokeForCtoS(RequestInfo ri)
Called when a remote/proxy object method is invoked.
|
protected void |
afterInvokeForCtoS(RequestInfo ri)
Called after a CtoS remote method is called.
|
void |
afterInvokForStoC(RequestInfo ri)
called after a callback method from the server to a local remote object.
|
void |
close() |
protected String |
createBindName(RequestInfo ri)
create a name that will be unique on the server.
|
protected void |
createSocketForStoC()
These are vsockets used to listen/wait for method calls from server.
|
protected void |
createSyncRunnableQueueThread() |
protected void |
finalize() |
protected BindInfo |
getBindInfo(RequestInfo ri,
String name,
Object obj,
Class interfaceClass,
boolean bDontUseQueue) |
protected BindInfo |
getBindInfo(String name)
Find the bind information based on unique name assigned to it.
|
protected BindInfo |
getBindInfo(String name,
Object obj,
Class interfaceClass,
boolean bUsesQueue,
boolean bIsBroadcast)
Create information that is used to manage a remote object.
|
protected BindInfo |
getBindInfoForObject(Object obj)
This is used to be able to find the unique name given to a remote object.
|
int |
getMaximumSocketsForCtoS() |
long |
getMethodCallCount()
number of remote methods called.
|
int |
getMinimumSocketsForCtoS() |
MultiplexerClient |
getMultiplexerClient() |
protected Object |
getProxyForBroadcast(String name,
Class c,
Object callback) |
protected Object |
getProxyForCtoS(RequestInfo ri,
String name,
Class c,
boolean bDontUseQueue)
Create a proxy instance for an Object that is on the server.
|
protected Object |
getProxyForCtoS(String name,
Class c,
boolean bUsesQueue) |
long |
getReceivedMethodCount() |
Socket |
getSocket()
Get the real socket.
|
protected VirtualSocket |
getSocketForCtoS() |
protected OAPool<VirtualSocket> |
getVirtualSocketCtoSPool() |
Object |
lookup(String lookupName)
Get a remote object from the server.
|
Object |
lookupBroadcast(String lookupName,
Object callback) |
protected Object |
onInvokeForCtoS(BindInfo bind,
Object proxy,
Method method,
Object[] args) |
protected void |
onRemoteThreadCreated(int totalCount,
int liveCount) |
void |
performDGC() |
protected void |
processMessageForStoC(RequestInfo ri) |
protected RemoteObjectInputStream |
processStoCSocket(VirtualSocket socket,
int threadId,
RemoteObjectInputStream ois) |
void |
registerBroadcast(String lookupName,
Object callback)
Register a remote object to be called for server broadcasts.
|
protected void |
releaseSocketForCtoS(VirtualSocket vs) |
protected void |
sendResponseForStoC(RequestInfo ri) |
void |
setMaximumSocketsForCtoS(int x) |
void |
setMinimumSocketsForCtoS(int x) |
protected void |
setupRequestQueueThread()
que that has a remoteThread process the request
|
protected void |
setupSyncRequestQueueThread()
que that is for sync requests, and sync return values/ack
|
protected void |
setupSyncRunnableQueueThread() |
public RemoteMultiplexerClient(MultiplexerClient multiplexerClient)
public MultiplexerClient getMultiplexerClient()
public void close()
protected void finalize() throws Throwable
public void registerBroadcast(String lookupName, Object callback) throws Exception
lookupName
- name used on server, see: RemoteMultiplexerServer.createClientBroadcastcallback
- an impl used when receiving messages from other clients
see RemoteMultiplexerServer#createClientBroadcast(String, Class)Exception
public Object lookupBroadcast(String lookupName, Object callback) throws Exception
Exception
public Object lookup(String lookupName) throws Exception
lookupName
- name that the server has used to bind the object.Exception
public Socket getSocket()
protected String createBindName(RequestInfo ri)
protected Object getProxyForCtoS(RequestInfo ri, String name, Class c, boolean bDontUseQueue) throws Exception
Exception
protected Object getProxyForCtoS(String name, Class c, boolean bUsesQueue) throws Exception
Exception
protected Object getProxyForBroadcast(String name, Class c, Object callback) throws Exception
Exception
protected Object onInvokeForCtoS(BindInfo bind, Object proxy, Method method, Object[] args) throws Throwable
Throwable
protected void afterInvokeForCtoS(RequestInfo ri)
protected boolean _onInvokeForCtoS(RequestInfo ri) throws Exception
Exception
public void setMinimumSocketsForCtoS(int x)
public int getMinimumSocketsForCtoS()
public void setMaximumSocketsForCtoS(int x)
public int getMaximumSocketsForCtoS()
protected OAPool<VirtualSocket> getVirtualSocketCtoSPool()
protected VirtualSocket getSocketForCtoS() throws Exception
Exception
protected void releaseSocketForCtoS(VirtualSocket vs) throws Exception
Exception
protected void createSocketForStoC() throws Exception
Exception
protected void onRemoteThreadCreated(int totalCount, int liveCount)
protected RemoteObjectInputStream processStoCSocket(VirtualSocket socket, int threadId, RemoteObjectInputStream ois) throws Exception
Exception
protected void setupRequestQueueThread()
protected void setupSyncRequestQueueThread()
protected void setupSyncRunnableQueueThread()
protected void createSyncRunnableQueueThread()
protected void processMessageForStoC(RequestInfo ri) throws Exception
Exception
protected void sendResponseForStoC(RequestInfo ri) throws Exception
Exception
public void afterInvokForStoC(RequestInfo ri)
protected BindInfo getBindInfo(String name)
public void performDGC()
protected BindInfo getBindInfoForObject(Object obj)
protected BindInfo getBindInfo(String name, Object obj, Class interfaceClass, boolean bUsesQueue, boolean bIsBroadcast)
protected BindInfo getBindInfo(RequestInfo ri, String name, Object obj, Class interfaceClass, boolean bDontUseQueue)
public long getMethodCallCount()
public long getReceivedMethodCount()
Copyright © 1999–2019 ViaOA. All rights reserved.