Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.rmi.activation
Class ActivationDesc  view ActivationDesc download ActivationDesc.java

java.lang.Object
  extended byjava.rmi.activation.ActivationDesc
All Implemented Interfaces:
java.io.Serializable

public final class ActivationDesc
extends java.lang.Object
implements java.io.Serializable

Contains the information, necessary to activate the object. This information includes:


Field Summary
private  java.lang.String classname
          The class name.
private  java.rmi.MarshalledObject data
          The object specific intitalization data.
private  ActivationGroupID groupid
          The group id.
private  java.lang.String location
          The code location URL.
private  boolean restart
          The start mode.
(package private) static long serialVersionUID
          Use SVUID for interoperability.
 
Constructor Summary
ActivationDesc(ActivationGroupID groupID, java.lang.String className, java.lang.String location, java.rmi.MarshalledObject data)
          Create the new activation description.
ActivationDesc(ActivationGroupID groupID, java.lang.String className, java.lang.String location, java.rmi.MarshalledObject data, boolean restart)
          Create the new activation description, providing full information.
ActivationDesc(java.lang.String className, java.lang.String location, java.rmi.MarshalledObject data)
          Create the new activation description, assuming the object group is the ActivationGroup.currentGroupID() 55 .
ActivationDesc(java.lang.String className, java.lang.String location, java.rmi.MarshalledObject data, boolean restart)
          Create the new activation description, assuming the object group is the ActivationGroup.currentGroupID() 55 .
 
Method Summary
(package private) static boolean eq(java.lang.Object a, java.lang.Object b)
          Compare by .equals if both a and b are not null, compare directly if at least one of them is null.
 boolean equals(java.lang.Object obj)
          Compare this object with another activation description for equality.
 java.lang.String getClassName()
          Get the class name of the object being activated
 java.rmi.MarshalledObject getData()
           
 ActivationGroupID getGroupID()
           
 java.lang.String getLocation()
          Get the code location URL ("codebase") of the object being activated.
 boolean getRestartMode()
          Get the object reactivation strategy after crash.
(package private) static int hash(java.lang.Object x)
          Get the hashcode of x or 0 if x == null.
 int hashCode()
          Get the hash code of this object (overridden to make the returned value consistent with .equals(..).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Use SVUID for interoperability.

See Also:
Constant Field Values

groupid

private ActivationGroupID groupid
The group id.


classname

private java.lang.String classname
The class name.


location

private java.lang.String location
The code location URL.


data

private java.rmi.MarshalledObject data
The object specific intitalization data.


restart

private boolean restart
The start mode.

Constructor Detail

ActivationDesc

public ActivationDesc(java.lang.String className,
                      java.lang.String location,
                      java.rmi.MarshalledObject data)
               throws ActivationException
Create the new activation description, assuming the object group is the ActivationGroup.currentGroupID() 55 .


ActivationDesc

public ActivationDesc(java.lang.String className,
                      java.lang.String location,
                      java.rmi.MarshalledObject data,
                      boolean restart)
               throws ActivationException
Create the new activation description, assuming the object group is the ActivationGroup.currentGroupID() 55 .


ActivationDesc

public ActivationDesc(ActivationGroupID groupID,
                      java.lang.String className,
                      java.lang.String location,
                      java.rmi.MarshalledObject data)
Create the new activation description. Under crash, the object will only be reactivated on demand.


ActivationDesc

public ActivationDesc(ActivationGroupID groupID,
                      java.lang.String className,
                      java.lang.String location,
                      java.rmi.MarshalledObject data,
                      boolean restart)
Create the new activation description, providing full information.

Method Detail

getGroupID

public ActivationGroupID getGroupID()

getClassName

public java.lang.String getClassName()
Get the class name of the object being activated


getLocation

public java.lang.String getLocation()
Get the code location URL ("codebase") of the object being activated.


getData

public java.rmi.MarshalledObject getData()

getRestartMode

public boolean getRestartMode()
Get the object reactivation strategy after crash.


equals

public boolean equals(java.lang.Object obj)
Compare this object with another activation description for equality.


hashCode

public int hashCode()
Get the hash code of this object (overridden to make the returned value consistent with .equals(..).


hash

static final int hash(java.lang.Object x)
Get the hashcode of x or 0 if x == null.


eq

static final boolean eq(java.lang.Object a,
                        java.lang.Object b)
Compare by .equals if both a and b are not null, compare directly if at least one of them is null.