Class ServiceInfo
java.lang.Object
org.jgroups.mux.ServiceInfo
- All Implemented Interfaces:
Externalizable, Serializable, Streamable
Class used for service state communication between Multiplexers
- Version:
- $Id: ServiceInfo.java,v 1.7.2.1 2008/01/16 09:15:14 vlada Exp $
- Author:
- Bela Ban
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedlongsize()toString()static StringtypeToString(int t) voidvoidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
SERVICE_UP
public static final byte SERVICE_UP- See Also:
-
SERVICE_DOWN
public static final byte SERVICE_DOWN- See Also:
-
LIST_SERVICES_RSP
public static final byte LIST_SERVICES_RSP- See Also:
-
ACK
public static final byte ACK- See Also:
-
SERVICES_MERGED
public static final byte SERVICES_MERGED- See Also:
-
-
Constructor Details
-
ServiceInfo
public ServiceInfo() -
ServiceInfo
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
size
public long size() -
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
-
typeToString
-