|
|||||||||
| Home >> All >> org >> mobicents >> slee >> container >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mobicents.slee.container.management
Class DeploymentManager

java.lang.Objectorg.mobicents.slee.container.management.DeploymentManager
- public class DeploymentManager
- extends java.lang.Object
The DeploymentManager class is where all deployment starts. Using it comes down to calling the deployUnit method by handing it an url pointing to the location of a deployable unit jar. The jar would then be copied to a the location pointed by the value of the system property: org.mobicents.slee.container.management.deployment.DEPLOYMENT_DIRECTORY and would be installed in the SLEE.
| Field Summary | |
private static byte[] |
buffer
|
private static org.jboss.logging.Logger |
logger
|
| Constructor Summary | |
DeploymentManager()
Creates a new instance of the DeploymentManager. |
|
| Method Summary | |
private java.io.File |
createTempDUJarsDeploymentDir(java.io.File rootDir,
java.net.URL sourceUrl)
Sets the directory that will be used for unpacking the child jars for a given DU. |
void |
deployAllUnitsAtLocation(java.lang.String srcPath,
java.lang.String classpathDirectoryStr,
ComponentContainer componentContainer)
Deploy all jars units from a given directory. |
void |
deployAllUnitsAtLocation(java.lang.String sourceUrlStr,
java.lang.String destinationPath,
java.lang.String classpathDirectoryStr,
ComponentContainer componentContainer)
Deploys all jars in sourceUrlStr to
destinationPath and installs them in the specified
container. |
DeployableUnitID |
deployUnit(java.net.URL sourceUrl,
java.io.File deploymentRootDir,
java.io.File classpathDirectory,
ComponentContainer componentContainer)
Retrieves the deployable unit pointed to by the unitUrlStr. |
(package private) static java.io.File |
extractFile(java.lang.String fileName,
java.util.jar.JarFile containingJar,
java.io.File dstDir)
Extracts the file with name fileName out of the
containingJar archive and stores it in dstDir. |
static void |
extractJar(java.util.jar.JarFile jarFile,
java.io.File dstDir)
This method will extract all the files in the jar file |
(package private) static void |
pipeStream(java.io.InputStream is,
java.io.OutputStream os)
Pipes data from the input stream into the output stream. |
(package private) static java.io.File |
retrieveFile(java.net.URL url,
java.io.File localDstDir)
Retrieves the file that the specified url points to,
records it to localDstDir and returns a JarFile instance
corresponding to that file. |
(package private) static java.util.jar.JarFile |
retrieveJar(java.net.URL url,
java.io.File localDstDir)
Retrieves the file that the specified url points to,
records it to localDstDir and returns a JarFile instance
corresponding to that file. |
void |
startDeployingLocation(java.lang.String sourceURL,
java.lang.String deploymentPath,
ComponentContainer container)
Fill IN!!!! This is a method that should start monitoring a specific location and deploy all units that appear in it |
void |
undeployUnit(DeployableUnitIDImpl deployableUnitID)
Remove only stuff associated with a deployable unit id. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
logger
private static org.jboss.logging.Logger logger
buffer
private static byte[] buffer
| Constructor Detail |
DeploymentManager
public DeploymentManager()
- Creates a new instance of the DeploymentManager.
| Method Detail |
deployUnit
public DeployableUnitID deployUnit(java.net.URL sourceUrl, java.io.File deploymentRootDir, java.io.File classpathDirectory, ComponentContainer componentContainer) throws java.lang.NullPointerException, DeploymentException, AlreadyDeployedException
- Retrieves the deployable unit pointed to by the unitUrlStr.
deployAllUnitsAtLocation
public void deployAllUnitsAtLocation(java.lang.String srcPath, java.lang.String classpathDirectoryStr, ComponentContainer componentContainer) throws java.lang.NullPointerException, DeploymentException
- Deploy all jars units from a given directory.
deployAllUnitsAtLocation
public void deployAllUnitsAtLocation(java.lang.String sourceUrlStr, java.lang.String destinationPath, java.lang.String classpathDirectoryStr, ComponentContainer componentContainer) throws java.lang.NullPointerException, DeploymentException
- Deploys all jars in
sourceUrlStrtodestinationPathand installs them in the specified container.
startDeployingLocation
public void startDeployingLocation(java.lang.String sourceURL, java.lang.String deploymentPath, ComponentContainer container) throws java.lang.NullPointerException, DeploymentException
- Fill IN!!!! This is a method that should start monitoring a specific
location and deploy all units that appear in it
retrieveJar
static java.util.jar.JarFile retrieveJar(java.net.URL url, java.io.File localDstDir) throws java.lang.NullPointerException, java.io.IOException
- Retrieves the file that the specified
urlpoints to, records it tolocalDstDirand returns a JarFile instance corresponding to that file.
retrieveFile
static java.io.File retrieveFile(java.net.URL url, java.io.File localDstDir) throws java.lang.NullPointerException, java.io.IOException
- Retrieves the file that the specified
urlpoints to, records it tolocalDstDirand returns a JarFile instance corresponding to that file.
pipeStream
static void pipeStream(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
- Pipes data from the input stream into the output stream.
extractFile
static java.io.File extractFile(java.lang.String fileName, java.util.jar.JarFile containingJar, java.io.File dstDir) throws java.io.IOException
- Extracts the file with name
fileNameout of thecontainingJararchive and stores it indstDir.
extractJar
public static void extractJar(java.util.jar.JarFile jarFile, java.io.File dstDir) throws java.io.IOException
- This method will extract all the files in the jar file
undeployUnit
public void undeployUnit(DeployableUnitIDImpl deployableUnitID)
- Remove only stuff associated with a deployable unit id.
createTempDUJarsDeploymentDir
private java.io.File createTempDUJarsDeploymentDir(java.io.File rootDir, java.net.URL sourceUrl)
- Sets the directory that will be used for unpacking the child jars for a given DU.
|
|||||||||
| Home >> All >> org >> mobicents >> slee >> container >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.mobicents.slee.container.management.DeploymentManager