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, unblock
public 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.Exception
public void receive(Message msg)
ReceiverAdapter
receive
在接口中 MessageListener
receive
在类中 ReceiverAdapter
public void viewAccepted(View new_view)
ReceiverAdapter
Channel.connect(String)
returns.viewAccepted
在接口中 MembershipListener
viewAccepted
在类中 ReceiverAdapter
public void setState(java.io.InputStream istream) throws java.lang.Exception
ReceiverAdapter
setState
在接口中 MessageListener
setState
在类中 ReceiverAdapter
istream
- 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
ReceiverAdapter
getState
在接口中 MessageListener
getState
在类中 ReceiverAdapter
ostream
- 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)