public class MergeView extends View
Constructor and Description |
---|
MergeView()
Used by externalization
|
MergeView(Address creator,
long id,
Vector<Address> members,
Vector<View> subgroups)
Creates a new view
|
MergeView(ViewId vid,
Vector<Address> members,
Vector<View> subgroups)
Creates a new view
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
creates a copy of this view
|
View |
copy() |
Vector<View> |
getSubgroups() |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
addPayload, containsMember, equals, getCreator, getMembers, getPayload, getVid, getViewId, hashCode, printDetails, removePayload, size
public MergeView()
public MergeView(ViewId vid, Vector<Address> members, Vector<View> subgroups)
vid
- The view id of this view (can not be null)members
- Contains a list of all the members in the view, can be empty but not null.subgroups
- A list of Views representing the former subgroupspublic MergeView(Address creator, long id, Vector<Address> members, Vector<View> subgroups)
creator
- The creator of this view (can not be null)id
- The lamport timestamp of this viewmembers
- Contains a list of all the members in the view, can be empty but not null.subgroups
- A list of Views representing the former subgroupspublic Object clone()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class View
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class View
IOException
ClassNotFoundException
public void writeTo(DataOutputStream out) throws IOException
Streamable
writeTo
in interface Streamable
writeTo
in class View
IOException
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
Streamable
readFrom
in interface Streamable
readFrom
in class View
IOException
IllegalAccessException
InstantiationException
public int serializedSize()
serializedSize
in class View
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.