Java Doc for J2EEDomain.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » management » j2eemanagement » 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.management.j2eemanagement 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
   org.objectweb.jonas.management.j2eemanagement.J2EEDomain

J2EEDomain
public class J2EEDomain extends J2EEManagedObject implements MBeanRegistration(Code)
Implements a managed object which represents either a management domain or a cluster. This J2EEManagedObject is accessed mainly by jonasAdmin. The complete interface is described in the following xml file :
author:
   Adriana Danes
author:
   Vivek Lakshmanan



Constructor Summary
public  J2EEDomain(String objectName)
    

Method Summary
public  voidaddLocalServer(J2EEServer j2eeserver, Collection urls)
     Add the local J2EEServer to the 'servers' list.
public  voidaddServer(String serverName, String clusterName, String clusterDaemonName, String[] urls)
    
Parameters:
  serverName - name of the server to add
Parameters:
  urls - JMX remote connector urls
Parameters:
  clusterName - name of the cluster in which the server is to beattached, if any.
public  StringcreateCluster(String name)
    
public  voiddeployEar(String[] target, String fileName)
    
public  voiddeployJar(String[] target, String fileName)
    
public  voiddeployRar(String[] target, String fileName)
    
public  voiddeployWar(String[] target, String fileName)
    
public  BaseClusterfindCluster(String name)
    
public  J2EEServerfindServer(String name)
    
public  ServerProxyfindServerProxy(String name)
    
public  String[]getClusterDaemons()
    
public  String[]getClusters()
    
public  MBeanServerConnectiongetConnection(String serverName)
    
public  String[]getConnectorServerURLs(String serverName)
    
public  StringgetDescription()
    
public  DomainMonitorgetDomainMonitor()
     Get the domainMonitor, or null if slave server.
public static  J2EEDomaingetInstance()
     Singleton: Each server (master or slave) must have 1 unique J2EEDomain object.
public  StringgetMyName()
    
public  String[]getServerNames()
    
public  String[]getServerNames(String clusterName)
    
public  String[]getServers()
    
public  String[]getStartedServers()
     Return the MBeans OBJECT_NAMEs of the servers belonging to this domain but only if they are running.
public  booleanisMaster()
    
public  voidpostDeregister()
    
public  voidpostRegister(Boolean registrationDone)
     Add J2EEDomain MBean (myself) as listener to registration/unregistration notifications of JOnAS management MBeans.
public  voidpreDeregister()
    
public  ObjectNamepreRegister(MBeanServer mbeanServer, ObjectName name)
    
public  voidsetLocalServerRunning()
     Set the local server running and get its info Cannot be done before because some MBeans must exist first.
public  voidsetMaster()
    
public  voidstartServer(String serverName)
    
public  voidstopServer(String serverName)
    
public  voidunDeployEar(String[] target, String fileName)
    
public  voidunDeployJar(String[] target, String fileName)
    
public  voidunDeployRar(String[] target, String fileName)
    
public  voidunDeployWar(String[] target, String fileName)
    
public  voiduploadDeployEar(String[] target, String fileName, boolean replaceExisting)
    
public  voiduploadDeployJar(String[] target, String fileName, boolean replaceExisting)
    
public  voiduploadDeployRar(String[] target, String fileName, boolean replaceExisting)
    
public  voiduploadDeployWar(String[] target, String fileName, boolean replaceExisting)
    


Constructor Detail
J2EEDomain
public J2EEDomain(String objectName) throws JMException(Code)
MBean constructor
Parameters:
  objectName - object name of the managed object JMException ..




Method Detail
addLocalServer
public void addLocalServer(J2EEServer j2eeserver, Collection urls)(Code)
Add the local J2EEServer to the 'servers' list. This method is called by the Server.start() method execution.
Parameters:
  j2eeserver - J2EEServer object corresponding to the currently managedserver (the local server which can be a master or a slave)
Parameters:
  urls - Collection of JMX remote connector urls for this server



addServer
public void addServer(String serverName, String clusterName, String clusterDaemonName, String[] urls) throws JMException(Code)

Parameters:
  serverName - name of the server to add
Parameters:
  urls - JMX remote connector urls
Parameters:
  clusterName - name of the cluster in which the server is to beattached, if any. Null otherwise.
Parameters:
  clusterDaemonName - name of the cluster daemon if any. Null otherwise.
throws:
  JMException - could not add the server to the domain



createCluster
public String createCluster(String name)(Code)
Create a logical cluster (by jonasAdmin)
Parameters:
  name - the cluster's name the OBJECT_NAME corresponding to the created MBean



deployEar
public void deployEar(String[] target, String fileName)(Code)
Deploy a EAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed



deployJar
public void deployJar(String[] target, String fileName)(Code)
Deploy a JAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed



deployRar
public void deployRar(String[] target, String fileName)(Code)
Deploy a RAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed



deployWar
public void deployWar(String[] target, String fileName)(Code)
Deploy a WAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed



findCluster
public BaseCluster findCluster(String name)(Code)
Get a Cluster by its name
Parameters:
  name - The name of the cluster the Cluster or null if unknown by the domain.



