public interface ClientPeer extends Peer
| Modifier and Type | Method and Description | 
|---|---|
void | 
connect(String connectionURL,
       LRMIMethod lrmiMethod)
Connects to the remote server peer. 
 | 
String | 
getConnectionURL()
Returns the connection URL associated with this peer. 
 | 
int | 
getConnectRetries()
Returns the number of connection retries associated with this peer. 
 | 
long | 
getObjectId()  | 
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. 
 | 
boolean | 
sendKeepAlive()
Send keep alive request to server 
 | 
void | 
setConnectRetries(int connectRetries)
Sets the number of connection retries associated with this peer. 
 | 
void | 
setObjectId(long objectId)  | 
disconnect, getProtocolAdapter, isConnectedvoid init(ITransportConfig config)
void connect(String connectionURL, LRMIMethod lrmiMethod) throws MalformedURLException, RemoteException
connectionURL - usually of the form MalformedURLException - if the URL is not understood by the implementationRemoteExceptionString getConnectionURL()
int getConnectRetries()
void setConnectRetries(int connectRetries)
Object invoke(Object proxy, LRMIMethod lrmiMethod, Object[] args, ConnectionPool connPool) throws ApplicationException, ProtocolException, RemoteException, InterruptedException
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.ApplicationExceptionInterruptedExceptionlong getObjectId()
void setObjectId(long objectId)
boolean sendKeepAlive()
Copyright © GigaSpaces.