public class LargeState extends ReceiverAdapter
trace1=FRAG DEBUG STDOUT
If we didn't do this, we would have some retransmission, slowing the state transfer down.
| 构造器和说明 |
|---|
LargeState() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
getState(java.io.OutputStream ostream)
Allows an application to write a state through a provided OutputStream.
|
static void |
main(java.lang.String[] args) |
void |
receive(Message msg)
Called when a message is received.
|
void |
setState(java.io.InputStream istream)
Allows an application to read a state through a provided InputStream.
|
void |
start(boolean provider,
int size,
java.lang.String props,
boolean provider_fails,
boolean requester_fails,
long delay,
java.lang.String name) |
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
block, suspect, unblockpublic void start(boolean provider,
int size,
java.lang.String props,
boolean provider_fails,
boolean requester_fails,
long delay,
java.lang.String name)
throws java.lang.Exception
java.lang.Exceptionpublic void receive(Message msg)
ReceiverAdapterreceive 在接口中 MessageListenerreceive 在类中 ReceiverAdapterpublic void viewAccepted(View new_view)
ReceiverAdapterChannel.connect(String) returns.viewAccepted 在接口中 MembershipListenerviewAccepted 在类中 ReceiverAdapterpublic void setState(java.io.InputStream istream)
throws java.lang.Exception
ReceiverAdaptersetState 在接口中 MessageListenersetState 在类中 ReceiverAdapteristream - the InputStreamjava.lang.Exception - if the streaming fails, any exceptions should be thrown so that the state requester
can catch them and thus know what happenedInputStream.close()public void getState(java.io.OutputStream ostream)
throws java.lang.Exception
ReceiverAdaptergetState 在接口中 MessageListenergetState 在类中 ReceiverAdapterostream - the OutputStreamjava.lang.Exception - if the streaming fails, any exceptions should be thrown so that the state requester
can re-throw them and let the caller know what happenedOutputStream.close()public static void main(java.lang.String[] args)