findServer
public J2EEServer findServer(String name)(Code)
Get a Server by its name
Parameters:
  name - The name of the server the Server or null if unknown by the domain.



findServerProxy
public ServerProxy findServerProxy(String name)(Code)
Get a Server by its name
Parameters:
  name - The name of the server the ServerProxy or null if unknown by the domain.



getClusterDaemons
public String[] getClusterDaemons()(Code)



getClusters
public String[] getClusters()(Code)
Return the MBeans OBJECT_NAMEs of the clusters in this domain The list of object names corresponding to the clusters in this domain



getConnection
public MBeanServerConnection getConnection(String serverName)(Code)

Parameters:
  serverName - Name of the server the connection to the MBeanServer of this server



getConnectorServerURLs
public String[] getConnectorServerURLs(String serverName)(Code)
Return connector server urls for a given JOnAS server
Parameters:
  serverName - the given JOnAS server name connector server urls for a given JOnAS server



getDescription
public String getDescription()(Code)
Returns the description.



getDomainMonitor
public DomainMonitor getDomainMonitor()(Code)
Get the domainMonitor, or null if slave server. the domainMonitor, for the master server.



getInstance
public static J2EEDomain getInstance()(Code)
Singleton: Each server (master or slave) must have 1 unique J2EEDomain object. the unique instance of the J2EEDomain



getMyName
public String getMyName()(Code)
Return the domain name domain name or cluster name



getServerNames
public String[] getServerNames()(Code)
Return the servers' name belonging domain The list of names corresponding to the servers within this domain



getServerNames
public String[] getServerNames(String clusterName)(Code)

Parameters:
  clusterName - name of a cluster in the domain the list of server names corresponding to the servers within a cluster



getServers
public String[] getServers()(Code)
Return the MBeans OBJECT_NAMEs of the servers belonging to this domain The list of object names corresponding to the servers associated with this domain



getStartedServers
public String[] getStartedServers()(Code)
Return the MBeans OBJECT_NAMEs of the servers belonging to this domain but only if they are running. The list of object names corresponding to the servers associated with this domain



isMaster
public boolean isMaster()(Code)
Returns the master.



postDeregister
public void postDeregister()(Code)

See Also:   javax.management.MBeanRegistration.postDeregister



postRegister
public void postRegister(Boolean registrationDone)(Code)
Add J2EEDomain MBean (myself) as listener to registration/unregistration notifications of JOnAS management MBeans.
Parameters:
  registrationDone - Indicates whether or not the MBean has been successfully registered



preDeregister
public void preDeregister() throws Exception(Code)

See Also:   javax.management.MBeanRegistration.preDeregister



preRegister
public ObjectName preRegister(MBeanServer mbeanServer, ObjectName name) throws Exception(Code)

Parameters:
  mbeanServer - The MBean server in which the MBean will be registered.
Parameters:
  name - The object name of the MBean The object name of the MBean



setLocalServerRunning
public void setLocalServerRunning()(Code)
Set the local server running and get its info Cannot be done before because some MBeans must exist first.



setMaster
public void setMaster()(Code)
Set this server as the master



startServer
public void startServer(String serverName)(Code)
Start a Remote JOnAS Server MBean implementation for jonasAdmin
Parameters:
  serverName - Name of the jonas server



stopServer
public void stopServer(String serverName)(Code)
Stop a Remote JOnAS Server MBean implementation for jonasAdmin
Parameters:
  serverName - Name of the jonas server



unDeployEar
public void unDeployEar(String[] target, String fileName)(Code)
Undeploy a EAR file of a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be undeployed



unDeployJar
public void unDeployJar(String[] target, String fileName)(Code)
Undeploy a JAR file of a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be undeployed



unDeployRar
public void unDeployRar(String[] target, String fileName)(Code)
Undeploy a RAR file of a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be undeployed



unDeployWar
public void unDeployWar(String[] target, String fileName)(Code)
Undeploy a WAR file of a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be undeployed



uploadDeployEar
public void uploadDeployEar(String[] target, String fileName, boolean replaceExisting)(Code)
Upload and deploy an EAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed
Parameters:
  replaceExisting - true if the uploaded file can replace a file with the same name in the apps directory



uploadDeployJar
public void uploadDeployJar(String[] target, String fileName, boolean replaceExisting)(Code)
Upload and deploy a JAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed
Parameters:
  replaceExisting - true if the uploaded file can replace a file with the same name in the jars directory



uploadDeployRar
public void uploadDeployRar(String[] target, String fileName, boolean replaceExisting)(Code)
Upload and deploy a RAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed
Parameters:
  replaceExisting - true if the uploaded file can replace a file with the same name in the rars directory



uploadDeployWar
public void uploadDeployWar(String[] target, String fileName, boolean replaceExisting)(Code)
Upload and deploy a WAR file on a multiple management target composed of servers and/or clusters
Parameters:
  target - list of server and/or cluster names
Parameters:
  fileName - file to be deployed
Parameters:
  replaceExisting - true if the uploaded file can replace a file with the same name in the wars directory



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.