Class CAUSAL.CausalNewViewHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.CAUSAL.CausalNewViewHeader
- All Implemented Interfaces:
Externalizable, Serializable, Streamable
- Enclosing class:
CAUSAL
- Version:
- $Id: CAUSAL.java,v 1.16.4.2 2008/01/22 10:01:18 belaban Exp $
- Author:
- Vladimir Blagojevic vladimir@cs.yorku.ca
- See Also:
-
Field Summary
FieldsFields inherited from class Header
HDR_OVERHEAD -
Constructor Summary
ConstructorsConstructorDescriptionUsed for externalization.CausalNewViewHeader(ViewId newViewId, int localTime, boolean complete) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidManual deserializationvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintsize()Size of this vector timestamp estimation, used in fragmentation.toString()voidManual serializationvoidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
CausalNewViewHeader
-
CausalNewViewHeader
public CausalNewViewHeader()Used for externalization.
-
-
Method Details
-
getNewViewId
-
getLocalTime
public int getLocalTime() -
isComplete
public boolean isComplete() -
size
-
writeExternal
Manual serialization- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
Manual deserialization- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionIllegalAccessExceptionInstantiationException
-
toString
-