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.
-
AgletInfo()
- Constructs a AgletInfo with no parameter.
-
AgletInfo(AgletID, String, String, URL, String, long, short, short, String, String)
- Constructs a AgletInfo with the specified parameters.
-
getAddress()
- Gets the address where the aglet currently resides
-
getAgletClassName()
- Gets the class name of the aglet
-
getAgletID()
- Gets the aglet id
-
getAPIMajorVersion()
- Gets the API major version to which the aglet is instantiated
-
getAPIMinorVersion()
- Gets the API minor version to which the aglet is instantiated
-
getAuthorityName()
- Gets the authority name.
-
getCodeBase()
- Gets the codebase address where the aglet code resides
-
getCreationTime()
- Gets the time when the aglet is created
-
getOrigin()
- Gets the origin address where the aglet was instantiated
-
getPrivilegeName()
- Gets the privilege name.
-
readExternal(ObjectInput)
-
-
readFrom(DataInput)
- Reads the aglet info from DataInput object.
-
toString()
- Converts to a string
-
writeExternal(ObjectOutput)
-
-
writeTo(DataOutput, URL)
- Write the aglet info to the data output object.
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.
AgletInfo
public AgletInfo()
- Constructs a AgletInfo with no parameter.
getAgletID
public AgletID getAgletID()
- Gets the aglet id
getAgletClassName
public String getAgletClassName()
- Gets the class name of the aglet
getOrigin
public String getOrigin()
- Gets the origin address where the aglet was instantiated
getCodeBase
public URL getCodeBase()
- Gets the codebase address where the aglet code resides
getAddress
public String getAddress()
- Gets the address where the aglet currently 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
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.
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.
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.
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.
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
readExternal
public void readExternal(ObjectInput out) throws IOException, ClassNotFoundException
toString
public String toString()
- Converts to a string
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index