public class ComponentRefTracker extends ComponentClient
m_logger, m_shutdownHook| Modifier and Type | Method and Description |
|---|---|
void |
initRemoteLogging()
Sets up the client logger(s) to send log records to the remote log service.
|
static void |
main(java.lang.String[] args) |
protected void |
registerShutdownHook()
Default shutdown hook is used to complain if the application forgot to call tearDown().
|
getContainerServices, initAlarmSystem, tearDown, tearDownAlarmSystempublic void initRemoteLogging()
ComponentClientMakes repeated attempts to connect to the remote logger. If they fail unexpectedly, remote logging will be disabled.
If the ComponentClient has been constructed without an external AcsCorba object
(the normal case), then this method is called automatically.
Otherwise (with an external AcsCorba object provided) it is assumed that also
remote logging is controlled from outside of this class. If nonetheless you want to
initialize remote logging, you may explicitly call this method for convenience.
Override this method to prevent remote logging (useful only if AcsCorba is is not provided externally).
initRemoteLogging in class ComponentClientprotected void registerShutdownHook()
ComponentClientregisterShutdownHook in class ComponentClientpublic static void main(java.lang.String[] args)