public class MonitoringClient extends TimerTask implements com.addc.commons.shutdown.Stoppable
OrbWrapper
initialization and accessed by the MonitoredImpl object by looking up
the Application Context.| Constructor and Description |
|---|
MonitoringClient(com.addc.commons.alerts.Notifier notifier,
int leaseTime,
int failCount)
Create a new MonitoringClient
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(ManagedObject mo)
Add a component to remoteMonitor
|
String[] |
getMonitoredComponentCorbalocs()
Get an array of monitoredCobaloc components' corbaloc urls
|
List<ManagedObject> |
getMonitoredComponents()
Get a list of monitoredCobaloc components.
|
void |
removeComponent(ManagedObject mo)
Stop monitoring a component
|
void |
run()
Updates all the
ManagedObjects with the Amentet Monitoring
Service, |
void |
setMonitoredCobaloc(String corbaloc)
Set the corbaloc url of the monitoredCobaloc object
|
void |
shutdown()
Cancels the timer and un-registers all the objects with the Amentet
Monitoring Service
|
void |
start()
Start active monitoring updating the Amentet Monitor Service using a
Timer set to 95% of the lease time.
|
cancel, scheduledExecutionTimepublic MonitoringClient(com.addc.commons.alerts.Notifier notifier,
int leaseTime,
int failCount)
notifier - The Notifier to useleaseTime - The lease time for objects registered with the Amentet ServicefailCount - The number of times a connection can fail before raising
alertspublic void setMonitoredCobaloc(String corbaloc)
corbaloc - the corbaloc url of the monitoredCobaloc objectpublic void addComponent(ManagedObject mo)
mo - The component to remoteMonitorpublic void removeComponent(ManagedObject mo)
mo - The component to stop monitoringpublic String[] getMonitoredComponentCorbalocs()
public List<ManagedObject> getMonitoredComponents()
public void run()
ManagedObjects with the Amentet Monitoring
Service,run in interface Runnablerun in class TimerTaskTimerTask.run()public void shutdown()
shutdown in interface com.addc.commons.shutdown.StoppableStoppable.shutdown()public void start()
Copyright © 2020 ADDC Infotech GmbH. All rights reserved.