Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.rmi.activation.ActivationDesc
A descriptor registered with the activation system can be used to
recreate/activate the object specified by the descriptor. The
MarshalledObject
in the object's descriptor is passed
as the second argument to the remote object's constructor for
object to use during reinitialization/activation.
Constructor Summary | |
ActivationDesc(String className,
CodeSource source,
MarshalledObject data)
className , that can be loaded from the
CodeSource, source , and whose initialization
information is data .
|
|
ActivationDesc(String className,
CodeSource source,
MarshalledObject data,
boolean restart)
className , that can be loaded from the
CodeSource, source , and whose initialization
information is data .
|
|
ActivationDesc(ActivationGroupID groupID,
String className,
CodeSource source,
MarshalledObject data)
className that can be loaded from the
CodeSource, source , and whose initialization
information is data .
|
|
ActivationDesc(ActivationGroupID groupID,
String className,
CodeSource source,
MarshalledObject data,
boolean restart)
className that can be loaded from the
CodeSource, source , and whose initialization
information is data .
|
Method Summary | |
String | getClassName()
|
CodeSource | getCodeSource()
|
MarshalledObject | getData()
|
ActivationGroupID | getGroupID()
|
boolean | getRestartMode()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActivationDesc(String className, CodeSource source, MarshalledObject data) throws ActivationException
className
, that can be loaded from the
CodeSource, source
, and whose initialization
information is data
. If this form of the constructor
is used, the groupID
defaults to the current id for
ActivationGroup
for this VM. All objects with the
same ActivationGroupID
are activated in the same VM.
Objects specified by a descriptor created by this constructor
will not restart automatically when the RMI activation daemon
starts, but will be activated on demand (via a method call to
the activatable object).
Note: as a side-effect of creating an ActivationDesc
,
if an ActivationGroup
for this VM is not currently
active, a default one is created. The default activation group
uses the java.rmi.RMISecurityManager
as a security
manager and upon reactivation will set the properties in the
activated group's VM to be the current set of properties. If
your application needs to use a different security manager,
it must set the group for the VM before creating a default
ActivationDesc
. See the method
ActivationGroup.createGroup
for details on how
to create an ActivationGroup
for the VM.
className
- the object's fully package qualified class name
source
- the object's code source (from where the class is loaded)
data
- the object's initialization (activation) data contained
in marshalled form.
public ActivationDesc(String className, CodeSource source, MarshalledObject data, boolean restart) throws ActivationException
className
, that can be loaded from the
CodeSource, source
, and whose initialization
information is data
. If this form of the constructor
is used, the groupID
defaults to the current id for
ActivationGroup
for this VM. All objects with the
same ActivationGroupID
are activated in the same VM.
Note: as a side-effect of creating an ActivationDesc
,
if an ActivationGroup
for this VM is not currently
active, a default one is created. The default activation group
uses the java.rmi.RMISecurityManager
as a security
manager and upon reactivation will set the properties in the
activated group's VM to be the current set of properties. If
your application needs to use a different security manager,
it must set the group for the VM before creating a default
ActivationDesc
. See the method
ActivationGroup.createGroup
for details on how
to create an ActivationGroup
for the VM.
className
- the object's fully package qualified class name
source
- the object's code source (from where the class is loaded)
data
- the object's initialization (activation) data contained
in marshalled form.
restart
- if true, the object is restarted when the activator
is restarted; if false, the object is activated on demand.
public ActivationDesc(ActivationGroupID groupID, String className, CodeSource source, MarshalledObject data)
className
that can be loaded from the
CodeSource, source
, and whose initialization
information is data
. All objects with the same
groupID
are activated in the same Java VM.
groupID
- the group's identifier (obtained from registering
ActivationSystem.registerGroup
method). The group
indicates the VM in which the object should be activated.
className
- the object's fully package-qualified class name
source
- the object's code source (from where the class is loaded)
data
- the object's initialization (activation) data contained
in marshalled form.
groupID
is nullpublic ActivationDesc(ActivationGroupID groupID, String className, CodeSource source, MarshalledObject data, boolean restart)
className
that can be loaded from the
CodeSource, source
, and whose initialization
information is data
. All objects with the same
groupID
are activated in the same Java VM.
groupID
- the group's identifier (obtained from registering
ActivationSystem.registerGroup
method). The group
indicates the VM in which the object should be activated.
className
- the object's fully package-qualified class name
source
- the object's code source (from where the class is loaded)
data
- the object's initialization (activation) data contained
in marshalled form.
restart
- if true, the object is restarted when the activator
is restarted; if false, the object is activated on demand.
groupID
is nullMethod Detail |
public ActivationGroupID getGroupID()
groupID
in the same virtual machine.public String getClassName()
public CodeSource getCodeSource()
public MarshalledObject getData()
public boolean getRestartMode()
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |