|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.modeler.BaseModelMBean
org.objectweb.jonas.server.J2EEServerMBean
public class J2EEServerMBean
MBean class for Server management. Two classes are used to provide all management services : J2EEServer and J2EEServerMBean. This class provide the notification's process when add or remove resources.
Field Summary |
---|
Fields inherited from class org.apache.commons.modeler.BaseModelMBean |
---|
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source |
Constructor Summary | |
---|---|
J2EEServerMBean()
Default constructor. |
Method Summary | |
---|---|
void |
addNotificationListener(NotificationListener pListner,
NotificationFilter pFilter,
Object pHandback)
Add a new listener. |
String |
deployFile(Integer typeparam,
Byte[] bfile,
String filename,
String[] genicArgs,
Boolean moveIntoDeployableDirectory)
Deploy file (GenIC), needed for Ishmael to work. |
String[] |
getDeployedObjects()
All The MBean names corresponding to the deployed J2EEModules (ear, jar, war, rar). |
String[] |
getJavaVMs()
All The MBean names corresponding to the used JVMs. |
String[] |
getResources()
All The MBean names corresponding to the deployed J2EEResources. |
boolean |
removeModuleFile(String fileName)
Remove a specified J2EE module |
String |
sendFile(byte[] fileContent,
String fileName,
boolean replaceExisting)
Send a file to JOnAS Base with the given input stream and write it in the corresponding directory, ie JONAS_BASE/apps, JONAS_BASE/ejbjars, etc. |
String |
wsgenLocalFile(String pathname,
Boolean unpacked)
Apply WsGen on a local file and generate webservices artifacts |
Methods inherited from class org.apache.commons.modeler.BaseModelMBean |
---|
addAttributeChangeNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public J2EEServerMBean() throws MBeanException
MBeanException
- if super constructor failsMethod Detail |
---|
public String[] getDeployedObjects()
public String[] getResources()
public String[] getJavaVMs()
public void addNotificationListener(NotificationListener pListner, NotificationFilter pFilter, Object pHandback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
addNotificationListener
in class org.apache.commons.modeler.BaseModelMBean
pListner
- Listener to notifypFilter
- Notification filterpHandback
- ??
IllegalArgumentException
- if notification is not donepublic String wsgenLocalFile(String pathname, Boolean unpacked)
pathname
- : local path name to the componentunpacked
- true if we want to have an unpacked directory as result
public String deployFile(Integer typeparam, Byte[] bfile, String filename, String[] genicArgs, Boolean moveIntoDeployableDirectory)
typeparam
- type of the file (EJB, WAR, EAR, RAR, CAR)bfile
- bytes array of the filefilename
- basename of the file to be deployed (if moveIntoDeployableDirectory full path name because local file)genicArgs
- arguments for GenICmoveIntoDeployableDirectory
- true to copy the file into the deployable JOnAS_BASE directory
RemoteException
EarServiceException
ResourceServiceException
JWebContainerServiceException
public String sendFile(byte[] fileContent, String fileName, boolean replaceExisting) throws Exception
fileContent
- the content (bytes) of the filefileName
- name of the filereplaceExisting
- replace existing file if any
Exception
- if file is already present and if the user don't want to replace existing file.public boolean removeModuleFile(String fileName) throws Exception
fileName
- Name of file to remove
Exception
- if remove fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |