All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.aglet.AgletInfo

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

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


Constructor Index

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

Method Index

 o clone(String, URL)
Deprecated.
 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. Deprecated.
 o toString()
Gets a string representation of the 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 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.
privilegeName - the name of the privilege in the current environment.

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()
Note: getPrivilegeName() is deprecated.

Gets the privilege name. This will be replaced with new Security API. Please do not use this method for the moment.

 o toString
 public String toString()
Gets a string representation of the object.

Overrides:
toString in class Object
 o clone
 public AgletInfo clone(String a,
                        URL c)
Note: clone() is deprecated.


All Packages  Class Hierarchy  This Package  Previous  Next  Index