|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.cache.DeploymentCache
public class DeploymentCache
A Deployer-like service which intercepts deploy/undeploy calls to MainDeployer and provides local caching of target URLs using local disk.
| Field Summary | |
|---|---|
protected Deployer |
deployer
A proxy to the deployer we are using. |
protected DeploymentStore |
store
A proxy to the deployment store we are using. |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
DeploymentCache()
|
|
| Method Summary | |
|---|---|
protected void |
createService()
Sub-classes should override this method to provide custum 'create' logic. |
void |
deploy(URL url)
Deploys a package identified by a URL |
protected void |
destroyService()
Sub-classes should override this method to provide custum 'destroy' logic. |
javax.management.ObjectName |
getDeployer()
|
javax.management.ObjectName |
getStore()
|
boolean |
isDeployed(URL url)
Tells you if a packaged identified by a URL is deployed. |
protected boolean |
isInvalid(URL orig,
URL stored)
|
void |
setDeployer(javax.management.ObjectName deployerName)
|
void |
setStore(javax.management.ObjectName storeName)
|
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
void |
undeploy(URL url)
Undeploys a package identified by a URL |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Field Detail |
|---|
protected Deployer deployer
protected DeploymentStore store
| Constructor Detail |
|---|
public DeploymentCache()
| Method Detail |
|---|
public void setDeployer(javax.management.ObjectName deployerName)
setDeployer in interface DeploymentCacheMBeanpublic javax.management.ObjectName getDeployer()
getDeployer in interface DeploymentCacheMBeanpublic void setStore(javax.management.ObjectName storeName)
setStore in interface DeploymentCacheMBeanpublic javax.management.ObjectName getStore()
getStore in interface DeploymentCacheMBean
protected boolean isInvalid(URL orig,
URL stored)
throws Exception
Exception
public void deploy(URL url)
throws DeploymentException
DeployerMBean
deploy in interface DeploymentCacheMBeandeploy in interface Deployerdeploy in interface DeployerMBeanurl - an URL value
DeploymentException - Failed to deploy URL.
public void undeploy(URL url)
throws DeploymentException
DeployerMBean
undeploy in interface DeploymentCacheMBeanundeploy in interface Deployerundeploy in interface DeployerMBeanurl - an URL value
DeploymentException - Failed to undeploy URL.public boolean isDeployed(URL url)
DeployerMBean
isDeployed in interface DeploymentCacheMBeanisDeployed in interface DeployerisDeployed in interface DeployerMBeanurl - an URL value
boolean value
protected void createService()
throws Exception
ServiceMBeanSupportThis method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService in class ServiceMBeanSupportException
protected void startService()
throws Exception
ServiceMBeanSupportThis method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService in class ServiceMBeanSupportException
protected void stopService()
throws Exception
ServiceMBeanSupportThis method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService in class ServiceMBeanSupportException
protected void destroyService()
throws Exception
ServiceMBeanSupportThis method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
destroyService in class ServiceMBeanSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||