Package com.newstep.solid.management.runtime

 
Subpackages Summary
beacon 
client 
component 
directory 
node 

 
Package Diagram Summary
runtime 

 
Sequence Diagram Summary
Initialize System Sequence 
Resume System Sequence 
Shutdown System Sequence 
Start System Sequence 
Stop System Sequence 
Suspend System Sequence 
 
Class Summary
AsyncExecHelper 
AsyncManagedExecutable 
DefaultActiveAgent 
DirectoryClientConfig 
ExecStateFuture 
ExecutableException 
InvalidStateException 
ManagedThread 
ManagementConfig 
OperationNotSupportedException 
SyncManagedExecutable 

 
Enumeration Summary
ExecState 

 
Note Summary
Note1 

 
Package Summary
beacon 
client 
component 
directory 
node 
Package Elements Detail
ActiveAgent
This provides an interface for a single default mbean server
for a Runtime system, that provides registration components
and subsystems beyond regular registration of an mbean server.



The connection may be local or it may exist remotely.


It resides over a single domain and takes responsibility
for administering it.
It is up to the implementors of ActiveAgent to determine
what access points are given to the ActiveAgent.
See com.newstep.solid.management.runtime.component.ComponentEnvironment
Author:
msimonsen
 

 
Operation Summary
generateNameGenerates a name based on the managed domain.
getDefaultServerAn handle to the mbean server.
getDomainThe domain of management.
registerThis will create an instance of the mbean on the server,
registerThis will create an instance of the mbean on the server,
unRegisterDe registers a registered mbean in the server.

generateName
 
Generates a name based on the managed domain.
Parameters:
obj
Return:
A generated object name.
Abstract.
Throws:
MalformedObjectNameException
 

 
Parameter Summary
obj 
return 

obj
 

return
 

getDefaultServer
 
An handle to the mbean server.
Return:
The default MBean server connection.
Abstract.
 

 
Parameter Summary
return 

return
 

getDomain
 
The domain of management.
Return:
The managed domain of this active agent.
Abstract.
 

 
Parameter Summary
return 

return
 

register
 
This will create an instance of the mbean on the server,
Parameters:
mbean
name - The object name
Abstract.
Throws:
InstanceAlreadyExistsException,MBeanRegistrationException,NotCompliantMBeanException,ReflectionException,MBeanException,IOException
 

 
Parameter Summary
mbean 
name 

mbean
 

name
 

register
 
This will create an instance of the mbean on the server,
Parameters:
mbean
Abstract.
Throws:
InstanceAlreadyExistsException,MBeanRegistrationException,NotCompliantMBeanException,ReflectionException,MBeanException,IOException,MalformedObjectNameException
 

 
Parameter Summary
mbean 

mbean
 

unRegister
 
De registers a registered mbean in the server.
Parameters:
name
Abstract.
Throws:
InstanceNotFoundException,MBeanRegistrationException,IOException
 

 
Parameter Summary
name 

name
 

