|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentServiceMBean
MBean interface.
Field Summary |
---|
Fields inherited from interface org.jboss.system.ListenerServiceMBean |
---|
SL_FILTER_ELEMENT, SL_FILTER_FACTORY_ATTRIBUTE, SL_MBEAN_ELEMENT, SL_MBEAN_HANDBACK_ATTRIBUTE, SL_MBEAN_NAME_ATTRIBUTE, SL_NOTIFICATION_ELEMENT, SL_NOTIFICATION_TYPE_ATTRIBUTE, SL_ROOT_ELEMENT |
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 |
Method Summary | |
---|---|
String |
createModule(String module,
String template,
HashMap properties)
Generate a new module based on the specified template and the input properties |
String |
createModule(String module,
String template,
String[] properties)
Used primarily for testing through the jmx-console |
void |
deployModuleAsynch(String module)
Move a module to the deploy directory |
String |
getDeployDir()
Gets the directory where modules should be deployed |
URL |
getDeployedURL(String module)
Get the URL of a deployed module |
String |
getTemplateDir()
Gets the directory where templates are stored |
List |
getTemplatePropertyInfo(String template)
Get property metadata information for a particular template List |
String |
getUndeployDir()
Gets the directory where new deployments are produced |
URL |
getUndeployedURL(String module)
Get the URL of an undeployed module |
Set |
listModuleTemplates()
Return the set of available deployment templates Set |
String |
removeDataSource(String module,
String template,
HashMap properties)
Remove an existing data source based on the specified template and the input properties. |
boolean |
removeModule(String module)
Remove a module if exists |
void |
setDeployDir(String deployDir)
Sets the directory where modules should be deployed |
void |
setTemplateDir(String templateDir)
Sets the directory where templates are stored |
void |
setUndeployDir(String undeployDir)
Sets the directory where new deployments are produced |
void |
undeployModuleAsynch(String module)
Move a module to the undeploy directory |
String |
updateDataSource(String module,
String template,
HashMap properties)
Update an existing data source based on the specified template and the input properties. |
boolean |
updateMBean(MBeanData data)
Update an existing module based on the specified template and the input properties |
boolean |
uploadLibrary(URL src,
String filename)
Upload a new library to server lib dir. |
Methods inherited from interface org.jboss.system.ListenerServiceMBean |
---|
setSubscriptionList |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Method Detail |
---|
void setTemplateDir(String templateDir)
String getTemplateDir()
void setUndeployDir(String undeployDir)
String getUndeployDir()
void setDeployDir(String deployDir)
String getDeployDir()
Set listModuleTemplates()
List getTemplatePropertyInfo(String template) throws Exception
Exception
String createModule(String module, String template, HashMap properties) throws Exception
Exception
String createModule(String module, String template, String[] properties) throws Exception
Exception
boolean removeModule(String module)
boolean updateMBean(MBeanData data) throws Exception
data
- Data used to update the mbean descriptor. The name and
templateName properties are required.
Exception
String updateDataSource(String module, String template, HashMap properties) throws Exception
Before updating a data source, you will need to gather the properties for the existing data source. The properties can be found in the following MBeans (where XXX is the data source jndi name, and YYY corresponds to the transaction type: NoTxCM, LocalTxCM, XATxCM):
To find the dependencies, get the jboss.system:service=ServiceController MBean and invoke the listDeployed method. Then search through the returned results for the jboss.jca:name=XXX,service=ManagedConnectionFactory MBean. That entry will contain the dependecies. Note that there will be an extra implied dependency named "jboss.jca:service=RARDeployment,name='jboss-ZZZ-jdbc.rar'", where ZZZ is 'local' (local and no transaction types) or 'xa'. Ignore this extra dependency, do not provide it when doing an update.
module
- The name of the model that contains the data source definition.
For example, the default data source, DefaultDS, is typically found in a
module named "hsqldb-ds.xml", with "hsqldb" being an acceptable abbreviation.template
- The name of the template to use to update the data source.
You must select the proper template based on the data source transaction type.
Use one of the following: "local-tx-datasource", "no-tx-datasource", or
"xa-datasource". Alternatively, you could add the "-update" suffix; for
example, "local-tx-datasource-update" is the same as "local-tx-datasource".MashMap
- The collection of properties used for the data source. See
the template-config.xml file for the given template (in template directory)
for expected property names.
Exception
String removeDataSource(String module, String template, HashMap properties) throws Exception
module
- The name of the model that contains the data source definition.
See the module parameter under updateDataSource for more information.template
- There is only one delete template: "datasource". Optionally,
you can use the template name "datasource-remove".properties
- The key property to provide is "jndi-name". This property
if used to determine which data source to remove.
Exception
updateDataSource(String, String, HashMap)
void deployModuleAsynch(String module) throws Exception
Exception
URL getDeployedURL(String module) throws Exception
Exception
void undeployModuleAsynch(String module) throws Exception
Exception
URL getUndeployedURL(String module) throws Exception
Exception
boolean uploadLibrary(URL src, String filename)
src
- the source url to copyfilename
- the filename to use when copying (optional)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |