Java Doc for J2EEServer.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » server » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
   org.objectweb.jonas.server.J2EEServer

J2EEServer
public class J2EEServer extends J2EEManagedObject implements TimerEventListener,NotificationListener(Code)
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.
author:
   Guillaume Riviere
author:
   Michel Bruno
author:
  
contributors Adriana Danes, Michel-Ange Anton



Constructor Summary
public  J2EEServer(String objectName, Server server, String serverName, String serverVersion, String serverVendor, String protocols, String versions)
    

Method Summary
public  voidaddDeployedObject(String objectName)
     Add an object name to the deployedObjects list.
public  voidaddJavaVM(String objectName)
     Add an object name to the javaVMs list.
public  voidaddNotificationListener(NotificationListener listner, NotificationFilter filter, java.lang.Object handback)
     Add a new listener.
public  voidaddResource(String pObjectName)
     Add an object name to the resources list.
public  StringdeployEar(String fileName)
     Deploy a J2EE application packaged in a EAR file
Parameters:
  fileName - the file name of the EAR to be be deployed.
public  StringdeployJar(String fileName)
     Deploy a stand-alone J2EE module packaged in a JAR file
Parameters:
  fileName - the file name of the JAR to be be deployed.
public  StringdeployRar(String fileName)
     Deploy a J2EE application packaged in a RAR file
Parameters:
  fileName - the file name of the RAR to be be deployed.
public  voiddeployWar(String fileName)
     Deploy a stand-alone J2EE module packaged in a WAR file
Parameters:
  fileName - the file name of the WAR to be be deployed.
public  longgetCurrentTotalMemory()
    
public  longgetCurrentUsedMemory()
    
public  ListgetDeployedObjects()
    
public  ListgetJavaVMs()
    
public  StringgetJonasBase()
    
public  StringgetProtocols()
    
public  intgetRange()
    
public  ListgetResources()
    
public  StringgetServerName()
    
public  StringgetServerVendor()
    
public  StringgetServerVersion()
    
public  intgetSizeTableMeasures()
    
public  Long[]getTableMeasures()
    
public  StringgetVersions()
    
public  voidhandleNotification(Notification notification, java.lang.Object handback)
     Treat the notifications emitted by the JMX server.
public  booleanisActivated()
    
public  BooleanisEarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
public  BooleanisJarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the jar file.
public  BooleanisRarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the rar file.
public  BooleanisWarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the war file.
public  voidremoveDeployedObject(String objectName)
     Remove an object name to the deployedObjects list.
public  StringremoveResource(String pObjectName)
     Remove an object name from the resources list.
public  voidrunGC()
    
public  voidsendNotification(Notification notification)
     Send a notification to the listener.
public  voidsetActivated(boolean pActivated)
    
public  voidsetJonasBase(String jonasBase)
    
public  voidsetRange(int range)
    
public  voidsetSizeTableMeasures(int sizeMeasuresTable)
    
public  voidstop()
    
public  voidtimeoutExpired(Object arg)
    
public  voidunDeployEar(String fileName)
    
public  voidunDeployJar(String fileName)
    
public  voidunDeployRar(String fileName)
    
public  voidunDeployWar(String fileName)
    


Constructor Detail
J2EEServer
public J2EEServer(String objectName, Server server, String serverName, String serverVersion, String serverVendor, String protocols, String versions)(Code)
MBean constructor
Parameters:
  objectName - object name of the managed object
Parameters:
  server - Server object
Parameters:
  serverName - server name
Parameters:
  serverVersion - JOnAS version
Parameters:
  serverVendor - is JOnAS
Parameters:
  protocols - protocols supported




Method Detail
addDeployedObject
public void addDeployedObject(String objectName)(Code)
Add an object name to the deployedObjects list.
Parameters:
  objectName - Object name corresponding to a J2EEDeployedObject MBean



addJavaVM
public void addJavaVM(String objectName)(Code)
Add an object name to the javaVMs list.
Parameters:
  objectName - Object name correspondig to a JVM MBean



