electric.cluster.server
Class ApplicationServer

java.lang.Object
  extended byelectric.cluster.server.ApplicationServer
All Implemented Interfaces:
IApplicationServer, IClusterConstants, IEXMLLoggingConstants, IGLUELoggingConstants, ILoggingConstants
Direct Known Subclasses:
MasterApplicationServer, SlaveApplicationServer

public abstract class ApplicationServer
extends java.lang.Object
implements IApplicationServer, IClusterConstants, IGLUELoggingConstants

ApplicationServer

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.cluster.IClusterConstants
APP_NAME, CLUSTER_MONITOR, DISABLE_HTTP_BALANCING, DISABLE_HTTP_FAILOVER, DISABLE_PERMESSAGE_BALANCING, DISABLE_PERMESSAGE_FAILOVER, ENTERPRISE_PATH, ENTERPRISE_SERVICE_PATH, GLUE_MASTER_NODE, GLUE_WEB_SERVER_PORT, JAR_EXT, LIVENESS_PATH, LIVENESS_SERVICE_PATH, LOCALHOST, LOCALHOST_RANDOM_PORT_URL, MANAGER_PATH, MASTER, NODE_MODE, PER_MSG_BALANCING, REGISTRY_PATH, SLAVE, SYSTEM_SERVICE, WAR_SUFFIX, WSSURL
 
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
ApplicationServer()
           
 
Method Summary
 void addApplication(java.io.File applicationRoot)
           
 java.lang.String[] getDeletedApplications()
           
 java.lang.String[] listApplications()
           
protected abstract  void onApplicationAdd(java.io.File applicationRoot)
           
protected abstract  void onApplicationRemove(java.lang.String applicationName, boolean getNewCopy)
           
protected abstract  void onServerStart()
           
 void removeApplication(java.lang.String applicationRoot, boolean getNewCopy)
           
 void start()
           
protected  void startApplication(java.lang.String applicationRoot)
           
protected  void startServerMonitor()
           
protected  void stopApplication(java.lang.String applicationRoot)
           
 boolean uploadApplication(java.lang.String applicationName, MIMEData warFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface electric.cluster.server.IApplicationServer
applicationStarted, isMaster
 

Constructor Detail

ApplicationServer

public ApplicationServer()
Method Detail

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface IApplicationServer
Throws:
java.lang.Exception

addApplication

public void addApplication(java.io.File applicationRoot)
                    throws java.lang.Exception
Specified by:
addApplication in interface IApplicationServer
Parameters:
applicationRoot - Root directory of application
Throws:
java.lang.Exception

startServerMonitor

protected void startServerMonitor()
                           throws java.lang.Exception
Throws:
java.lang.Exception

startApplication

protected void startApplication(java.lang.String applicationRoot)
                         throws java.lang.Exception
Parameters:
applicationRoot - Path of root directory of application
Throws:
java.lang.Exception

stopApplication

protected void stopApplication(java.lang.String applicationRoot)
                        throws java.lang.Exception
Parameters:
applicationRoot -
Throws:
java.lang.Exception

uploadApplication

public boolean uploadApplication(java.lang.String applicationName,
                                 MIMEData warFile)
                          throws java.lang.Exception
Specified by:
uploadApplication in interface IApplicationServer
Parameters:
applicationName -
warFile -
Returns:
Throws:
java.lang.Exception

removeApplication

public void removeApplication(java.lang.String applicationRoot,
                              boolean getNewCopy)
                       throws java.lang.Exception
Specified by:
removeApplication in interface IApplicationServer
Parameters:
applicationRoot -
getNewCopy -
Throws:
java.lang.Exception

listApplications

public java.lang.String[] listApplications()
Specified by:
listApplications in interface IApplicationServer

getDeletedApplications

public java.lang.String[] getDeletedApplications()
Specified by:
getDeletedApplications in interface IApplicationServer

onServerStart

protected abstract void onServerStart()
                               throws java.lang.Exception
Throws:
java.lang.Exception

onApplicationAdd

protected abstract void onApplicationAdd(java.io.File applicationRoot)
                                  throws java.lang.Exception
Parameters:
applicationRoot -
Throws:
java.lang.Exception

onApplicationRemove

protected abstract void onApplicationRemove(java.lang.String applicationName,
                                            boolean getNewCopy)
                                     throws java.lang.Exception
Parameters:
applicationName -
Throws:
java.lang.Exception


copyright© 2001-2004 by webMethods All Rights Reserved.