LocalMonitor Class Reference

Inherits com::webobjects::monitor::_private::ProtoLocalMonitor.

Collaboration diagram for LocalMonitor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void _checkAutoRecover ()
void _checkAutoRecoverStartup ()
void _checkSchedules ()
StringBuffer generateAdaptorConfigXML ()
 LocalMonitor ()
String portForUnregisteredAppNamed (String name)
WOResponse queryInstance (MInstance anInstance) throws MonitorException
void registerUnknownInstance (String name, String host, String port)
WOResponse setAcceptInstance (MInstance anInstance) throws MonitorException
String startInstance (MInstance anInstance)
WOResponse stopInstance (MInstance anInstance) throws MonitorException
WOResponse terminateInstance (MInstance anInstance) throws MonitorException
void triageUnknownInstances ()

Protected Member Functions

void catchInstanceErrors (MInstance anInstance) throws MonitorException
NSMutableDictionary createInstanceRequestDictionary (String commandString, String queryString, MInstance anInstance)
WOResponse sendInstanceRequest (MInstance anInstance, NSDictionary xmlDict) throws MonitorException

Package Attributes

final int _forceQuitDelay = ERXProperties.intForKeyWithDefault("WOTaskd.killTimeout", 120000)
final boolean _forceQuitTaskEnabled = ERXProperties.booleanForKeyWithDefault("WOTaskd.forceQuitTaskEnabled", false)
String _hostName
boolean _isOnWindows = false
final int _receiveTimeout = ERXProperties.intForKeyWithDefault("WOTaskd.receiveTimeout", 5000)
boolean _shouldUseSpawn = true
NSMutableDictionary _unknownApplications = new NSMutableDictionary()
_NSCollectionReaderWriterLock _unknownAppLock = new _NSCollectionReaderWriterLock()
WOTimer anAutoRecoverStartupTimer
WOTimer anAutoRecoverTimer
WOTimer aScheduleTimer
String spawningGrounds = null
Application theApplication = (Application )WOApplication.application()

Private Member Functions

void _autoRecoverApplication (MApplication anApplication)
boolean _testConnection (MInstance anInstance)
NSTimestamp calculateNearestHour ()


Constructor & Destructor Documentation

LocalMonitor (  ) 


Member Function Documentation

void _autoRecoverApplication ( MApplication  anApplication  )  [private]

void _checkAutoRecover (  ) 

void _checkAutoRecoverStartup (  ) 

void _checkSchedules (  ) 

boolean _testConnection ( MInstance  anInstance  )  [private]

NSTimestamp calculateNearestHour (  )  [private]

void catchInstanceErrors ( MInstance  anInstance  )  throws MonitorException [protected]

NSMutableDictionary createInstanceRequestDictionary ( String  commandString,
String  queryString,
MInstance  anInstance 
) [protected]

StringBuffer generateAdaptorConfigXML (  )  [virtual]

Implements ProtoLocalMonitor.

String portForUnregisteredAppNamed ( String  name  ) 

WOResponse queryInstance ( MInstance  anInstance  )  throws MonitorException [virtual]

Implements ProtoLocalMonitor.

void registerUnknownInstance ( String  name,
String  host,
String  port 
)

WOResponse sendInstanceRequest ( MInstance  anInstance,
NSDictionary  xmlDict 
) throws MonitorException [protected]

WOResponse setAcceptInstance ( MInstance  anInstance  )  throws MonitorException

String startInstance ( MInstance  anInstance  )  [virtual]

Implements ProtoLocalMonitor.

WOResponse stopInstance ( MInstance  anInstance  )  throws MonitorException [virtual]

Implements ProtoLocalMonitor.

WOResponse terminateInstance ( MInstance  anInstance  )  throws MonitorException [virtual]

Implements ProtoLocalMonitor.

void triageUnknownInstances (  ) 


Member Data Documentation

final int _forceQuitDelay = ERXProperties.intForKeyWithDefault("WOTaskd.killTimeout", 120000) [package]

final boolean _forceQuitTaskEnabled = ERXProperties.booleanForKeyWithDefault("WOTaskd.forceQuitTaskEnabled", false) [package]

String _hostName [package]

boolean _isOnWindows = false [package]

final int _receiveTimeout = ERXProperties.intForKeyWithDefault("WOTaskd.receiveTimeout", 5000) [package]

boolean _shouldUseSpawn = true [package]

_NSCollectionReaderWriterLock _unknownAppLock = new _NSCollectionReaderWriterLock() [package]

WOTimer anAutoRecoverStartupTimer [package]

WOTimer anAutoRecoverTimer [package]

WOTimer aScheduleTimer [package]

Application theApplication = (Application )WOApplication.application() [package]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:36 2012 for Project Wonder by  doxygen 1.5.8