Protomatter Classes v1.1.6

com.protomatter.pas
Class PASCore

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.protomatter.pas.PASCore
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PASCore
extends javax.servlet.http.HttpServlet

The PAS Core. All things related to PAS start here.

See Also:
Serialized Form

Field Summary
static java.lang.String STATUS_PROPERTY
          The name of the system property for PAS's status.
 
Constructor Summary
PASCore()
          Default constructor.
 
Method Summary
static PASCore getInstance()
          Get the globally unique instance of PAS.
 java.util.Properties getProperties()
          Get the system configuration.
 java.lang.String getVersion()
          Return a version String.
static void main(java.lang.String[] args)
          Start PASCore as a standalone application.
 void shutdown()
          Runs all registered PASShutdown classes.
 void startup(java.lang.String configFileName, java.util.Properties props)
          Starts all configured services.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_PROPERTY

public static java.lang.String STATUS_PROPERTY
The name of the system property for PAS's status. When PAS is running, this property is set to "RUNNING", when it's never been run, it's null, and when it's been run, but has been shut down, it is set to "SHUTDOWN".
Constructor Detail

PASCore

public PASCore()
Default constructor.
Method Detail

getVersion

public java.lang.String getVersion()
Return a version String.

shutdown

public void shutdown()
Runs all registered PASShutdown classes.

startup

public void startup(java.lang.String configFileName,
                    java.util.Properties props)
             throws StartupException
Starts all configured services. The configFileName is only used to log where the configuration comes from -- all configuration info is gathered from the props argument. Syslog is configured from an XML file specified as the "Syslog.config.xml" property.

getProperties

public java.util.Properties getProperties()
Get the system configuration. Returns a Properties object describing the configuration of the system when it was started.

getInstance

public static PASCore getInstance()
Get the globally unique instance of PAS.

main

public static void main(java.lang.String[] args)
Start PASCore as a standalone application. The first commandline argument is interpreted as the name of a configuration file.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

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