MInstance Class Reference

Inherits com::webobjects::monitor::_private::MObject.

Collaboration diagram for MInstance:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void _takeNameFromApplication ()
void _takeOutputPathFromApplication ()
void _takePathFromApplication ()
void _takePortFromApplication ()
void _takeValueFromApplication (String valueName)
String activeSessions ()
int activeSessionsValue ()
void addDeath ()
String additionalArgs ()
NSArray additionalArgumentsAsArray ()
MApplication application ()
String applicationName ()
Boolean autoOpenInBrowser ()
Boolean autoRecover ()
String averageIdlePeriod ()
float avgIdleTimeValue ()
String avgTransactionTime ()
float avgTransactionTimeValue ()
Boolean cachingEnabled ()
void calculateNextScheduledShutdown ()
void cancelForceQuitTask ()
Integer cnctTimeout ()
String commandLineArguments ()
NSArray commandLineArgumentsAsArray ()
int deathCount ()
NSMutableArray deaths ()
Boolean debuggingEnabled ()
NSDictionary dictionaryForArchive ()
String displayHostAndPort ()
String displayName ()
boolean equals (Object obj)
void extractAdaptorValuesFromApplication ()
void failedToConnect ()
TimerTask forceQuitTask ()
String generateOutputPath (String pathEndingWithSeperator)
Boolean gracefulScheduling ()
int hashCode ()
MHost host ()
String hostName ()
Integer id ()
boolean isAutoRecovering ()
boolean isGracefullyScheduled ()
boolean isLocal_W ()
boolean isRefusingNewSessions ()
boolean isRunning_M ()
boolean isRunning_W ()
boolean isScheduled ()
NSTimestamp lastRegistration ()
int lifebeatCheckInterval ()
Integer lifebeatInterval ()
Integer minimumActiveSessionsCount ()
 MInstance (NSDictionary aDict, MSiteConfig aConfig)
 MInstance (MHost aHost, MApplication anApplication, Integer anID, MSiteConfig aConfig)
boolean nearNextScheduledShutdown (NSTimestamp rightNow)
NSTimestamp nextScheduledShutdown ()
String nextScheduledShutdownString ()
Integer oldport ()
String outputPath ()
String path ()
Integer port ()
Integer recvBufSize ()
Integer recvTimeout ()
void registerCrash (NSTimestamp registrationDate)
void registerStop (NSTimestamp registrationDate)
void removeAllDeaths ()
void resetStatisticsError ()
void scheduleForceQuit (TimerTask task, int delay)
void scheduleRefuseTask (TimerTask task, int delay, int period)
Integer schedulingDailyStartTime ()
Boolean schedulingEnabled ()
Integer schedulingHourlyStartTime ()
Integer schedulingInterval ()
Integer schedulingStartDay ()
String schedulingType ()
Integer schedulingWeeklyStartTime ()
Integer sendBufSize ()
void sendDeathNotificationEmail ()
Integer sendTimeout ()
void setAdditionalArgs (String value)
void setApplicationName (String value)
void setAutoOpenInBrowser (Boolean value)
void setAutoRecover (Boolean value)
void setCachingEnabled (Boolean value)
void setCnctTimeout (Integer value)
void setDeaths (NSMutableArray values)
void setDebuggingEnabled (Boolean value)
void setForceQuitTask (TimerTask task)
void setGracefulScheduling (Boolean value)
void setHostName (String value)
void setId (Integer value)
void setLifebeatInterval (Integer value)
void setMinimumActiveSessionsCount (Integer value)
void setNextScheduledShutdown (NSTimestamp newtime)
void setNextScheduledShutdownString_M (String newtime)
void setOldport (Integer value)
void setOutputPath (String value)
void setPath (String value)
void setPort (Integer value)
void setRecvBufSize (Integer value)
void setRecvTimeout (Integer value)
void setRefusingNewSessions (boolean isRefusingNewSessions)
void setSchedulingDailyStartTime (Integer value)
void setSchedulingEnabled (Boolean value)
void setSchedulingHourlyStartTime (Integer value)
void setSchedulingInterval (Integer value)
void setSchedulingStartDay (Integer value)
void setSchedulingType (String value)
void setSchedulingWeeklyStartTime (Integer value)
void setSendBufSize (Integer value)
void setSendTimeout (Integer value)
void setShouldDie (boolean b)
void setStatistics (NSDictionary newStatistics)
void setStatisticsError (String errorString)
void setValues (NSMutableDictionary newValues)
boolean shouldDie ()
boolean shouldDieAndReset ()
void startRegistration (NSTimestamp registrationDate)
NSDictionary statistics ()
String statisticsError ()
void succeededInConnection ()
void takeValuesFromApplication ()
Timer taskTimer ()
String toString ()
String transactions ()
int transactionsValue ()
void updateRegistration (NSTimestamp registrationDate)
void updateValues (NSDictionary aDict)
void willAttemptToStart ()

