org.jboss.services.deployment
Interface DeploymentServiceMBean

All Superinterfaces:
org.jboss.system.ListenerServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
DeploymentService

public interface DeploymentServiceMBean
extends org.jboss.system.ListenerServiceMBean

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)
           
 String createModule(String module, String template, String[] properties)
          Used primarily for testing through the jmx-console
 void deployModuleAsynch(String module)
           
 String getDeployDir()
           
 URL getDeployedURL(String module)
           
 String getTemplateDir()
           
 List getTemplatePropertyInfo(String template)
           
 String getUndeployDir()
           
 URL getUndeployedURL(String module)
           
 Set listModuleTemplates()
           
 boolean removeModule(String module)
           
 void setDeployDir(String deployDir)
           
 void setTemplateDir(String templateDir)
           
 void setUndeployDir(String undeployDir)
           
 void undeployModuleAsynch(String module)
           
 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

setTemplateDir

void setTemplateDir(String templateDir)

getTemplateDir

String getTemplateDir()

getUndeployDir

String getUndeployDir()

setUndeployDir

void setUndeployDir(String undeployDir)

getDeployDir

String getDeployDir()

setDeployDir

void setDeployDir(String deployDir)

listModuleTemplates

Set listModuleTemplates()

getTemplatePropertyInfo

List getTemplatePropertyInfo(String template)
                             throws Exception
Throws:
Exception

createModule

String createModule(String module,
                    String template,
                    HashMap properties)
                    throws Exception
Throws:
Exception

createModule

String createModule(String module,
                    String template,
                    String[] properties)
                    throws Exception
Used primarily for testing through the jmx-console

Throws:
Exception

removeModule

boolean removeModule(String module)

deployModuleAsynch

void deployModuleAsynch(String module)
                        throws Exception
Throws:
Exception

getDeployedURL

URL getDeployedURL(String module)
                   throws Exception
Throws:
Exception

undeployModuleAsynch

void undeployModuleAsynch(String module)
                          throws Exception
Throws:
Exception

getUndeployedURL

URL getUndeployedURL(String module)
                     throws Exception
Throws:
Exception

uploadLibrary

boolean uploadLibrary(URL src,
                      String filename)
Upload a new library to server lib dir. A different filename may be specified, when writing the library. If the target filename exists, upload is not performed.

Parameters:
src - the source url to copy
filename - the filename to use when copying (optional)
Returns:
true if upload was succesful, false otherwise


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.