electric.application.web
Class WebAppMonitor

java.lang.Object
  extended byelectric.application.web.WebAppMonitor
All Implemented Interfaces:
IClassConstants, IClassPathEventListener, IEXMLLoggingConstants, IGLUELoggingConstants, ILoggingConstants, IStateConstants

public class WebAppMonitor
extends java.lang.Object
implements IStateConstants, IClassPathEventListener, IClassConstants, IGLUELoggingConstants

WebAppMonitor monitors the entire web application. This should only be restarted in the event that Glue is loaded from WEB-INF/lib or WEB-INF/classes, and something changes that would require the entire application to restart.

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.application.web.IStateConstants
ERRONEOUS, INITIAL, STARTED, STARTING, STOPPED, UNRESOLVED
 
Fields inherited from interface electric.application.web.classes.IClassConstants
CLASS_EXTENSIONS, LIB_EXTENSIONS
 
Fields inherited from interface electric.glue.IGLUELoggingConstants
CLUSTER_DEBUG_EVENT, CLUSTER_EVENT, CONSOLE_DEBUG_EVENT, DEPLOY_EVENT, DETECTORS_EVENT, HTTP_EVENT, JMS_EVENT, REBINDING_EVENT, SECURITY_DEBUG_EVENT, SECURITY_DETAIL_EVENT, SERVLET_EVENT, SOAP_EVENT
 
Fields inherited from interface electric.xml.IEXMLLoggingConstants
MAPPING_EVENT, SCHEMA_EVENT
 
Fields inherited from interface electric.util.log.ILoggingConstants
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT
 
Constructor Summary
WebAppMonitor(java.io.File appDir, java.lang.String appURL)
           
WebAppMonitor(java.io.File appDir, java.lang.String appURL, IInstantiator constructor)
           
 
Method Summary
 void classesAdded(java.io.File[] files)
           
 void classesModified(java.io.File[] files)
           
 void classesRemoved(java.io.File[] files)
           
 void restart()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppMonitor

public WebAppMonitor(java.io.File appDir,
                     java.lang.String appURL)
              throws java.io.IOException
Parameters:
appDir -
appURL -
Throws:
java.io.IOException

WebAppMonitor

public WebAppMonitor(java.io.File appDir,
                     java.lang.String appURL,
                     IInstantiator constructor)
              throws java.io.IOException
Parameters:
appDir -
appURL -
constructor -
Throws:
java.io.IOException
Method Detail

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

restart

public void restart()
             throws java.lang.Exception
Throws:
java.lang.Exception

classesAdded

public void classesAdded(java.io.File[] files)
Specified by:
classesAdded in interface IClassPathEventListener
Parameters:
files -

classesRemoved

public void classesRemoved(java.io.File[] files)
Specified by:
classesRemoved in interface IClassPathEventListener
Parameters:
files -

classesModified

public void classesModified(java.io.File[] files)
Specified by:
classesModified in interface IClassPathEventListener
Parameters:
files -


copyright© 2001-2004 by webMethods All Rights Reserved.