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

com.newstep.solid.management.runtime.beacon
Class ProcessStatusBeacon
com.newstep.solid.management.runtime.SyncManagedExecutable
  |
  +--com.newstep.solid.management.runtime.beacon.ProcessStatusBeacon
All Implemented Interfaces:
       ManagedExecutable

public class ProcessStatusBeacon      
class that extend SyncManagedExecutable and provide services to acknowledge
Task Manager that the component is up and running.
Author:
rcavero
 
Links:
Kernel Association Association Link
to Class BeaconTimerTask
Implementation of TimerTask
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 BeaconConfiguration
Beacon Configuration bean containing period, delay, processMonitorType and processMonitorConfiguration
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 Interface ProcessMonitor
processMonitor to be executed by BeaconTimerTask
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Generalization Generalization Link
to Class SyncManagedExecutable
class that extend SyncManagedExecutable and provide services to acknowledge
Task Manager that the component is up and running.
Author:
rcavero
 
 

Field Summary
private static String
private static Logger
private Timer
Method Summary
createProcessMonitor(String processMonitorType)
public void
public void
public void
public void
init(BeaconConfiguration beaconConfigIn)
public void
Field Detail
beaconConfig
private BeaconConfiguration beaconConfig
Beacon Configuration bean containing period, delay, processMonitorType and processMonitorConfiguration
Multiplicity:
1
 

beaconTimerTask
private BeaconTimerTask beaconTimerTask
Implementation of TimerTask
Multiplicity:
1
 

className
private static String className
Multiplicity:
1
Static.
 

logger
private static Logger logger
logging members
Multiplicity:
1
Static.
 

processMonitor
private ProcessMonitor processMonitor
processMonitor to be executed by BeaconTimerTask
Multiplicity:
1
 

timer
private Timer timer
Timer to Schedule the TimerTaks.
Multiplicity:
1
 
Method Detail
createProcessMonitor
private ProcessMonitor createProcessMonitor (String processMonitorType)
 
Creates a ProcessMonitor object to be run by TimerTask.
Parameters:
processMonitorType the type of the process monitor to be created.
Right now this is a fully qualify name of the ProcessMonitor
implementation class. This class will be created by reflection.
Only JNI is supported. The default it's DUMMY: DO Nothing.
Exceptions:
BeaconException -ProcessMonitor can not be created.
Return:
ProcessMonitor -the process to be executed by TimerTask.
Throws:
BeaconException
 

doShutdown
public void doShutdown ()
 
If ProcessStatusBeacon want to shutdown(), doStop will be call.
Exceptions:
ExecutableException if can not be stoped.
Throws:
ExecutableException
 

doStart
public void doStart ()
 
Implementation of Start method from SyncManagedExecutable
This method will schedule the task frequency to be executed by
BeaconTimerTask.
Throws:
ExecutableException
 

doStop
public void doStop ()
 
Implementation of Stop method from SyncManagedExecutable
This method will wait until BeaconTimerTask finish it's last
scheduled task.
Exceptions:
BeaconException -ProcessMonitor can not be stoped.
Throws:
ExecutableException
 

init
public void init (BeaconConfiguration beaconConfigIn)
 
Initialize ProcessStatusBeacon this method requires a
BeconConfiguration with the following parameters: period, delay,
beaconType, ProcessMonitorConfiguration.
Parameters:
beaconConfigIn - Beacon Configuration containing period, delay, processMonitorType and processMonitorConfiguration.
Throws:
BeaconException
 

kill
public void kill ()
 
closes and cleans up without calling stop.
Throws:
ExecutableException
 

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