|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.jbi.management.BaseSystemService
org.apache.servicemix.jbi.framework.AutoDeploymentService
public class AutoDeploymentService
Monitors install and deploy directories to auto install/deploy archives
| Nested Class Summary | |
|---|---|
static class |
AutoDeploymentService.ArchiveEntry
|
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
container |
| Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
currentState, INITIALIZED, listener |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
AutoDeploymentService()
|
|
| Method Summary | |
|---|---|
protected javax.jbi.management.DeploymentException |
failure(String task,
String info)
|
protected javax.jbi.management.DeploymentException |
failure(String task,
String info,
Exception e)
|
protected javax.jbi.management.DeploymentException |
failure(String task,
String info,
Exception e,
List componentResults)
|
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
protected Set<String> |
getComponentNames(ServiceAssembly sa)
|
String |
getDescription()
Get the Description of the item |
String |
getExtensions()
|
int |
getMonitorInterval()
|
protected Class<AutoDeploymentServiceMBean> |
getServiceMBean()
|
protected Set<String> |
getSharedLibraryNames(Component comp)
|
void |
init(JBIContainer container)
Initialize the Service |
boolean |
isMonitorDeploymentDirectory()
|
boolean |
isMonitorInstallationDirectory()
|
void |
removeArchive(AutoDeploymentService.ArchiveEntry entry)
Remove an archive location |
void |
setExtensions(String extensions)
|
void |
setMonitorDeploymentDirectory(boolean monitorDeploymentDirectory)
|
void |
setMonitorInstallationDirectory(boolean monitorInstallationDirectory)
|
void |
setMonitorInterval(int monitorInterval)
|
void |
start()
Start the item. |
void |
stop()
Stop the item. |
protected static File |
unpackLocation(File tmpRoot,
String location)
Unpack a location into a temp file directory. |
void |
updateArchive(String location,
AutoDeploymentService.ArchiveEntry entry,
boolean autoStart)
Update an archive |
protected void |
updateComponent(AutoDeploymentService.ArchiveEntry entry,
boolean autoStart,
File tmpDir,
Descriptor root)
|
AutoDeploymentService.ArchiveEntry |
updateExternalArchive(String location,
boolean autoStart)
load an archive from an external location |
protected void |
updateServiceAssembly(AutoDeploymentService.ArchiveEntry entry,
boolean autoStart,
File tmpDir,
Descriptor root)
|
protected void |
updateSharedLibrary(AutoDeploymentService.ArchiveEntry entry,
File tmpDir,
Descriptor root)
|
| Methods inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
getContainer, getName, getType, shutDown |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
firePropertyChanged, getCurrentState, getObjectToManage, getOperationInfos, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState, shutDown |
| Constructor Detail |
|---|
public AutoDeploymentService()
| Method Detail |
|---|
public String getExtensions()
public void setExtensions(String extensions)
extensions - the extensions to setpublic String getDescription()
MBeanInfoProvider
getDescription in interface MBeanInfoProviderpublic boolean isMonitorInstallationDirectory()
public void setMonitorInstallationDirectory(boolean monitorInstallationDirectory)
monitorInstallationDirectory - The monitorInstallationDirectory to set.public boolean isMonitorDeploymentDirectory()
public void setMonitorDeploymentDirectory(boolean monitorDeploymentDirectory)
monitorDeploymentDirectory - The monitorDeploymentDirectory to set.public int getMonitorInterval()
public void setMonitorInterval(int monitorInterval)
monitorInterval - The monitorInterval to set (in secs)
public void start()
throws javax.jbi.JBIException
BaseLifeCycle
start in interface javax.jbi.management.LifeCycleMBeanstart in class BaseLifeCyclejavax.jbi.JBIException - if the item fails to start.
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanstop in class BaseLifeCyclejavax.jbi.JBIException - if the item fails to stop.
public void init(JBIContainer container)
throws javax.jbi.JBIException
init in class BaseSystemServicecontainer -
javax.jbi.JBIExceptionprotected Class<AutoDeploymentServiceMBean> getServiceMBean()
getServiceMBean in class BaseSystemService
public AutoDeploymentService.ArchiveEntry updateExternalArchive(String location,
boolean autoStart)
throws javax.jbi.management.DeploymentException
location - autoStart -
javax.jbi.management.DeploymentException
public void updateArchive(String location,
AutoDeploymentService.ArchiveEntry entry,
boolean autoStart)
throws javax.jbi.management.DeploymentException
location - autoStart -
javax.jbi.management.DeploymentException
protected void updateComponent(AutoDeploymentService.ArchiveEntry entry,
boolean autoStart,
File tmpDir,
Descriptor root)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected void updateSharedLibrary(AutoDeploymentService.ArchiveEntry entry,
File tmpDir,
Descriptor root)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected void updateServiceAssembly(AutoDeploymentService.ArchiveEntry entry,
boolean autoStart,
File tmpDir,
Descriptor root)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected javax.jbi.management.DeploymentException failure(String task,
String info)
protected javax.jbi.management.DeploymentException failure(String task,
String info,
Exception e)
protected javax.jbi.management.DeploymentException failure(String task,
String info,
Exception e,
List componentResults)
protected Set<String> getComponentNames(ServiceAssembly sa)
protected Set<String> getSharedLibraryNames(Component comp)
public void removeArchive(AutoDeploymentService.ArchiveEntry entry)
throws javax.jbi.management.DeploymentException
location -
javax.jbi.management.DeploymentException
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface MBeanInfoProvidergetAttributeInfos in class BaseLifeCycleJMException
protected static File unpackLocation(File tmpRoot,
String location)
throws javax.jbi.management.DeploymentException
location -
javax.jbi.management.DeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||