| java.lang.Object com.sun.jbi.framework.ServiceUnitFramework
ServiceUnitFramework | public class ServiceUnitFramework (Code) | | This is the implementation of the Service Unit Framework, which provides
an interface to the Service Unit Manager of all components. This class is
used solely by the Component Framework during startup and shutdown of
components.
author: Sun Microsystems, Inc. |
ServiceUnitFramework | ServiceUnitFramework(EnvironmentContext env)(Code) | | Constructor.
Parameters: env - the EnvironmentContext for JBI. |
initializeServiceUnits | void initializeServiceUnits(Component comp)(Code) | | Initialize all Service Units for a component. This is required in order
to ensure that a component knows about all of its Service Units after it
has been shut down and restarted.
Each initialization call is done under a time limit. There is the danger
that a hung component could have many Service Units deployed to it, and
this could result in a very long time period waiting for each of those
initialization calls to time out. Therefore, a heuristic check is used
here; if 3 consecutive calls time out, no more calls are made. Note
that this happens only if the 3 timeouts are on consecutive calls. Each
time a call completes (successfully or not) before the timeout interval
expires, the timeout count is reset.
Parameters: comp - the Component instance for this component. |
shutDownServiceUnits | void shutDownServiceUnits(Component comp)(Code) | | Shut down all active Service Units for a component.
Parameters: comp - the Component instance for this component. |
startServiceUnits | void startServiceUnits(Component comp)(Code) | | Start Service Units for a component, based on their desired states at
the last shutdown of the component.
Parameters: comp - the Component instance for this component. |
stopServiceUnits | void stopServiceUnits(Component comp)(Code) | | Stop all active Service Units for a component, after checkpointing
their states.
Parameters: comp - the Component instance for this component. |
updateServiceAssemblies | void updateServiceAssemblies(Set<String> saNames)(Code) | | Update the state of Service Assemblies. For each Service Assembly whose
name is in the provided list, set the state, and also start any service
connections that need to be started.
Parameters: saNames - The list of Service Assembly names to update. |
|
|