addNotificationListener
public void addNotificationListener(NotificationListener listner, NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException(Code)
Add a new listener.
Parameters:
  listner - Listener to notify
Parameters:
  filter - Notification filter
Parameters:
  handback - ??
throws:
  java.lang.IllegalArgumentException -



addResource
public void addResource(String pObjectName)(Code)
Add an object name to the resources list.
Parameters:
  pObjectName - Object name correspondig to a J2EEResource MBean



deployEar
public String deployEar(String fileName) throws Exception(Code)
Deploy a J2EE application packaged in a EAR file
Parameters:
  fileName - the file name of the EAR to be be deployed. The ObjectName of the MBean associated to the deployed J2EE Application
throws:
  Exception - Management operation could not be executed or failed



deployJar
public String deployJar(String fileName) throws Exception(Code)
Deploy a stand-alone J2EE module packaged in a JAR file
Parameters:
  fileName - the file name of the JAR to be be deployed. The ObjectName of the MBean associated to the deployed module
throws:
  Exception - Management operation could not be executed or failed



deployRar
public String deployRar(String fileName) throws Exception(Code)
Deploy a J2EE application packaged in a RAR file
Parameters:
  fileName - the file name of the RAR to be be deployed. The ObjectName of the MBean associated to the deployed J2EE Application
throws:
  Exception - Management operation could not be executed or failed



deployWar
public void deployWar(String fileName) throws Exception(Code)
Deploy a stand-alone J2EE module packaged in a WAR file
Parameters:
  fileName - the file name of the WAR to be be deployed. The ObjectName of the MBean associated to the deployed module
throws:
  Exception - Management operation could not be executed or failed



getCurrentTotalMemory
public long getCurrentTotalMemory()(Code)
get jvm total memory Long - current total memory



getCurrentUsedMemory
public long getCurrentUsedMemory()(Code)
get jvm used memory Long - current used memory



getDeployedObjects
public List getDeployedObjects()(Code)
Return the list of MBean names corresponding to the deployed J2EEModules and J2EEApplications java.util.ArrayList list of the deployed objects' MBean names



getJavaVMs
public List getJavaVMs()(Code)
Return the list of MBean names corresponding to the JVMs on which this server has running threads java.util.ArrayList list of the JVMs' MBean names



getJonasBase
public String getJonasBase()(Code)



getProtocols
public String getProtocols()(Code)
Protocols supported by this Server String protocols supported



getRange
public int getRange()(Code)
get range Integer - range



getResources
public List getResources()(Code)
Return the list of MBean names corresponding to the resources available on this server java.util.ArrayList list of the resources' MBean names



getServerName
public String getServerName()(Code)
Server name String JOnAS server name



getServerVendor
public String getServerVendor()(Code)
Server vendor String JOnAS server version



getServerVersion
public String getServerVersion()(Code)
Server version String JOnAS server version



getSizeTableMeasures
public int getSizeTableMeasures()(Code)
Get the size of the table of measures Number of measures



getTableMeasures
public Long[] getTableMeasures()(Code)
get the table of value Long[] measures table



getVersions
public String getVersions()(Code)
Returns the versions.



handleNotification
public void handleNotification(Notification notification, java.lang.Object handback)(Code)
Treat the notifications emitted by the JMX server. This method determines the type of the notification and calls the specific treatement.
Parameters:
  notification - received notification
Parameters:
  handback - received handback object



isActivated
public boolean isActivated()(Code)
get monitoring activation Boolean is activated



isEarDeployed
public Boolean isEarDeployed(String fileName) throws Exception(Code)
Test if the specified filename is already deployed or not. This method is defined in the EarService interface.
Parameters:
  fileName - the name of the ear file. true if the ear is deployed, else false.
throws:
  Exception - Management operation could not be executed or failed



isJarDeployed
public Boolean isJarDeployed(String fileName) throws Exception(Code)
Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the jar file. true if the jar is deployed, otherwise false.
throws:
  Exception - Management operation could not be executed



isRarDeployed
public Boolean isRarDeployed(String fileName) throws Exception(Code)
Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the rar file. true if the rar is deployed, else false.
throws:
  Exception - Management operation could not be executed or failed



isWarDeployed
public Boolean isWarDeployed(String fileName) throws Exception(Code)
Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the war file. true if the war is deployed, otherwise false.
throws:
  Exception - Management operation could not be executed



removeDeployedObject
public void removeDeployedObject(String objectName)(Code)
Remove an object name to the deployedObjects list.
Parameters:
  objectName - Object name corresponding to a J2EEDeployedObject MBean



removeResource
public String removeResource(String pObjectName)(Code)
Remove an object name from the resources list.
Parameters:
  pObjectName - Object name correspondig to a J2EEResource MBean Object name to the removed J2EEResource MBean



runGC
public void runGC()(Code)
run the garbage collector



sendNotification
public void sendNotification(Notification notification)(Code)
Send a notification to the listener.
Parameters:
  notification - The notification to send



setActivated
public void setActivated(boolean pActivated)(Code)
set monitoring activation
Parameters:
  pActivated - true is activated



setJonasBase
public void setJonasBase(String jonasBase)(Code)



setRange
public void setRange(int range)(Code)
set range
Parameters:
  range - range for free memory measurement



setSizeTableMeasures
public void setSizeTableMeasures(int sizeMeasuresTable)(Code)
Set the size of the table of measures
Parameters:
  sizeMeasuresTable - Number of measures



stop
public void stop() throws Exception(Code)
Stop server (with stopping the JVM)



timeoutExpired
public void timeoutExpired(Object arg)(Code)
The measures timeout has expired Do not synchronize this method to avoid deadlocks!
Parameters:
  arg - Object



unDeployEar
public void unDeployEar(String fileName) throws Exception(Code)
undeploy a J2EE application packaged in a EAR file
Parameters:
  fileName - the file name of the EAR to be be undeployed.
throws:
  Exception - Management operation could not be executed or failed



unDeployJar
public void unDeployJar(String fileName) throws Exception(Code)
Uneploy a stand-alone J2EE module packaged in a JAR file
Parameters:
  fileName - the file name of the JAR to be be undeployed.
throws:
  Exception - Management operation could not be executed or failed



unDeployRar
public void unDeployRar(String fileName) throws Exception(Code)
undeploy a J2EE application packaged in a RAR file
Parameters:
  fileName - the file name of the RAR to be be undeployed.
throws:
  Exception - Management operation could not be executed or failed



unDeployWar
public void unDeployWar(String fileName) throws Exception(Code)
Uneploy a stand-alone J2EE module packaged in a WAR file
Parameters:
  fileName - the file name of the WAR to be be undeployed.
throws:
  Exception - Management operation could not be executed or failed



Fields inherited from org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
final public static String J2EE_TYPE_APPLICATION(Code)(Java Doc)
final public static String J2EE_TYPE_SERVER(Code)(Java Doc)
final public static String NAME(Code)(Java Doc)

Methods inherited from org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
public String getObjectName()(Code)(Java Doc)
public boolean isEventProvider()(Code)(Java Doc)
public boolean isStateManageable()(Code)(Java Doc)
public boolean isStatisticsProvider()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.