Public Attributes

boolean isActivelyBeingScheduled = false
int state = MObject.DEAD

Static Public Attributes

static long TIME_FOR_STARTUP = 30

Protected Member Functions

float floatStatisticsValueForKey (String key, float defaultValue)
int intStatisticsValueForKey (String key, int defaultValue)

Package Attributes

MApplication _application
NSMutableArray _deaths = new NSMutableArray()
NSTimestamp _finishStartingByDate = new NSTimestamp()
MHost _host
NSTimestamp _lastRegistration = NSTimestamp.DistantPast
NSTimestamp _nextScheduledShutdown = NSTimestamp.DistantPast
String _nextScheduledShutdownString = "-"
NSMutableDictionary _statistics = new NSMutableDictionary()

Static Package Attributes

static NSTimestampFormatter dateFormatter = new NSTimestampFormatter("%m/%d/%Y %H:%M:%S %Z")
static NSTimestampFormatter shutdownFormatter = new NSTimestampFormatter("%a @ %H:00")

Private Member Functions

String toNullOrString (Object o)

Private Attributes

int _connectFailureCount = 0
TimerTask _forceQuitTask
boolean _shouldDie = false
String _statisticsError = null
Timer _taskTimer
boolean isRefusingNewSessions = false


Constructor & Destructor Documentation

MInstance ( MHost  aHost,
MApplication  anApplication,
Integer  anID,
MSiteConfig  aConfig 
)

******** Constructors *********

MInstance ( NSDictionary  aDict,
MSiteConfig  aConfig 
)


Member Function Documentation

void _takeNameFromApplication (  ) 

void _takeOutputPathFromApplication (  ) 

void _takePathFromApplication (  ) 

void _takePortFromApplication (  ) 

void _takeValueFromApplication ( String  valueName  ) 

String activeSessions (  ) 

int activeSessionsValue (  ) 

void addDeath (  ) 

String additionalArgs (  ) 

NSArray additionalArgumentsAsArray (  ) 

******* ******** Command Line Arguments *********

MApplication application (  ) 

String applicationName (  ) 

Boolean autoOpenInBrowser (  ) 

Boolean autoRecover (  ) 

String averageIdlePeriod (  ) 

float avgIdleTimeValue (  ) 

String avgTransactionTime (  ) 

float avgTransactionTimeValue (  ) 

Boolean cachingEnabled (  ) 

void calculateNextScheduledShutdown (  ) 

void cancelForceQuitTask (  ) 

Cancel the forceQuit task if any

Integer cnctTimeout (  ) 

String commandLineArguments (  ) 

NSArray commandLineArgumentsAsArray (  ) 

int deathCount (  ) 

NSMutableArray deaths (  ) 

****** ******** Deaths *********

Boolean debuggingEnabled (  ) 

NSDictionary dictionaryForArchive (  ) 

******* ******** Archiving Support *********

String displayHostAndPort (  ) 

String displayName (  ) 

******* ******** Display Name Strings *********

boolean equals ( Object  obj  ) 

void extractAdaptorValuesFromApplication (  ) 

void failedToConnect (  ) 

float floatStatisticsValueForKey ( String  key,
float  defaultValue 
) [protected]

TimerTask forceQuitTask (  ) 

String generateOutputPath ( String  pathEndingWithSeperator  ) 

Boolean gracefulScheduling (  ) 

int hashCode (  ) 

MHost host (  ) 

String hostName (  ) 

******** 'values' accessors *********

Integer id (  ) 

int intStatisticsValueForKey ( String  key,
int  defaultValue 
) [protected]

boolean isAutoRecovering (  ) 

boolean isGracefullyScheduled (  ) 

boolean isLocal_W (  ) 

boolean isRefusingNewSessions (  ) 

boolean isRunning_M (  ) 

boolean isRunning_W (  ) 

boolean isScheduled (  ) 

NSTimestamp lastRegistration (  ) 

******* ******** Registration and Lifebeats *********

int lifebeatCheckInterval (  ) 

Integer lifebeatInterval (  ) 

Integer minimumActiveSessionsCount (  ) 

boolean nearNextScheduledShutdown ( NSTimestamp  rightNow  ) 

NSTimestamp nextScheduledShutdown (  ) 

String nextScheduledShutdownString (  ) 

Integer oldport (  ) 

******* ******** Don't use this **********

String outputPath (  ) 

String path (  ) 

Integer port (  ) 

Integer recvBufSize (  ) 

Integer recvTimeout (  ) 

void registerCrash ( NSTimestamp  registrationDate  ) 

void registerStop ( NSTimestamp  registrationDate  ) 

