com.sun.jini.phoenix
Class Activation.SystemImpl

java.lang.Object
  extended by com.sun.jini.phoenix.AbstractSystem
      extended by com.sun.jini.phoenix.Activation.SystemImpl
All Implemented Interfaces:
ActivationAdmin, ActivationSystem, Remote, ServerProxyTrust
Enclosing class:
Activation

 class Activation.SystemImpl
extends AbstractSystem
implements ServerProxyTrust


Field Summary
 
Fields inherited from interface java.rmi.activation.ActivationSystem
SYSTEM_PORT
 
Constructor Summary
Activation.SystemImpl()
           
 
Method Summary
 ActivationMonitor activeGroup(ActivationGroupID id, ActivationInstantiator group, long incarnation)
           
 Map getActivatableObjects(ActivationGroupID id)
          Returns a map from ActivationID to ActivationDesc for all activatable objects registered in the group registered under the specified activation group identifier.
 ActivationDesc getActivationDesc(ActivationID id)
           
 ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id)
           
 Map getActivationGroups()
          Returns a map from ActivationGroupID to ActivationGroupDesc for all registered activation groups.
 TrustVerifier getProxyVerifier()
          Returns a TrustVerifier that can be used to verify that a proxy can be trusted as a proxy for the service; that is, the isTrustedObject method of the returned verifier can be called with a candidate proxy.
 ActivationGroupID registerGroup(ActivationGroupDesc desc)
           
 ActivationID registerObject(ActivationDesc desc)
          returns a ConstrainableAID
 ActivationDesc setActivationDesc(ActivationID id, ActivationDesc desc)
           
 ActivationGroupDesc setActivationGroupDesc(ActivationGroupID id, ActivationGroupDesc desc)
           
 void shutdown()
           
 void unregisterGroup(ActivationGroupID id)
           
 void unregisterObject(ActivationID id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activation.SystemImpl

Activation.SystemImpl()
Method Detail

registerObject

public ActivationID registerObject(ActivationDesc desc)
                            throws ActivationException
returns a ConstrainableAID

Specified by:
registerObject in interface ActivationSystem
Throws:
ActivationException

unregisterObject

public void unregisterObject(ActivationID id)
                      throws ActivationException
Specified by:
unregisterObject in interface ActivationSystem
Throws:
ActivationException

registerGroup

public ActivationGroupID registerGroup(ActivationGroupDesc desc)
                                throws ActivationException
Specified by:
registerGroup in interface ActivationSystem
Throws:
ActivationException

activeGroup

public ActivationMonitor activeGroup(ActivationGroupID id,
                                     ActivationInstantiator group,
                                     long incarnation)
                              throws ActivationException,
                                     RemoteException
Specified by:
activeGroup in interface ActivationSystem
Throws:
ActivationException
RemoteException

unregisterGroup

public void unregisterGroup(ActivationGroupID id)
                     throws ActivationException
Specified by:
unregisterGroup in interface ActivationSystem
Throws:
ActivationException

setActivationDesc

public ActivationDesc setActivationDesc(ActivationID id,
                                        ActivationDesc desc)
                                 throws ActivationException
Specified by:
setActivationDesc in interface ActivationSystem
Throws:
ActivationException

setActivationGroupDesc

public ActivationGroupDesc setActivationGroupDesc(ActivationGroupID id,
                                                  ActivationGroupDesc desc)
                                           throws ActivationException
Specified by:
setActivationGroupDesc in interface ActivationSystem
Throws:
ActivationException

getActivationDesc

public ActivationDesc getActivationDesc(ActivationID id)
                                 throws UnknownObjectException
Specified by:
getActivationDesc in interface ActivationSystem
Throws:
UnknownObjectException

getActivationGroupDesc

public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id)
                                           throws UnknownGroupException
Specified by:
getActivationGroupDesc in interface ActivationSystem
Throws:
UnknownGroupException

shutdown

public void shutdown()
Specified by:
shutdown in interface ActivationSystem

getActivationGroups

public Map getActivationGroups()
Description copied from interface: ActivationAdmin
Returns a map from ActivationGroupID to ActivationGroupDesc for all registered activation groups. The map contains a snapshot of the state at the time of the call; subsequent state changes are not reflected in the map, nor do changes in the map cause changes in the state of the activation system daemon.

Specified by:
getActivationGroups in interface ActivationAdmin
Returns:
a map from ActivationGroupID to ActivationGroupDesc for all registered activation groups

getActivatableObjects

public Map getActivatableObjects(ActivationGroupID id)
                          throws UnknownGroupException
Description copied from interface: ActivationAdmin
Returns a map from ActivationID to ActivationDesc for all activatable objects registered in the group registered under the specified activation group identifier. The map contains a snapshot of the state at the time of the call; subsequent state changes are not reflected in the map, nor do changes in the map cause changes in the state of the activation system daemon.

Specified by:
getActivatableObjects in interface ActivationAdmin
Parameters:
id - activation group identifier
Returns:
a map from ActivationID to ActivationDesc for all activatable objects registered in the group registered under the specified activation group identifier
Throws:
UnknownGroupException - if no group is registered under the specified activation group identifier

getProxyVerifier

public TrustVerifier getProxyVerifier()
Description copied from interface: ServerProxyTrust
Returns a TrustVerifier that can be used to verify that a proxy can be trusted as a proxy for the service; that is, the isTrustedObject method of the returned verifier can be called with a candidate proxy. The verifier should be able to verify all proxies for the service, including proxies for resources (such as leases and registrations).

Specified by:
getProxyVerifier in interface ServerProxyTrust
Returns:
a TrustVerifier that can be used to verify that a proxy can be trusted as a proxy for the service


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.