org.openejb.client
Class ServerMetaData
java.lang.Object
org.openejb.client.ServerMetaData
- All Implemented Interfaces:
- Externalizable, Serializable
- public class ServerMetaData
- extends Object
- implements Externalizable
- Since:
- 11/25/2001
- See Also:
- Serialized Form
Method Summary |
InetAddress |
getAddress()
|
int |
getPort()
|
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays. |
void |
setAddress(InetAddress address)
|
void |
setPort(int port)
|
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerMetaData
public ServerMetaData()
ServerMetaData
public ServerMetaData(String host,
int port)
throws UnknownHostException
getPort
public int getPort()
getAddress
public InetAddress getAddress()
setPort
public void setPort(int port)
setAddress
public void setAddress(InetAddress address)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays. The
readExternal method must read the values in the same sequence
and with the same types as were written by writeExternal.
- Specified by:
readExternal
in interface Externalizable
- Parameters:
in
- the stream to read data from in order to restore the object
- Throws:
IOException
- if I/O errors occur
ClassNotFoundException
- If the class for an object being
restored cannot be found.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
- Specified by:
writeExternal
in interface Externalizable
- Parameters:
out
- the stream to write the object to
- Throws:
IOException
- Includes any I/O exceptions that may occur
Copyright © 1999-2005 OpenEJB. All Rights Reserved.