|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SocketStatus
SocketStatus
is a remote interface for assigning
probabilities to channels in the distributed system.
Field Summary | |
---|---|
static int |
BASE
Reliable channel |
static java.lang.String |
SOCKET_STATUS
Registry lookup name |
Method Summary | |
---|---|
void |
commit()
This method must be invoked before the current reachability pattern will be activated. |
java.util.Map<java.net.InetAddress,java.lang.Integer> |
getStatus()
Returns the content of the current socket status object. |
void |
notifyStatus(java.util.Map<java.net.InetAddress,java.lang.Integer> commitedLinks)
Notifies any registered socket status implementations of the most recently commited reachability pattern of the local socket status instance. |
void |
register(SocketStatus sStatus)
Register the given socket status object with this socket status implementation, so as to notify the other socket status instances of changes to the reachability pattern. |
void |
setStatus(java.net.InetAddress inet,
int prob)
Set the probability of a datagram packet to be correctly delivered at the host identified by inet . |
Field Detail |
---|
static final int BASE
static final java.lang.String SOCKET_STATUS
Method Detail |
---|
void register(SocketStatus sStatus) throws java.rmi.RemoteException
java.rmi.RemoteException
void commit() throws java.rmi.RemoteException
setStatus
methods, an invocation of this method
will activate the newly set reachability pattern.
java.rmi.RemoteException
void notifyStatus(java.util.Map<java.net.InetAddress,java.lang.Integer> commitedLinks) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.net.InetAddress,java.lang.Integer> getStatus() throws java.rmi.RemoteException
java.rmi.RemoteException
void setStatus(java.net.InetAddress inet, int prob) throws java.rmi.RemoteException
inet
. The probability is
defined as prob
/ BASE
.
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |