All Examples This Package
Class examples.t3client.ShutdownTest
java.lang.Object
|
+----examples.t3client.ShutdownTest
- public class ShutdownTest
- extends Object
- implements T3ShutdownDef
ShutdownTest is a simple example of the use of the T3ShutdownDef
interface for writing a shutdown class. This class logs the time
of the shutdown to a file.
To run this example, first set the following properties
by adding them to the weblogic.properties file:
weblogic.system.shutdownClass.ShutdownTest=examples.t3client.ShutdownTest
weblogic.system.shutdownArgs.ShutdownTest=outfile=c:\temp\shutdown.log
Note that any class that implements T3ShutdownDef must have a default constructor,
as this example does.
- Author:
- Copyright (c) 1996-2000 by BEA Systems, Inc. All Rights Reserved.
-
ShutdownTest()
-
-
setServices(T3ServicesDef)
- Sets the services access for this class.
-
shutdown(String, Hashtable)
- The shutdown action belongs in this method.
-
ShutdownTest()
- Default constructor.
ShutdownTest
public ShutdownTest()
setServices
public void setServices(T3ServicesDef services)
- Sets the services access for this class.
ShutdownTest
public void ShutdownTest()
- Default constructor. A default constructor is required of any
class that implements weblogic.common.T3ShutdownDef.
shutdown
public String shutdown(String name,
Hashtable args) throws Exception
- The shutdown action belongs in this method. The string
argument specifies the virtual name of this class by which it
is registered in the weblogic.properties file,
under the weblogic.system.shutdownClass property.
The hashtable argument is a set of name-value pairs that
are supplied to this method from the
weblogic.system.shutdownArgs property.
- Parameters:
- name - Virtual name under which this class is registered
- args - Set of name-value pairs of arguments for this method
- Throws: Exception
- if there is an error
All Examples This Package