org.jboss.messaging.core.deployers.impl
Class FileDeploymentManager

java.lang.Object
  extended by org.jboss.messaging.core.deployers.impl.FileDeploymentManager
All Implemented Interfaces:
java.lang.Runnable, DeploymentManager, MessagingComponent

public class FileDeploymentManager
extends java.lang.Object
implements java.lang.Runnable, DeploymentManager

Author:
Andy Taylor, Tim Fox

Nested Class Summary
static class FileDeploymentManager.DeployInfo
           
 
Constructor Summary
FileDeploymentManager(long period)
           
 
Method Summary
 java.util.Map<Pair<java.net.URL,Deployer>,FileDeploymentManager.DeployInfo> getDeployed()
           
 java.util.List<Deployer> getDeployers()
           
 boolean isStarted()
           
 void registerDeployer(Deployer deployer)
          registers a Deployer object which will handle the deployment of URL's
 void run()
          called by the ExecutorService every n seconds
 void start()
           
 void stop()
           
 void unregisterDeployer(Deployer deployer)
          unregisters a deployable object which will handle the deployment of URL's
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDeploymentManager

public FileDeploymentManager(long period)
Method Detail

start

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

stop

public void stop()
Specified by:
stop in interface MessagingComponent

isStarted

public boolean isStarted()
Specified by:
isStarted in interface MessagingComponent

registerDeployer

public void registerDeployer(Deployer deployer)
                      throws java.lang.Exception
registers a Deployer object which will handle the deployment of URL's

Specified by:
registerDeployer in interface DeploymentManager
Parameters:
deployer - The Deployer object
Throws:
java.lang.Exception - .

unregisterDeployer

public void unregisterDeployer(Deployer deployer)
                        throws java.lang.Exception
Description copied from interface: DeploymentManager
unregisters a deployable object which will handle the deployment of URL's

Specified by:
unregisterDeployer in interface DeploymentManager
Parameters:
deployer - The deployable object
Throws:
java.lang.Exception - .

run

public void run()
called by the ExecutorService every n seconds

Specified by:
run in interface java.lang.Runnable

getDeployers

public java.util.List<Deployer> getDeployers()

getDeployed

public java.util.Map<Pair<java.net.URL,Deployer>,FileDeploymentManager.DeployInfo> getDeployed()


Copyright © 2006 JBoss Inc. All Rights Reserved.