com.caucho.env.deploy
Class AbstractDeployInstance

java.lang.Object
  extended by com.caucho.env.deploy.AbstractDeployInstance
All Implemented Interfaces:
DeployInstance, Dependency

public abstract class AbstractDeployInstance
extends java.lang.Object
implements DeployInstance

The abstract deployment instance represents a deployed service like a WebApp or a Host. The instrance works with the controller to handle dynamic deployment.


Constructor Summary
protected AbstractDeployInstance()
           
 
Method Summary
 void destroy()
          Destroys the deployment instance
 java.lang.ClassLoader getClassLoader()
          Returns the deployment class loader.
 java.lang.Throwable getConfigException()
          Gets the configuration exception.
 boolean isDeployIdle()
          Returns true if the deployment can be removed.
 boolean isModified()
          Returns true if the deployment is modified.
 boolean isModifiedNow()
          Returns true if the deployment is modified, forcing a check.
 boolean logModified(java.util.logging.Logger log)
          Logs the reason for modification
protected  void setClassLoader(java.lang.ClassLoader classLoader)
          The deployment class loader.
 void setConfigException(java.lang.Throwable e)
          Sets the configuration exception.
 void start()
          Starts the deployment instance
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDeployInstance

protected AbstractDeployInstance()
Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the deployment class loader.

Specified by:
getClassLoader in interface DeployInstance

setClassLoader

protected void setClassLoader(java.lang.ClassLoader classLoader)
The deployment class loader.


isModified

public boolean isModified()
Returns true if the deployment is modified.

Specified by:
isModified in interface DeployInstance
Specified by:
isModified in interface Dependency

isModifiedNow

public boolean isModifiedNow()
Returns true if the deployment is modified, forcing a check.

Specified by:
isModifiedNow in interface DeployInstance

logModified

public boolean logModified(java.util.logging.Logger log)
Logs the reason for modification

Specified by:
logModified in interface DeployInstance
Specified by:
logModified in interface Dependency

isDeployIdle

public boolean isDeployIdle()
Returns true if the deployment can be removed.

Specified by:
isDeployIdle in interface DeployInstance

setConfigException

public void setConfigException(java.lang.Throwable e)
Sets the configuration exception.

Specified by:
setConfigException in interface DeployInstance

getConfigException

public java.lang.Throwable getConfigException()
Gets the configuration exception.

Specified by:
getConfigException in interface DeployInstance

start

public void start()
Starts the deployment instance

Specified by:
start in interface DeployInstance

destroy

public void destroy()
Destroys the deployment instance

Specified by:
destroy in interface DeployInstance

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object