ExecState
Represents the possible states for an executable entity. The states include
the base
  • IDLE: initial state

  • RUNNING: accepting new requests, processing requests

  • SUSPENDED: not accepting new requests, not processing pending requests

  • along with the transitional states

  • STARTING: may accept requests, may process requests

  • SUSPENDING: may not accept requests, may process pending requests

  • RESUMING: may accept reqeusts, may process pending requests

  • SHUTTINGDOWN: not accepting requests, processing pending requests

  • STOPPING: not accepting requests, not processing pending requests

  • DONE: not accepting requests, not processing requests

  • ERROR: not accepting requests, not processing requests
  • Full name:
    com.newstep.solid.management.runtime.ExecState
    Public.
    Visibility:
    public
     

     
    Enumeration Literal Summary
    DONE 
    ERROR 
    IDLE 
    RESUMING 
    RUNNING 
    SHUTTINGDOWN 
    STARTING 
    STOPPING 
    SUSPENDED 
    SUSPENDING 

    DONE
    Visibility:
    package
     

    ERROR
    Visibility:
    package
     

    IDLE
    Visibility:
    package
     

    RESUMING
    Visibility:
    package
     

    RUNNING
    Visibility:
    package
     

    SHUTTINGDOWN
    Visibility:
    package
     

    STARTING
    Visibility:
    package
     

    STOPPING
    Visibility:
    package
     

    SUSPENDED
    Visibility:
    package
     

    SUSPENDING
    Visibility:
    package
     

    ManagedExecutable
    Provides a contract for controlling an entitie's execution state.
    The ManagedExecutable construct supports asynchronous executables which
    transition to their destination states through a transient intermediate
    states (e.g. from RUNNING to STOPPING to IDLE).


    NOTE: it is possible for an executable to passthrough the intermediate
    state immediately and end in the stable transition state on the return from
    the invoking function. For example a synchronous version of ManagedExecutable
    may be in the RUNNING state on return from start() whereas an
    asynchronous version may return from start() in the STARTING
    state.

     

     
    Operation Summary
    addListeneradds the specified ManagedExecutableListener
    getState 
    removeListenerremoves the specified ManagedExecutableListener
    resumeinitiates the transition SUSPENDED to RUNNING. On successful return the
    executable will be in one of RESUMING or RUNNING states. If an error
    occurs the executable will be in the ERROR state.
    If the entity is asynchronous, it may be RESUMING on return.
    If the entity is synchronous, it will be RUNNING on return.
    <P>
    resume may only be invoked on executables that are in the SUSPENDED state.
    shutdowninitiates the transition from RUNNING to SHUTTINGDOWN (which transitions
    to DONE). On successful return the executable will be in the SHUTTINGDOWN
    state. If an error occurs during the shutdown the executable will be in
    the ERROR state.
    <P>
    shutdown may be invoked on executables in the RUNNING state
    startinitiates the transition from IDLE to RUNNING. On successful return the
    executable will be in one of STARTING or RUNNING states. If an error
    occurs while starting the component will be in the ERROR state on return.
    If the executable is asynchronous, it may be STARTING on return.
    If the executable is synchronous, it will be RUNNING on return.
    <P>
    start may only be invoked on ManagedExecutables that are in the IDLE state.
    stopinitiates the transition to the DONE state. On successful return
    the executable will be in one of STOPPING or DONE states. If an error
    occurs while stopping the executable will be in the ERROR state.
    If the executable is asynchronous, it may STOPPING on return.
    If the executable is synchronous, it will be DONE on return.
    <P>
    stop may be invoked from RUNNING, SUSPENDED, or SHUTTINGDOWN
    suspendinitiates the transition from RUNNING to SUSPENDED. On successful return,
    the executable will be in one of SUSPENDING or SUSPENDED states. If an
    error occurs while suspending the executable will be in the ERROR state.
    If the executable is asynchronous, it may be SUSPENDING on return.
    If the executable is synchronous, it will be SUSPENDED on return.
    <P>
    suspend may only be invoked on executables that are in the RUNNING state.

    addListener
     
    adds the specified ManagedExecutableListener
    Parameters:
    listener the ManagedExecutable listener to inform of state updates
    Abstract.
     

     
    Parameter Summary
    listener 

    listener
     

    getState
     
    Return:
    retrieves the current state of the ManagedExecutable
    Abstract.
     

     
    Parameter Summary
    return 

    return
     

    removeListener
     
    removes the specified ManagedExecutableListener
    Parameters:
    listener the ManagedExecutable listener which will no longer be
    informed of state updates
    Abstract.
     

     
    Parameter Summary
    listener 

    listener
     

    resume
     
    initiates the transition SUSPENDED to RUNNING. On successful return the
    executable will be in one of RESUMING or RUNNING states. If an error
    occurs the executable will be in the ERROR state.
    If the entity is asynchronous, it may be RESUMING on return.
    If the entity is synchronous, it will be RUNNING on return.


    resume may only be invoked on executables that are in the SUSPENDED state.

    Abstract.
    Throws:
    ExecutableException
     

    shutdown
     
    initiates the transition from RUNNING to SHUTTINGDOWN (which transitions
    to DONE). On successful return the executable will be in the SHUTTINGDOWN
    state. If an error occurs during the shutdown the executable will be in
    the ERROR state.


    shutdown may be invoked on executables in the RUNNING state

    Abstract.
    Throws:
    ExecutableException
     

    start
     
    initiates the transition from IDLE to RUNNING. On successful return the
    executable will be in one of STARTING or RUNNING states. If an error
    occurs while starting the component will be in the ERROR state on return.
    If the executable is asynchronous, it may be STARTING on return.
    If the executable is synchronous, it will be RUNNING on return.


    start may only be invoked on ManagedExecutables that are in the IDLE state.

    Abstract.
    Throws:
    ExecutableException
     

    stop
     
    initiates the transition to the DONE state. On successful return
    the executable will be in one of STOPPING or DONE states. If an error
    occurs while stopping the executable will be in the ERROR state.
    If the executable is asynchronous, it may STOPPING on return.
    If the executable is synchronous, it will be DONE on return.


    stop may be invoked from RUNNING, SUSPENDED, or SHUTTINGDOWN

    Abstract.
    Throws:
    ExecutableException
     

    suspend
     
    initiates the transition from RUNNING to SUSPENDED. On successful return,
    the executable will be in one of SUSPENDING or SUSPENDED states. If an
    error occurs while suspending the executable will be in the ERROR state.
    If the executable is asynchronous, it may be SUSPENDING on return.
    If the executable is synchronous, it will be SUSPENDED on return.


    suspend may only be invoked on executables that are in the RUNNING state.

    Abstract.
    Throws:
    ExecutableException
     

    ManagedExecutableListener
    implementing ManagedExecutableListener allows an entity to receive
    notifications of state changes within a ManagedExecutable
     

     
    Operation Summary
    doneindicates the specified ManagedExecutable has reached the DONE state
    errorindicates the specified ManagedExecutable has reached the ERROR state
    idleindicates the specified ManagedExecutable has reached the IDLE state
    resumingindicates the specified ManagedExecutable has reached the RESUMING state
    runningindicates the specified ManagedExecutable has reached the RUNNING state
    shuttingDownindicates the specified ManagedExecutable has reached the SHUTTINGDOWN state
    startingindicates the specified ManagedExecutable has reached the STARTING state
    stoppingindicates the specified ManagedExecutable has reached the STOPPING state
    suspendedindicates the specified ManagedExecutable has reached the SUSPENDED state
    suspendingindicates the specified ManagedExecutable has reached the SUSPENDING state

    done
     
    indicates the specified ManagedExecutable has reached the DONE state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    error
     
    indicates the specified ManagedExecutable has reached the ERROR state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    idle
     
    indicates the specified ManagedExecutable has reached the IDLE state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    resuming
     
    indicates the specified ManagedExecutable has reached the RESUMING state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    running
     
    indicates the specified ManagedExecutable has reached the RUNNING state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    shuttingDown
     
    indicates the specified ManagedExecutable has reached the SHUTTINGDOWN state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    starting
     
    indicates the specified ManagedExecutable has reached the STARTING state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    stopping
     
    indicates the specified ManagedExecutable has reached the STOPPING state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    suspended
     
    indicates the specified ManagedExecutable has reached the SUSPENDED state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    suspending
     
    indicates the specified ManagedExecutable has reached the SUSPENDING state
    Parameters:
    executable the ManagedExecutable whose state has changed
    Abstract.
     

     
    Parameter Summary
    executable 

    executable
     

    Note1
    Note text:
    Consider Enum here
     
    Links:
    Note Link [Note Link: [Note1] -> [DONE]]
    to Enumeration Literal DONE
     

     
    Note Link Summary
    [Note Link: [Note1] -> [DONE]] 

    [Note Link: [Note1] -> [DONE]]