public class Depend extends java.lang.Object implements FixedLoggers
| Modifier and Type | Field and Description |
|---|---|
protected int |
sleep
Seconds to sleep.
|
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix| Constructor and Description |
|---|
Depend() |
| Modifier and Type | Method and Description |
|---|---|
int |
getSleep()
The unit is Seconds.
|
void |
on(java.lang.String serviceName,
java.lang.String[] serviceNames)
Takes an array of Service names and will return only when they all
respond with true to a call of their isRunning() method.
|
void |
setSleep(int value)
The unit is Seconds.
|
public void setSleep(int value)
value - public int getSleep()
public void on(java.lang.String serviceName,
java.lang.String[] serviceNames)
throws MXException,
java.rmi.RemoteException
serviceName - Name of the Service that has made this call.
It's used to simplify monitoring. You MUST insure that the names
used in the serviceNames[] are the names returned by each Service's
getName() method; in the case of an AppService derived class, you
should look it up in the Maximo data dictionary.serviceNames - Array of names of Services that this Service is depending on.MXExceptionjava.rmi.RemoteExceptionService,
AppService