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, setObjectId
clear
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool
public CPeer(PAdapter pAdapter, ClientHandler handler, ClientConversationRunner clientConversationRunner, PlatformLogicalVersion serviceVersion)
public static LongAdder getConnectionsCounter()
public void init(ITransportConfig config)
public LRMIMonitoringModule getMonitoringModule()
getMonitoringModule
in class ConnectionResource
public void connect(String connectionURL, LRMIMethod lrmiMethod) throws MalformedURLException, RemoteException
ClientPeer
connectionURL
- usually of the form MalformedURLException
- if the URL is not understood by the implementationRemoteException
public void connectAsync(String connectionURL, LRMIMethod lrmiMethod) throws MalformedURLException, RemoteException
MalformedURLException
RemoteException
public void connectSync(String connectionURL, LRMIMethod lrmiMethod) throws MalformedURLException, RemoteException
MalformedURLException
RemoteException
public void close()
close
in class ConnectionResource
protected boolean isClosed()
isClosed
in class ConnectionResource
public void disconnect()
Peer
public 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
ClientPeer
lrmiMethod
- 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.ApplicationException
InterruptedException
public long getGeneratedTraffic()
getGeneratedTraffic
in class ConnectionResource
public long getReceivedTraffic()
getReceivedTraffic
in class ConnectionResource
public void disable()
disable
in class ConnectionResource
public boolean sendKeepAlive()
public PlatformLogicalVersion getServiceVersion()
public AsyncContext getAsyncContext()
public void clearAsyncContext()
Copyright © GigaSpaces.