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.
| Constructor and Description |
|---|
LargeState() |
| Modifier and Type | Method and Description |
|---|---|
void |
getState(OutputStream ostream)
Allows an application to write a state through a provided OutputStream.
|
static void |
main(String[] args) |
void |
receive(Message msg)
Called when a message is received.
|
void |
setState(InputStream istream)
Allows an application to read a state through a provided InputStream.
|
void |
start(boolean provider,
int size,
String props,
boolean provider_fails,
boolean requester_fails,
long delay,
String name) |
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
block, suspect, unblockpublic void start(boolean provider,
int size,
String props,
boolean provider_fails,
boolean requester_fails,
long delay,
String name)
throws Exception
Exceptionpublic void receive(Message msg)
ReceiverAdapterreceive in interface MessageListenerreceive in class ReceiverAdapterpublic void viewAccepted(View new_view)
ReceiverAdapterChannel.connect(String) returns.viewAccepted in interface MembershipListenerviewAccepted in class ReceiverAdapterpublic void setState(InputStream istream) throws Exception
ReceiverAdaptersetState in interface MessageListenersetState in class ReceiverAdapteristream - the InputStreamException - 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(OutputStream ostream) throws Exception
ReceiverAdaptergetState in interface MessageListenergetState in class ReceiverAdapterostream - the OutputStreamException - 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(String[] args)
Copyright © 2025 JBoss, a division of Red Hat. All rights reserved.