|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.cache.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 (src) |
deployer
A proxy to the deployer we are using. |
protected DeploymentStore (src) |
store
A proxy to the deployment store we are using. |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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(java.net.URL url)
Deploys a package identified by a URL |
protected void |
destroyService()
Sub-classes should override this method to provide custum 'destroy' logic. |
ObjectName (src) |
getDeployer()
|
ObjectName (src) |
getStore()
|
boolean |
isDeployed(java.net.URL url)
Tells you if a packaged identified by a URL is deployed. |
protected boolean |
isInvalid(java.net.URL orig,
java.net.URL stored)
|
void |
setDeployer(ObjectName (src) deployerName)
|
void |
setStore(ObjectName (src) 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(java.net.URL url)
Undeploys a package identified by a URL |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, 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 (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Deployer (src) deployer
protected DeploymentStore (src) store
Constructor Detail |
public DeploymentCache()
Method Detail |
public void setDeployer(ObjectName (src) deployerName)
public ObjectName (src) getDeployer()
public void setStore(ObjectName (src) storeName)
public ObjectName (src) getStore()
protected boolean isInvalid(java.net.URL orig, java.net.URL stored) throws java.lang.Exception
java.lang.Exception
public void deploy(java.net.URL url) throws DeploymentException (src)
Deployer (src)
deploy
in interface Deployer (src)
url
- an URL
value
DeploymentException (src)
- Failed to deploy URL.public void undeploy(java.net.URL url) throws DeploymentException (src)
Deployer (src)
undeploy
in interface Deployer (src)
url
- an URL
value
DeploymentException (src)
- Failed to undeploy URL.public boolean isDeployed(java.net.URL url)
Deployer (src)
isDeployed
in interface Deployer (src)
url
- an URL
value
boolean
valueprotected void createService() throws java.lang.Exception
ServiceMBeanSupport (src)
This 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 ServiceMBeanSupport (src)
java.lang.Exception
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This 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 ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This 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 ServiceMBeanSupport (src)
java.lang.Exception
protected void destroyService() throws java.lang.Exception
ServiceMBeanSupport (src)
This 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 ServiceMBeanSupport (src)
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |