|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrunx.kernel.ServiceAdapter
|
+--jrunx.kernel.ServicePartition
|
+--jrunx.kernel.ConfigurableServicePartition
|
+--jrunx.cluster.ClusterableServiceAdapter
|
+--jrun.deployment.DeployerService
The externally-visible object that kicks off the deployment
process at run time. This Class needs to be configured in the server's
jrun.xml file, as it is a publicly-manageable service.
Note that deployment is NOT a separate step in JRun, it occurs
every time the server is started. Deployment and runtime are
intermingled; in traditional terms, there is no deployment because
no container artifacts are generated.
| Fields inherited from class jrunx.cluster.ClusterableServiceAdapter |
clientSocketFactoryName, defaultAlgorithm, myHost, myIP, myPeers, myStub, port, serverSocketFactoryName |
| Fields inherited from class jrunx.kernel.ServicePartition |
sortedServices |
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| Fields inherited from interface jrun.deployment.DeployerServiceMBean |
OBJECT_NAME |
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Fields inherited from interface jrunx.cluster.ClusterConstants |
AVAILABLE_SERVICES, CLUSTER_MANAGER_JNDI, DEFAULT_CLUSTER_DOMAIN, DEFAULT_ENABLED, JINI_CODE_BASE_JAR, PRIMARY_SERVICE, SECONDARY_SERVICE |
| Constructor Summary | |
DeployerService()
|
|
| Method Summary | |
void |
addDeployDirectory(java.lang.String path)
Adds this directory to the list of watched directories. |
void |
checkWatchedDirectories()
Check watched directories for new urls. |
void |
deploy(java.net.URL url)
Deploy this url immediately. |
void |
deployPersistentURL(java.net.URL url)
Deploy and add the URL, url, to jrun.xml. |
void |
destroy()
Destroy all deployed containers. |
java.lang.String[] |
getDeployDirectoryList()
Get the list of watched Directories |
java.util.ArrayList |
getDeployedComponentObjectNames(java.net.URL url)
Get deployed Component JMX object name |
java.lang.String[] |
getDeployedURLs()
Get the list of deployed URLs |
java.lang.String[] |
getEARs()
Get deployed EAR JMX object names |
java.lang.String[] |
getEJBs()
Get deployed EJB jars object names (not including ones inside deployed ears) |
boolean |
getHotDeploy()
|
long |
getPollFrequency()
|
java.lang.String[] |
getRARs()
Get deployed EJB jars object names (not including ones inside deployed ears) |
java.lang.String |
getTemporaryDirectory()
Accessors for the temporary directory. |
java.lang.String[] |
getWARs()
Get deployed EJB jars object names (not including ones inside deployed ears) |
void |
handleEvent(ServerEvent event,
java.lang.Object handback)
Handle a server event |
void |
init()
Not every service needs to init, implement it out of convenience. |
boolean |
inWatchedDirectory(java.net.URL url)
Check watched directories for new urls. |
boolean |
isDeployed(java.net.URL url)
Determine whether a specific application is deployed |
boolean |
isPersistXML()
|
boolean |
isStartupDeployComplete()
During server startup, client tools need to know when all deployments are completed. |
boolean |
isValidateXML()
|
J2EEModuleFactory |
lookupJ2EEModuleFactory(java.net.URL url,
java.net.URL originURL)
|
J2EEModuleFactory |
lookupJ2EEModuleFactory(java.net.URL url,
java.net.URL originURL,
java.util.Iterator factoryIterator)
|
void |
redeploy(java.net.URL url)
Redeploy this url and all of it's dependents immediately. |
void |
removeDeployDirectory(java.lang.String path)
Remove this directory from the watched directory list |
void |
run()
The auto-deployer acts through this runnable method. |
void |
setDeployDirectory(java.lang.String path)
Add this directory to the watched directory list. |
void |
setFile(java.lang.String fileString)
This method conforms to the MBean standard in order to make use of attributes set in jrun.xml. |
void |
setHotDeploy(boolean newValue)
Turn hotDeploy on or off. |
void |
setPersistXML(boolean persistXML)
|
void |
setPollFrequency(long seconds)
Set the polling frequency of the DeployerService |
void |
setTemporaryDirectory(java.lang.String temporaryDirectory)
|
void |
setUrl(java.lang.String urlString)
This method conforms to the MBean standard in order to make use of attributes set in jrun.xml. |
void |
setValidateXML(boolean validateXML)
|
void |
start()
Register to receive server started event. |
void |
stop()
Stop all deployed containers. |
void |
undeploy(java.net.URL url)
Undeploy the application at the specific url |
void |
undeployPersistentURL(java.net.URL url)
Undeploy and remove the URL, url, from jrun.xml. |
| Methods inherited from class jrunx.kernel.ConfigurableServicePartition |
destroyServices, initServices, loadAndInit, loadChildren, setChildElements, startServices, stopServices |
| Methods inherited from class jrunx.kernel.ServicePartition |
addService, addService, getServices, invokeChain, iterator, removeService, removeService |
| Methods inherited from interface jrunx.cluster.ClusterableServiceAdapterMBean |
addPeerListener, getClientSocketFactory, getClusterAlgorithm, getPort, getServerSocketFactoryClass, setClientSocketFactoryClass, setClusterAlgorithm, setPort, setServerSocketFactoryClass |
| Methods inherited from interface jrunx.kernel.ConfigurableServicePartitionMBean |
setChildElements |
| Methods inherited from interface jrunx.kernel.ServicePartitionMBean |
addService, addService, iterator, removeService, removeService |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
getStatus, updateStatus |
| Methods inherited from interface jrunx.cluster.ClusterableService |
getPeers, getRemoteHostIP, getRemoteHostName, getRemoteServerName, getServerInfo, invoke, killRemoteServer, numPeers, toStub |
| Constructor Detail |
public DeployerService()
| Method Detail |
public void checkWatchedDirectories()
throws DeploymentException
public void destroy()
throws java.lang.Exception
destroy in interface Servicedestroy in class ClusterableServiceAdapter
public void handleEvent(ServerEvent event,
java.lang.Object handback)
ServerEventListenerhandleEvent in interface ServerEventListenerjrunx.kernel.ServerEventListenerevent - The server eventhandback - The object handback supplied when the listener was registered
public void deploy(java.net.URL url)
throws DeploymentException,
java.rmi.RemoteException
deploy in interface DeployerServiceMBeanpublic java.lang.String[] getDeployDirectoryList()
getDeployDirectoryList in interface DeployerServiceMBeanpublic java.lang.String[] getDeployedURLs()
getDeployedURLs in interface DeployerServiceMBeanpublic java.lang.String[] getEARs()
DeployerServiceMBeangetEARs in interface DeployerServiceMBeanpublic java.lang.String[] getEJBs()
DeployerServiceMBeangetEJBs in interface DeployerServiceMBeanpublic java.lang.String[] getRARs()
DeployerServiceMBeangetRARs in interface DeployerServiceMBeanpublic java.lang.String[] getWARs()
DeployerServiceMBeangetWARs in interface DeployerServiceMBean
public java.util.ArrayList getDeployedComponentObjectNames(java.net.URL url)
throws DeploymentException
getDeployedComponentObjectNames in interface DeployerServiceMBeanpublic boolean getHotDeploy()
getHotDeploy in interface DeployerServiceMBeanpublic long getPollFrequency()
getPollFrequency in interface DeployerServiceMBeanpublic java.lang.String getTemporaryDirectory()
DeployerServiceMBeangetTemporaryDirectory in interface DeployerServiceMBean
public void init()
throws java.lang.Exception
ServiceAdapterinit in interface Serviceinit in class ClusterableServiceAdapter
public boolean isDeployed(java.net.URL url)
throws DeploymentException,
java.rmi.RemoteException
isDeployed in interface DeployerServiceMBeanpublic boolean isPersistXML()
isPersistXML in interface DeployerServiceMBeanpublic boolean isValidateXML()
isValidateXML in interface DeployerServiceMBean
public boolean isStartupDeployComplete()
throws java.rmi.RemoteException
DeployerServiceMBeanisStartupDeployComplete in interface DeployerServiceMBean
public J2EEModuleFactory lookupJ2EEModuleFactory(java.net.URL url,
java.net.URL originURL)
throws DeploymentException
public J2EEModuleFactory lookupJ2EEModuleFactory(java.net.URL url,
java.net.URL originURL,
java.util.Iterator factoryIterator)
throws DeploymentException
public void run()
run in interface java.lang.Runnable
public void setDeployDirectory(java.lang.String path)
throws DeploymentException
setDeployDirectory in interface DeployerServiceMBean
public void addDeployDirectory(java.lang.String path)
throws DeploymentException
addDeployDirectory in interface DeployerServiceMBean
public void removeDeployDirectory(java.lang.String path)
throws DeploymentException
removeDeployDirectory in interface DeployerServiceMBeanpublic void setHotDeploy(boolean newValue)
DeployerServiceMBeansetHotDeploy in interface DeployerServiceMBeanpublic void setPollFrequency(long seconds)
DeployerServiceMBeansetPollFrequency in interface DeployerServiceMBean
public void setTemporaryDirectory(java.lang.String temporaryDirectory)
throws java.io.IOException
setTemporaryDirectory in interface DeployerServiceMBean
public void setUrl(java.lang.String urlString)
throws DeploymentException
DeployerServiceMBeandeploy(url).setUrl in interface DeployerServiceMBean
public void setFile(java.lang.String fileString)
throws DeploymentException
DeployerServiceMBeandeploy(url).setFile in interface DeployerServiceMBeanpublic void setPersistXML(boolean persistXML)
setPersistXML in interface DeployerServiceMBeanpublic void setValidateXML(boolean validateXML)
setValidateXML in interface DeployerServiceMBean
public void start()
throws java.lang.Exception
start in interface Servicestart in class ClusterableServiceAdapter
public void stop()
throws java.lang.Exception
stop in interface Servicestop in class ClusterableServiceAdapter
public void redeploy(java.net.URL url)
throws DeploymentException,
java.rmi.RemoteException
redeploy in interface DeployerServiceMBean
public void undeploy(java.net.URL url)
throws DeploymentException,
java.rmi.RemoteException
undeploy in interface DeployerServiceMBean
public void deployPersistentURL(java.net.URL url)
throws DeploymentException
DeployerServiceMBeanurl, to jrun.xml.deployPersistentURL in interface DeployerServiceMBean
public void undeployPersistentURL(java.net.URL url)
throws DeploymentException
DeployerServiceMBeanurl, from jrun.xml.undeployPersistentURL in interface DeployerServiceMBeanpublic boolean inWatchedDirectory(java.net.URL url)
inWatchedDirectory in interface DeployerServiceMBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||