Class aglet.AgletInfo
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aglet.AgletInfo

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

public final class AgletInfo
extends Object
implements Externalizable
AgletInfo class is a object which contains the information of the aglet.

Constructor Index

 o AgletInfo()
Constructs a AgletInfo with no parameter.
 o AgletInfo(AgletID, String, String, URL, String, long, short, short, String, String)
Constructs a AgletInfo with the specified parameters.

Method Index

 o getAddress()
Gets the address where the aglet currently resides
 o getAgletClassName()
Gets the class name of the aglet
 o getAgletID()
Gets the aglet id
 o getAPIMajorVersion()
Gets the API major version to which the aglet is instantiated
 o getAPIMinorVersion()
Gets the API minor version to which the aglet is instantiated
 o getAuthorityName()
Gets the authority name.
 o getCodeBase()
Gets the codebase address where the aglet code resides
 o getCreationTime()
Gets the time when the aglet is created
 o getOrigin()
Gets the origin address where the aglet was instantiated
 o getPrivilegeName()
Gets the privilege name.
 o readExternal(ObjectInput)
 o readFrom(DataInput)
Reads the aglet info from DataInput object.
 o toString()
Converts to a string
 o writeExternal(ObjectOutput)
 o writeTo(DataOutput, URL)
Write the aglet info to the data output object.

Constructors

 o AgletInfo
  public AgletInfo(AgletID aid,
                   String address,
                   String classname,
                   URL codebase,
                   String origin,
                   long birthtime,
                   short api_major_version,
                   short api_minor_version,
                   String authorityName,
                   String privilegeName)
Constructs a AgletInfo with the specified parameters. This will be removed in the future release.
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
authorityName - the authority's name of the aglet
privilegeName - the name of the privilege in the current environment.
 o AgletInfo
  public AgletInfo()
Constructs a AgletInfo with no parameter.

Methods

 o getAgletID
  public AgletID getAgletID()
Gets the aglet id
 o getAgletClassName
  public String getAgletClassName()
Gets the class name of the aglet
 o getOrigin
  public String getOrigin()
Gets the origin address where the aglet was instantiated
 o getCodeBase
  public URL getCodeBase()
Gets the codebase address where the aglet code resides
 o getAddress
  public String getAddress()
Gets the address where the aglet currently resides
 o getCreationTime
  public long getCreationTime()
Gets the time when the aglet is created
 o getAPIMajorVersion
  public short getAPIMajorVersion()
Gets the API major version to which the aglet is instantiated
 o getAPIMinorVersion
  public short getAPIMinorVersion()
Gets the API minor version to which the aglet is instantiated
 o getAuthorityName
  public String getAuthorityName()
Gets the authority name. This will be replaced with new Security API. Please do not use this method for the moment.
 o getPrivilegeName
  public String getPrivilegeName()
Gets the privilege name. This will be replaced with new Security API. Please do not use this method for the moment.
 o writeTo
  public void writeTo(DataOutput s,
                      URL cb) throws IOException
Write the aglet info to the data output object. It is not normally used by the aglet programmers. This will be removed in the future release.
 o readFrom
  public static AgletInfo readFrom(DataInput s) throws IOException
Reads the aglet info from DataInput object. It is not normally used by the aglet programmers. This will be removed in the future release.
 o writeExternal
  public void writeExternal(ObjectOutput out) throws IOException
 o readExternal
  public void readExternal(ObjectInput out) throws IOException, ClassNotFoundException
 o toString
  public String toString()
Converts to a string
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index