Package org.jgroups.mux
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 byte
static final byte
static final byte
static final byte
static final byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedlong
size()
toString()
static String
typeToString
(int t) void
void
writeTo
(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:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
size
public long size() -
writeTo
Description copied from interface:Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeTo
in interfaceStreamable
- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFrom
in interfaceStreamable
- Throws:
IOException
IllegalAccessException
InstantiationException
-
toString
-
typeToString
-