com.caucho.jca.ra
Class ResourceDeploy

java.lang.Object
  extended by com.caucho.jca.ra.ResourceDeploy

public class ResourceDeploy
extends java.lang.Object

The generator for the resource-deploy


Constructor Summary
ResourceDeploy()
           
 
Method Summary
 Path getArchiveDirectory()
           
 Path getArchivePath(java.lang.String name)
           
 java.lang.Throwable getConfigException()
           
 java.lang.Throwable getConfigException(java.lang.String moduleID)
           
 long getDependencyCheckInterval()
           
 Path getExpandDirectory()
          Gets the rar expand directory.
protected  java.lang.String getExpandName(java.lang.String name)
          Returns the combination of prefix, name, and suffix used for expanded archives.
 Path getExpandPath()
          Deprecated. use @getExpandDirectory
 Path getExpandPath(java.lang.String name)
          Returns the location of an expanded archive, or null if no archive with the passed name is deployed.
 java.lang.String getExpandPrefix()
          Returns the expand prefix.
 java.lang.String getExpandSuffix()
           
 java.lang.String getExtension()
           
 java.lang.String[] getNames()
           
 Path getPath()
          Gets the rar directory.
 DeployMode getRedeployMode()
           
 DeployMode getStartupMode()
           
 java.lang.String getState()
           
 void init()
          Initialize the resource-deploy.
 boolean isModified()
           
 void setExpandPath(Path path)
          Sets the war expand dir to check for new applications.
 void setExpandPrefix(java.lang.String prefix)
          Sets the expand prefix.
 void setPath(Path path)
          Sets the rar directory.
 void start()
           
 void start(java.lang.String name)
           
 void stop()
           
 void stop(java.lang.String name)
           
 void undeploy(java.lang.String name)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDeploy

public ResourceDeploy()
Method Detail

getPath

public Path getPath()
Gets the rar directory.


setPath

public void setPath(Path path)
Sets the rar directory.


getArchiveDirectory

public Path getArchiveDirectory()

getArchivePath

public Path getArchivePath(java.lang.String name)

getExpandName

protected java.lang.String getExpandName(java.lang.String name)
Returns the combination of prefix, name, and suffix used for expanded archives.

Returns:

setExpandPath

public void setExpandPath(Path path)
Sets the war expand dir to check for new applications.


getExpandPath

public Path getExpandPath()
Deprecated. use @getExpandDirectory


getExpandDirectory

public Path getExpandDirectory()
Gets the rar expand directory.


getExpandPath

public Path getExpandPath(java.lang.String name)
Returns the location of an expanded archive, or null if no archive with the passed name is deployed.

Parameters:
name - a name, without an extension

getExpandPrefix

public java.lang.String getExpandPrefix()
Returns the expand prefix.


setExpandPrefix

public void setExpandPrefix(java.lang.String prefix)
Sets the expand prefix.


isModified

public boolean isModified()

init

@PostConstruct
public void init()
          throws ConfigException
Initialize the resource-deploy.

Throws:
ConfigException

getExtension

public java.lang.String getExtension()

getExpandSuffix

public java.lang.String getExpandSuffix()

getDependencyCheckInterval

public long getDependencyCheckInterval()

getStartupMode

public DeployMode getStartupMode()

getRedeployMode

public DeployMode getRedeployMode()

getState

public java.lang.String getState()

start

public void start()

getConfigException

public java.lang.Throwable getConfigException()

stop

public void stop()

update

public void update()

getNames

public java.lang.String[] getNames()

stop

public void stop(java.lang.String name)

start

public void start(java.lang.String name)

getConfigException

public java.lang.Throwable getConfigException(java.lang.String moduleID)

undeploy

public void undeploy(java.lang.String name)