org.mobicents.media.server.bootstrap
Class MainDeployer

java.lang.Object
  extended by org.mobicents.media.server.bootstrap.MainDeployer

public class MainDeployer
extends java.lang.Object

Simplified deployement framework designed for hot deployement of endpoints and media components. Deployement is represented by tree of folders. Each folder may contains one or more deployement descriptors. The most top deployment directory is referenced as root. Maindeployer creates recursively HDScanner for root and each nested directoty. The HDScanner corresponding to the root directory is triggered periodicaly by local timer and in it order starts nested scanners recursively.

Author:
kulikov, amit bhayani

Constructor Summary
MainDeployer()
          Creates new instance of deployer.
 
Method Summary
 java.io.FileFilter getFileFilter()
          Gets the filter used by Deployer to select files for deployement.
 java.lang.String getPath()
          Gets the path to the to the root deployment directory.
 void setFileFilter(java.io.FileFilter fileFilter)
          Assigns file filter used for selection files for deploy.
 void setPath(java.lang.String path)
          Modify the path to the root deployment directory
 void start(org.jboss.kernel.Kernel kernel, org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer kernelDeployer)
          Starts main deployer.
 void stop()
          Shuts down deployer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainDeployer

public MainDeployer()
Creates new instance of deployer.

Method Detail

getPath

public java.lang.String getPath()
Gets the path to the to the root deployment directory.

Returns:
path to deployment directory.

setPath

public void setPath(java.lang.String path)
Modify the path to the root deployment directory

Parameters:
path -

getFileFilter

public java.io.FileFilter getFileFilter()
Gets the filter used by Deployer to select files for deployement.

Returns:
the file filter object.

setFileFilter

public void setFileFilter(java.io.FileFilter fileFilter)
Assigns file filter used for selection files for deploy.

Parameters:
fileFilter - the file filter object.

start

public void start(org.jboss.kernel.Kernel kernel,
                  org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer kernelDeployer)
           throws java.lang.Throwable
Starts main deployer.

Parameters:
kernel - the jboss microntainer kernel instance.
kernelDeployer - the jboss basic deployer.
Throws:
java.lang.Throwable

stop

public void stop()
Shuts down deployer.



Copyright © 2010. All Rights Reserved.