Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.management.runtime.component
Class ComponentStateListener
All Implemented Interfaces:
       ManagedExecutableListener

public class ComponentStateListener      
A ManagedExecutableListener that by default aggregrates directory
clients and notifies them of state changes.

Potentially break the ClientGroup out of this class. So it itself
becomes a listener to ManagedExecutable events.
Author:
msimonsen
Implements:
ManagedExecutableListener
 
Links:
Kernel Association Association Link
to Class ClientGroup
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class Component
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Implementation Implementation Link
to Interface ManagedExecutableListener
A ManagedExecutableListener that by default aggregrates directory
clients and notifies them of state changes.

Potentially break the ClientGroup out of this class. So it itself
becomes a listener to ManagedExecutable events.
Author:
msimonsen
 
 

Nested Class Summary
class
Field Summary
private final String
private final Logger
Map
ReentrantLock
private static String
private Component
private static Logger
private boolean
Constructor Summary
public void
ComponentStateListener(Component component, Boolean standAloneMode)
Method Summary
void
addClient(SimpleDirectoryClient client, String url)
void
void
void
void
public void
public void
public void
public void
init(Collection clients)
public void
init(String mseUrl)
public void
public void
public void
public void
public void
public void
public void
Field Detail
clientGroup
private ComponentStateListener.ClientGroup clientGroup
Multiplicity:
1
 

cName
private static String cName
Multiplicity:
1
Static.
 

component
private Component component
Multiplicity:
1
 

logger
private static Logger logger
Multiplicity:
1
Static.
 

standAloneMode
private boolean standAloneMode
Multiplicity:
1
 
Constructor Detail
ComponentStateListener
public void ComponentStateListener (Component component, Boolean standAloneMode)
 
Stereotype:
create
 
Method Detail
done
public void done (ManagedExecutable executable)
 
 

error
public void error (ManagedExecutable executable)
 
 

idle
public void idle (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the IDLE state
Parameters:
executable the ManagedExecutable whose state has changed
 

init
public void init (Collection clients)
 
 

init
public void init (String mseUrl)
 
Convenience method to initialize the client(s).
Parameters:
mseUrl
 

resuming
public void resuming (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the RESUMING state
Parameters:
executable the ManagedExecutable whose state has changed
 

running
public void running (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the RUNNING state
Parameters:
executable the ManagedExecutable whose state has changed
 

shuttingDown
public void shuttingDown (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the SHUTTINGDOWN state
Parameters:
executable the ManagedExecutable whose state has changed
 

starting
public void starting (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the STARTING state
Parameters:
executable the ManagedExecutable whose state has changed
 

stopping
public void stopping (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the STOPPING state
Parameters:
executable the ManagedExecutable whose state has changed
 

suspended
public void suspended (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the SUSPENDED state
Parameters:
executable the ManagedExecutable whose state has changed
 

suspending
public void suspending (ManagedExecutable executable)
 
indicates the specified ManagedExecutable has reached the SUSPENDING state
Parameters:
executable the ManagedExecutable whose state has changed
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD