java.io.Externalizable, java.io.Serializable, Streamablepublic class ServiceInfo extends java.lang.Object implements java.io.Externalizable, Streamable
| Modifier and Type | Field | Description |
|---|---|---|
static byte |
ACK |
|
static byte |
LIST_SERVICES_RSP |
|
static byte |
SERVICE_DOWN |
|
static byte |
SERVICE_UP |
|
static byte |
SERVICES_MERGED |
| Constructor | Description |
|---|---|
ServiceInfo() |
|
ServiceInfo(byte type,
java.lang.String service,
Address host,
byte[] state) |
| Modifier and Type | Method | 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.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic long size()
public void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
StreamablereadFrom in interface Streamablejava.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String typeToString(int t)
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.