void removeAllDeaths (  ) 

void resetStatisticsError (  ) 

void scheduleForceQuit ( TimerTask  task,
int  delay 
)

only one force quit task can be scheduled

Parameters:
task - task to schedule
delay - delay before the task is fired (milliseconds)

void scheduleRefuseTask ( TimerTask  task,
int  delay,
int  period 
)

Schedule a task to repeatedly run

Parameters:
task - task to schedule
delay - delay before the task runs (milliseconds)
period - interval when the task is ran (milliseconds)

Integer schedulingDailyStartTime (  ) 

Boolean schedulingEnabled (  ) 

Integer schedulingHourlyStartTime (  ) 

Integer schedulingInterval (  ) 

Integer schedulingStartDay (  ) 

String schedulingType (  ) 

Integer schedulingWeeklyStartTime (  ) 

Integer sendBufSize (  ) 

void sendDeathNotificationEmail (  ) 

Integer sendTimeout (  ) 

void setAdditionalArgs ( String  value  ) 

void setApplicationName ( String  value  ) 

void setAutoOpenInBrowser ( Boolean  value  ) 

void setAutoRecover ( Boolean  value  ) 

void setCachingEnabled ( Boolean  value  ) 

void setCnctTimeout ( Integer  value  ) 

void setDeaths ( NSMutableArray  values  ) 

void setDebuggingEnabled ( Boolean  value  ) 

void setForceQuitTask ( TimerTask  task  ) 

void setGracefulScheduling ( Boolean  value  ) 

void setHostName ( String  value  ) 

void setId ( Integer  value  ) 

void setLifebeatInterval ( Integer  value  ) 

void setMinimumActiveSessionsCount ( Integer  value  ) 

void setNextScheduledShutdown ( NSTimestamp  newtime  ) 

void setNextScheduledShutdownString_M ( String  newtime  ) 

void setOldport ( Integer  value  ) 

void setOutputPath ( String  value  ) 

void setPath ( String  value  ) 

void setPort ( Integer  value  ) 

void setRecvBufSize ( Integer  value  ) 

void setRecvTimeout ( Integer  value  ) 

void setRefusingNewSessions ( boolean  isRefusingNewSessions  ) 

*******

void setSchedulingDailyStartTime ( Integer  value  ) 

void setSchedulingEnabled ( Boolean  value  ) 

void setSchedulingHourlyStartTime ( Integer  value  ) 

void setSchedulingInterval ( Integer  value  ) 

void setSchedulingStartDay ( Integer  value  ) 

void setSchedulingType ( String  value  ) 

void setSchedulingWeeklyStartTime ( Integer  value  ) 

void setSendBufSize ( Integer  value  ) 

void setSendTimeout ( Integer  value  ) 

void setShouldDie ( boolean  b  ) 

void setStatistics ( NSDictionary  newStatistics  ) 

void setStatisticsError ( String  errorString  ) 

void setValues ( NSMutableDictionary  newValues  ) 

******* ******** Overridden Methods for Scheduling *********

Reimplemented from MObject.

boolean shouldDie (  ) 

boolean shouldDieAndReset (  ) 

void startRegistration ( NSTimestamp  registrationDate  ) 

NSDictionary statistics (  ) 

String statisticsError (  ) 

void succeededInConnection (  ) 

void takeValuesFromApplication (  ) 

Timer taskTimer (  ) 

String toNullOrString ( Object  o  )  [private]

String toString (  ) 

String transactions (  ) 

int transactionsValue (  ) 

void updateRegistration ( NSTimestamp  registrationDate  ) 

void updateValues ( NSDictionary  aDict  ) 

Reimplemented from MObject.

void willAttemptToStart (  ) 


Member Data Documentation

int _connectFailureCount = 0 [private]

******* ******** State Support *********

NSTimestamp _finishStartingByDate = new NSTimestamp() [package]

TimerTask _forceQuitTask [private]

MHost _host [package]

******* ******** Object Graph *********

NSTimestamp _lastRegistration = NSTimestamp.DistantPast [package]

*******

NSTimestamp _nextScheduledShutdown = NSTimestamp.DistantPast [package]

******* ******** Scheduling *********

boolean _shouldDie = false [private]

******* ******** Statistics Support *********

Timer _taskTimer [private]

******** Force quit task *********

NSTimestampFormatter dateFormatter = new NSTimestampFormatter("%m/%d/%Y %H:%M:%S %Z") [static, package]

boolean isActivelyBeingScheduled = false

boolean isRefusingNewSessions = false [private]

NSTimestampFormatter shutdownFormatter = new NSTimestampFormatter("%a @ %H:00") [static, package]

long TIME_FOR_STARTUP = 30 [static]

******* ******** Startup Calculations *********


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

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