Package org.jgroups.stack
Class RouterStub
java.lang.Object
org.jgroups.stack.RouterStub
Client stub that talks to a remote GossipRouter
- Version:
- $Id: RouterStub.java,v 1.30.4.3 2009/02/06 16:41:55 vlada Exp $
- Author:
- Bela Ban
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionRouterStub
(String routerHost, int routerPort, InetAddress bindAddress) Creates a stub for a remote Router object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Register this process with the router undergroupname
.void
boolean
void
sendToAllMembers
(byte[] data, int offset, int length) void
sendToSingleMember
(Address dest, byte[] data, int offset, int length) void
setConnectionListener
(RouterStub.ConnectionListener conn_listener) toString()
-
Field Details
-
STATUS_CONNECTED
public static final int STATUS_CONNECTED- See Also:
-
STATUS_DISCONNECTED
public static final int STATUS_DISCONNECTED- See Also:
-
-
Constructor Details
-
RouterStub
Creates a stub for a remote Router object.- Parameters:
routerHost
- The name of the router's hostrouterPort
- The router's port
-
-
Method Details
-
isConnected
public boolean isConnected() -
setConnectionListener
-
getLocalAddress
- Throws:
SocketException
-
connect
Register this process with the router undergroupname
.- Parameters:
groupname
- The name of the group under which to register- Throws:
Exception
-
disconnect
public void disconnect() -
toString
-
sendToAllMembers
- Throws:
Exception
-
sendToSingleMember
- Throws:
Exception
-
getInputStream
- Throws:
IOException
-