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


java.lang.Object
   org.objectweb.jonas.cluster.daemon.ClusterDaemon

ClusterDaemon
public class ClusterDaemon implements ClusterDaemonMBean(Code)
ClusterDaemon is provided to control JOnAS instances remotely. The ClusterDaemon is an independent Java program, and runs on every node (machine) in the cluster. It receives remote commands (JMX), and does something such as starting or stopping JOnAS instances.
author:
   zhengzz (initial version for PKUAS)
author:
   Benoit Pelletier (integration in JOnAS)

Inner Class :class CmdReader implements Runnable
Inner Class :class ShutdownHook extends Thread
Inner Class :class Monitor extends Thread

Field Summary
final public static  StringJONAS_CMD_NAME_UNIX
    
final public static  StringJONAS_CMD_NAME_WIN
    
final public static  intSLEEP_DELAY
    


Method Summary
public  voidaddServer(String name, String description, String javaHome, String jonasRoot, String jonasBase)
    
public  StringgetJavaHome4Server(String name)
    
public  StringgetJonasBase4Server(String name)
    
public  StringgetJonasRoot4Server(String name)
    
public  StringgetName()
    
public  StringgetServersList()
    
public  StringgetobjectName()
    
public  booleaniseventProvider()
    
public  booleanisstateManageable()
    
public  booleanisstatisticsProvider()
    
public static  voidmain(String[] args)
    
public  voidmodifyServer(String name, String description, String javaHome, String jonasRoot, String jonasBase)
    
public  intpingJOnAS(String name)
    
public  voidreloadConfiguration()
    
public  voidremoveServer(String name)
    
public  voidsetobjectName(String name)
    
public  voidstart(String[] args)
    
public  StringstartAllJOnAS(String domainName, String prm)
    
public  voidstartJOnAS(String name, String domainName, String prm)
    
public  StringstopAllJOnAS()
    
public  voidstopClusterDaemon()
    
public  voidstopJOnAS(String name)
    

Field Detail
JONAS_CMD_NAME_UNIX
final public static String JONAS_CMD_NAME_UNIX(Code)
JOnAS command name in unix environmment



JONAS_CMD_NAME_WIN
final public static String JONAS_CMD_NAME_WIN(Code)
JOnAS command name in windows environmment



SLEEP_DELAY
final public static int SLEEP_DELAY(Code)
Sleep before exit of JVM





Method Detail
addServer
public void addServer(String name, String description, String javaHome, String jonasRoot, String jonasBase) throws ClusterDaemonException(Code)
Add a server configuration (MBean interface)
Parameters:
  name - server name
Parameters:
  description - server description
Parameters:
  javaHome - JAVA_HOME dir
Parameters:
  jonasBase - JONAS_BASE dir
Parameters:
  jonasRoot - JONAS_ROOT dir
throws:
  ClusterDaemonException - if an error occurs



getJavaHome4Server
public String getJavaHome4Server(String name)(Code)
(MBean interface) the JAVA_HOME for a specified server name
Parameters:
  name - JOnAS instance name



getJonasBase4Server
public String getJonasBase4Server(String name)(Code)
(MBean interface) the JONAS_BASE for a specified server name
Parameters:
  name - JOnAS instance name



getJonasRoot4Server
public String getJonasRoot4Server(String name)(Code)
(MBean interface) the JONAS_ROOT for a specified server name
Parameters:
  name - JOnAS instance name



getName
public String getName()(Code)



getServersList
public String getServersList()(Code)
the list of JOnAS instances



getobjectName
public String getobjectName()(Code)
Object Name



iseventProvider
public boolean iseventProvider()(Code)
true if it is an event provider



isstateManageable
public boolean isstateManageable()(Code)
true if this managed object implements J2EE State ManagementModel



isstatisticsProvider
public boolean isstatisticsProvider()(Code)
true if this managed object implements the J2EE StatisticProviderModel



main
public static void main(String[] args)(Code)
Main method
Parameters:
  args - the arguments of the cluster daemon



modifyServer
public void modifyServer(String name, String description, String javaHome, String jonasRoot, String jonasBase) throws ClusterDaemonException(Code)
Modify a server configuration (MBean interface)
Parameters:
  name - server name
Parameters:
  description - server description
Parameters:
  javaHome - JAVA_HOME dir
Parameters:
  jonasBase - JONAS_BASE dir
Parameters:
  jonasRoot - JONAS_ROOT dir
throws:
  ClusterDaemonException - if an error occurs



pingJOnAS
public int pingJOnAS(String name) throws ClusterDaemonException(Code)
Ping a JOnAS instance (MBean interface)
Parameters:
  name - instance name exit code of the ping (0 ok, 1 ko)
throws:
  ClusterDaemonException - if an error occurs



reloadConfiguration
public void reloadConfiguration() throws ClusterDaemonException(Code)
Reload the configuration (MBean interface)
throws:
  ClusterDaemonException - if an error occurs



removeServer
public void removeServer(String name) throws ClusterDaemonException(Code)
Remove a server configuration (MBean interface)
Parameters:
  name - server name
throws:
  ClusterDaemonException - if an error occurs



setobjectName
public void setobjectName(String name)(Code)
Sets the object name of this mbean
Parameters:
  name - the Object Name



start
public void start(String[] args) throws ClusterDaemonException(Code)
Main function
Parameters:
  args - arguments list
throws:
  ClusterDaemonException - if an error occurs



startAllJOnAS
public String startAllJOnAS(String domainName, String prm)(Code)
Start all the JOnAS instances configured with auto-reboot
Parameters:
  domainName - domain name
Parameters:
  prm - extra parameters the nodes list with an indicator started/starting failed



startJOnAS
public void startJOnAS(String name, String domainName, String prm) throws ClusterDaemonException(Code)
Start a JOnAS instance (MBean interface)
Parameters:
  name - instance name
Parameters:
  domainName - domain name
Parameters:
  prm - extra parameters
throws:
  ClusterDaemonException - if an error occurs



stopAllJOnAS
public String stopAllJOnAS()(Code)
Stop all the JOnAS instances the nodes list with an indicator stopped/stopping failed



stopClusterDaemon
public void stopClusterDaemon()(Code)
Stop the current instance



stopJOnAS
public void stopJOnAS(String name) throws ClusterDaemonException(Code)
Stop a JOnAS instance (MBean interface)
Parameters:
  name - instance name
throws:
  ClusterDaemonException - if an error occurs



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.