public class CPeer extends BaseClientPeer
| Constructor and Description |
|---|
CPeer(PAdapter pAdapter,
ClientHandler handler,
ClientConversationRunner clientConversationRunner,
PlatformLogicalVersion serviceVersion) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInvoke() |
void |
clearAsyncContext() |
void |
close() |
void |
connect(String connectionURL,
LRMIMethod lrmiMethod)
Connects to the remote server peer.
|
void |
connectAsync(String connectionURL,
LRMIMethod lrmiMethod) |
void |
connectSync(String connectionURL,
LRMIMethod lrmiMethod) |
void |
disable() |
void |
disconnect()
Disconnects, effectively closes the connection.
|
boolean |
equals(Object obj) |
AsyncContext |
getAsyncContext() |
SocketChannel |
getChannel() |
IClassProvider |
getClassProvider() |
static LongAdder |
getConnectionsCounter() |
long |
getGeneratedTraffic() |
LRMIMonitoringModule |
getMonitoringModule() |
Reader |
getReader() |
long |
getReceivedTraffic() |
PlatformLogicalVersion |
getServiceVersion() |
Writer |
getWriter() |
int |
hashCode() |
void |
init(ITransportConfig config) |
Object |
invoke(Object proxy,
LRMIMethod lrmiMethod,
Object[] args,
ConnectionPool connPool)
Invokes a method on the remote object this peer is connected to.
|
protected boolean |
isClosed() |
boolean |
sendKeepAlive()
Sends a dummy one way request to the server - to check if it's alive
|
String |
toString() |
finalize, getConnectionURL, getConnectRetries, getObjectId, getProtocolAdapter, isConnected, setConnected, setConnectionURL, setConnectRetries, setObjectIdclearacquire, isAcquired, isFromPool, release, setAcquired, setFromPoolpublic CPeer(PAdapter pAdapter, ClientHandler handler, ClientConversationRunner clientConversationRunner, PlatformLogicalVersion serviceVersion)
public static LongAdder getConnectionsCounter()
public void init(ITransportConfig config)
public LRMIMonitoringModule getMonitoringModule()
getMonitoringModule in class ConnectionResourcepublic void connect(String connectionURL, LRMIMethod lrmiMethod) throws MalformedURLException, RemoteException
ClientPeerconnectionURL - usually of the form MalformedURLException - if the URL is not understood by the implementationRemoteExceptionpublic void connectAsync(String connectionURL, LRMIMethod lrmiMethod) throws MalformedURLException, RemoteException
MalformedURLExceptionRemoteExceptionpublic void connectSync(String connectionURL, LRMIMethod lrmiMethod) throws MalformedURLException, RemoteException
MalformedURLExceptionRemoteExceptionpublic void close()
close in class ConnectionResourceprotected boolean isClosed()
isClosed in class ConnectionResourcepublic void disconnect()
Peerpublic Reader getReader()
public SocketChannel getChannel()
public Writer getWriter()
public void afterInvoke()
public IClassProvider getClassProvider()
public Object invoke(Object proxy, LRMIMethod lrmiMethod, Object[] args, ConnectionPool connPool) throws ApplicationException, ProtocolException, RemoteException, InterruptedException
ClientPeerlrmiMethod - contains necessary information about invocation remote callargs - arguments to the methodProtocolException - a result of a remote method invocation is thrown while
unmarshalling the arguments or de/serialization request/reply
packet.RemoteException - failed to open/close connection with remote endpoint.ApplicationExceptionInterruptedExceptionpublic long getGeneratedTraffic()
getGeneratedTraffic in class ConnectionResourcepublic long getReceivedTraffic()
getReceivedTraffic in class ConnectionResourcepublic void disable()
disable in class ConnectionResourcepublic boolean sendKeepAlive()
public PlatformLogicalVersion getServiceVersion()
public AsyncContext getAsyncContext()
public void clearAsyncContext()
Copyright © GigaSpaces.