org.iids.aos.kernel.xmlrpc
Class EndpointStruct

java.lang.Object
  extended by org.iids.aos.kernel.xmlrpc.EndpointStruct
All Implemented Interfaces:
java.io.Serializable, Struct

public class EndpointStruct
extends java.lang.Object
implements Struct

The address of a listen port or communication endpoint, the XML-able version of kernel.Endpoint. Implements Struct and Java bean marshalling requirements so it can be marshalled by AgentScape's XML-RPC stuff.

Author:
Patrick Verkaik, Arno Bakker
See Also:
Serialized Form

Field Summary
protected  int port
          A port number.
protected  java.lang.String scid
          A self-certifying ID (a SHA-1 hash), or null if omitted.
protected  SocketAddressStruct tcpIP
          An IP SocketAddressStruct (IPv6) and a TCP port number.
 
Constructor Summary
EndpointStruct()
          Needed for serialization
EndpointStruct(Endpoint ep)
          Needed by XmlRpcKernelClient
EndpointStruct(SocketAddressStruct tcpIP, int port, java.lang.String scid)
           
 
Method Summary
static void addToHashtable(Endpoint ep, java.util.Hashtable<java.lang.String,java.lang.Object> ht, java.lang.String prefix)
          Used by Accept/ConnectResultStruct
 int getPort()
           
 java.lang.String getScid()
           
 SocketAddressStruct getTcpIP()
          Needed by Java beans marshaller
static Endpoint readFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> ht, java.lang.String prefix)
          Used by Accept/ConnectResultStruct DON'T Call this method getFromHashtable! This interferes with the XML-RPC library's marshalling code
 void setPort(int port)
           
 void setScid(java.lang.String scid)
           
 void setTcpIP(SocketAddressStruct tcpIP)
           
 Endpoint toOrig()
          Used by XmlRpcKernelClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tcpIP

protected SocketAddressStruct tcpIP
An IP SocketAddressStruct (IPv6) and a TCP port number.


port

protected int port
A port number.


scid

protected java.lang.String scid
A self-certifying ID (a SHA-1 hash), or null if omitted.

Constructor Detail

EndpointStruct

public EndpointStruct()
Needed for serialization


EndpointStruct

public EndpointStruct(SocketAddressStruct tcpIP,
                      int port,
                      java.lang.String scid)

EndpointStruct

public EndpointStruct(Endpoint ep)
Needed by XmlRpcKernelClient

Method Detail

getTcpIP

public SocketAddressStruct getTcpIP()
Needed by Java beans marshaller


setTcpIP

public void setTcpIP(SocketAddressStruct tcpIP)

getPort

public int getPort()

setPort

public void setPort(int port)

getScid

public java.lang.String getScid()

setScid

public void setScid(java.lang.String scid)

toOrig

public Endpoint toOrig()
Used by XmlRpcKernelClient


addToHashtable

public static void addToHashtable(Endpoint ep,
                                  java.util.Hashtable<java.lang.String,java.lang.Object> ht,
                                  java.lang.String prefix)
Used by Accept/ConnectResultStruct


readFromHashtable

public static Endpoint readFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> ht,
                                         java.lang.String prefix)
                                  throws IPCException
Used by Accept/ConnectResultStruct DON'T Call this method getFromHashtable! This interferes with the XML-RPC library's marshalling code

Throws:
IPCException


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.