public class ServiceInfo extends java.lang.Object implements java.io.Externalizable, Streamable
Modifier and Type | Field and Description |
---|---|
static byte |
ACK |
static byte |
LIST_SERVICES_RSP |
static byte |
SERVICE_DOWN |
static byte |
SERVICE_UP |
static byte |
SERVICES_MERGED |
Constructor and Description |
---|
ServiceInfo() |
ServiceInfo(byte type,
java.lang.String service,
Address host,
byte[] state) |
Modifier and Type | Method and Description |
---|---|
void |
readExternal(java.io.ObjectInput in) |
void |
readFrom(java.io.DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
long |
size() |
java.lang.String |
toString() |
static java.lang.String |
typeToString(int t) |
void |
writeExternal(java.io.ObjectOutput out) |
void |
writeTo(java.io.DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte SERVICE_UP
public static final byte SERVICE_DOWN
public static final byte LIST_SERVICES_RSP
public static final byte ACK
public static final byte SERVICES_MERGED
public ServiceInfo()
public ServiceInfo(byte type, java.lang.String service, Address host, byte[] state)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public long size()
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
readFrom
in interface Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String typeToString(int t)
Copyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.