com.ibm.aglet
Class AgletInfo

java.lang.Object
  |
  +--com.ibm.aglet.AgletInfo

public final class AgletInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

AgletInfo class is a object which contains the information of the aglet.

See Also:
Serialized Form

Constructor Summary
AgletInfo(AgletID aid, java.lang.String classname, java.net.URL codebase, java.lang.String origin, long birthtime, short api_major_version, short api_minor_version, java.lang.String authorityName)
          Constructs a AgletInfo with the specified parameters.
 
Method Summary
 java.lang.String getAddress()
           
 java.lang.String getAgletClassName()
          Gets the class name of the aglet.
 AgletID getAgletID()
          Gets the aglet id
 short getAPIMajorVersion()
          Gets the API major version to which the aglet is instantiated.
 short getAPIMinorVersion()
          Gets the API minor version to which the aglet is instantiated.
 java.lang.String getAuthorityName()
           
 java.net.URL getCodeBase()
          Gets the codebase address where the aglet code resides.
 long getCreationTime()
          Gets the time when the aglet is created.
 java.lang.String getOrigin()
          Gets the origin address where the aglet was instantiated.
 java.lang.String toString()
          Gets a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgletInfo

public AgletInfo(AgletID aid,
                 java.lang.String classname,
                 java.net.URL codebase,
                 java.lang.String origin,
                 long birthtime,
                 short api_major_version,
                 short api_minor_version,
                 java.lang.String authorityName)
Constructs a AgletInfo with the specified parameters. This is used internally and the aglet programmers should not use this API.
Parameters:
aid - the aglet identifier.
address - the address where the aglet currently resides.
classname - the classname of the aglet.
codebase - the codebase of the aglet classes.
origin - the address where the aglet was instantiated.
birthtime - the time when the aglet was instantiated.
api_major_version - major version.
api_minor_version - minor version.
authorityName - the authority's name of the aglet.
Method Detail

getAgletID

public AgletID getAgletID()
Gets the aglet id

getAgletClassName

public java.lang.String getAgletClassName()
Gets the class name of the aglet.

getOrigin

public java.lang.String getOrigin()
Gets the origin address where the aglet was instantiated.

getCodeBase

public java.net.URL getCodeBase()
Gets the codebase address where the aglet code resides.

getCreationTime

public long getCreationTime()
Gets the time when the aglet is created.

getAPIMajorVersion

public short getAPIMajorVersion()
Gets the API major version to which the aglet is instantiated.

getAPIMinorVersion

public short getAPIMinorVersion()
Gets the API minor version to which the aglet is instantiated.

toString

public java.lang.String toString()
Gets a string representation of the object.
Overrides:
toString in class java.lang.Object

getAddress

public java.lang.String getAddress()

getAuthorityName

public java.lang.String getAuthorityName()