Syslog: White Paper FAQ Examples JavaDoc
Protomatter Classes v1.1.6

com.protomatter.syslog
Class SyslogT3Startup

java.lang.Object
  |
  +--com.protomatter.syslog.SyslogT3Startup
All Implemented Interfaces:
weblogic.common.T3ShutdownDef, weblogic.common.T3StartupDef

public class SyslogT3Startup
extends java.lang.Object
implements weblogic.common.T3StartupDef, weblogic.common.T3ShutdownDef

Configure syslog to start when WebLogic does. For use with BEA WebLogic Server. This class implements the weblogic.common.T3StartupDef interface and is able to initialize Syslog when WebLogic starts. This class also implements the T3ShutdownDef interface and so can be used to shutdown syslog when WebLogic shuts down.

See Also:
Syslog, Syslogger

Constructor Summary
SyslogT3Startup()
          Default constructor -- called by WebLogic.
 
Method Summary
 void setServices(weblogic.common.T3ServicesDef services)
          Part of the weblogic.common.T3StartupDef interface.
 java.lang.String shutdown(java.lang.String name, java.util.Hashtable ht)
          Shutdown Syslog services.
 java.lang.String startup(java.lang.String name, java.util.Hashtable ht)
          Start Syslog services.
 boolean startup(weblogic.common.T3ServicesDef services)
          A shortcut to starting syslog services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyslogT3Startup

public SyslogT3Startup()
Default constructor -- called by WebLogic.
Method Detail

setServices

public void setServices(weblogic.common.T3ServicesDef services)
Part of the weblogic.common.T3StartupDef interface.
Specified by:
setServices in interface weblogic.common.T3StartupDef
See Also:
T3StartupDef

startup

public java.lang.String startup(java.lang.String name,
                                java.util.Hashtable ht)
                         throws java.lang.Exception
Start Syslog services.

Syslog is configured from an XML file specified by the Syslog.config.xml system property. Multiple calls to this method are ignored.

Specified by:
startup in interface weblogic.common.T3StartupDef
See Also:
SyslogXML.configure(File)

shutdown

public java.lang.String shutdown(java.lang.String name,
                                 java.util.Hashtable ht)
Shutdown Syslog services. This method simply calls Syslog.shutdown().
Specified by:
shutdown in interface weblogic.common.T3ShutdownDef

startup

public boolean startup(weblogic.common.T3ServicesDef services)
A shortcut to starting syslog services. This is generally used by classes that want to ensure that Syslog has been started before they start. You can basically do this:

  (new SyslogT3Startup()).startup(services);
  
From inside the startup(...) method in your startup class to make sure that syslog gets started.


Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6