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


java.lang.Object
   org.objectweb.jonas.management.cluster.BaseCluster

All known Subclasses:   org.objectweb.jonas.management.cluster.LogicalCluster,  org.objectweb.jonas.management.cluster.EjbHaCluster,  org.objectweb.jonas.management.cluster.JkCluster,  org.objectweb.jonas.management.cluster.CmiCluster,  org.objectweb.jonas.management.cluster.TomcatCluster,
BaseCluster
abstract public class BaseCluster implements BaseClusterMBean(Code)
Implements basics for cluster management. To be extended by the different cluster types. It implements cluster state transition diagram based on the members's state. A member is represented by a ClusterMember class instance.
See Also:   ClusterMember
author:
   Adriana Danes

Inner Class :public class DeployThread extends Thread

Field Summary
final public static  intSTATE_DOWN
    
final public static  intSTATE_FAILED
    
final public static  intSTATE_INIT
    
final public static  intSTATE_PARTIALLY_DOWN
    
final public static  intSTATE_PARTIALLY_FAILED
    
final public static  intSTATE_PARTIALLY_UP
    
final public static  intSTATE_UNKNOWN
    
final public static  intSTATE_UP
    
protected  ClusterFactorycf
    
protected  DomainMonitordm
    
protected  JmxServicejmx
    
protected static  Loggerlogger
    
protected  Mapmembers
     The list of ClusterMember objects that compose this Cluster Key = name of the Member.
protected  Stringname
     The name of this Cluster.
protected  ObjectNameobjectName
     MBean OBJECT_NAME :type=,name= type may be one among: JkCluster, TomcatCluster, etc...
protected  intstate
    

Constructor Summary
public  BaseCluster(ClusterFactory cf)
    

Method Summary
public synchronized  booleanaddMember(ClusterMember m)
    
public  voidaddServer(String svname, String[] urls, String cdn)
    
abstract public  ClusterMembercreateClusterMember(String svname, ServerProxy proxy)
     Create a new ClusterMember.
public synchronized  voiddeployModule(String file)
     MBean operation Deploy a module on all nodes.
Parameters:
  file - file to upload.
public synchronized  String[]getMembers()
    
public  StringgetName()
    
public  intgetNbMembers()
    
public  StringgetObjectName()
    
public synchronized  J2EEServergetServer(String name)
     Get a server by its name.
public synchronized  ServerProxygetServerProxy(String name)
     Get a server by its name.
public synchronized  CollectiongetServerProxyList()
    
public  StringgetState()
    
abstract public  StringgetType()
    
public synchronized  voidremoveServer(String svname)
    
public  ObjectNamesetName(String name)
     Set the MBean name, that may be unknown when constructor is called.
Parameters:
  name - its name.
public synchronized  voidstartit()
     MBean operation Start all cluster nodes.
public synchronized  voidstopit()
     MBean operation Stop all cluster nodes.
public synchronized  voidundeployModule(String file)
     MBean operation Undeploy a module on all nodes.
Parameters:
  file - file to upload.
public synchronized  voiduploadDeployModule(String file, boolean repl)
     MBean operation Upload adn deploy a module on all nodes.
Parameters:
  file - file to upload.
public  voiduploadFile(String file, boolean repl)
     MBean operation Upload a file on all nodes.
Parameters:
  file - file to upload.

Field Detail
STATE_DOWN
final public static int STATE_DOWN(Code)
All the members are in STOPPED state



STATE_FAILED
final public static int STATE_FAILED(Code)
All the members are in FAILED state



STATE_INIT
final public static int STATE_INIT(Code)
This is the initial state, all members are in INITIAL state



STATE_PARTIALLY_DOWN
final public static int STATE_PARTIALLY_DOWN(Code)
At least one members is in STOPPED state, there is no failed member, there is no running memeber



STATE_PARTIALLY_FAILED
final public static int STATE_PARTIALLY_FAILED(Code)
At least one members is in FAILED state



STATE_PARTIALLY_UP
final public static int STATE_PARTIALLY_UP(Code)
At least one members is in RUNNING state, there is no failed member



STATE_UNKNOWN
final public static int STATE_UNKNOWN(Code)
No member in FAILED state, no member in RUNNING state, no memeber in STOPPED state The members' state may be UNREACHABLE or UNKNOWN



STATE_UP
final public static int STATE_UP(Code)
All the members are in RUNNING state



cf
protected ClusterFactory cf(Code)
ClusterFactory that created this Cluster



dm
protected DomainMonitor dm(Code)
ref to the domainMonitor



jmx
protected JmxService jmx(Code)
ref to the Jmx Service



logger
protected static Logger logger(Code)
domain management logger



members
protected Map members(Code)
The list of ClusterMember objects that compose this Cluster Key = name of the Member.



name
protected String name(Code)
The name of this Cluster. This String is included in the MBean OBJECT_NAME.



objectName
protected ObjectName objectName(Code)
MBean OBJECT_NAME :type=,name= type may be one among: JkCluster, TomcatCluster, etc...



state
protected int state(Code)
The cluster state




Constructor Detail
BaseCluster
public BaseCluster(ClusterFactory cf)(Code)
Constructor
Parameters:
  cf - Cluster Factory




Method Detail
addMember
public synchronized boolean addMember(ClusterMember m)(Code)
Add a Member to the Cluster
Parameters:
  m - Member to add true if added, false if already there.



addServer
public void addServer(String svname, String[] urls, String cdn) throws JMException(Code)
MBean operation Add a server in the cluster (jonasAdmin) - this is only called for LogicalCluster
Parameters:
  svname - logical name of the server
Parameters:
  array - of urls for connection
Parameters:
  cdn - clusterDaemon used to manage te server



createClusterMember
abstract public ClusterMember createClusterMember(String svname, ServerProxy proxy)(Code)
Create a new ClusterMember. Depends on the underlaying class.
Parameters:
  svname -
Parameters:
  proxy -



deployModule
public synchronized void deployModule(String file)(Code)
MBean operation Deploy a module on all nodes.
Parameters:
  file - file to upload. One among .war,.jar,.ear,.rar



getMembers
public synchronized String[] getMembers()(Code)
the Member MBean OBJECT_NAMES



getName
public String getName()(Code)
the cluster name



getNbMembers
public int getNbMembers()(Code)
the member number



getObjectName
public String getObjectName()(Code)
The MBean OBJECT_NAME



getServer
public synchronized J2EEServer getServer(String name)(Code)
Get a server by its name.
Parameters:
  name - fo the server the Server or null if not found.



getServerProxy
public synchronized ServerProxy getServerProxy(String name)(Code)
Get a server by its name.
Parameters:
  name - fo the server the ServerProxy or null if not found.



getServerProxyList
public synchronized Collection getServerProxyList()(Code)
The list of ServerProxy



getState
public String getState()(Code)
Get the Cluster State A String representing the cluster current state



getType
abstract public String getType()(Code)
the type of this Cluster (string form)



removeServer
public synchronized void removeServer(String svname)(Code)
MBean operation Remove a server from the cluster (jonasAdmin)
Parameters:
  svname - logical name of the server the member corresponding to the server to be removed



setName
public ObjectName setName(String name) throws JMException(Code)
Set the MBean name, that may be unknown when constructor is called.
Parameters:
  name - its name. the MBean ObjectName
throws:
  JMException - could not create MBean instance



startit
public synchronized void startit() throws JMException(Code)
MBean operation Start all cluster nodes.



stopit
public synchronized void stopit() throws JMException(Code)
MBean operation Stop all cluster nodes.



undeployModule
public synchronized void undeployModule(String file)(Code)
MBean operation Undeploy a module on all nodes.
Parameters:
  file - file to upload. One among .war,.jar,.ear,.rar



uploadDeployModule
public synchronized void uploadDeployModule(String file, boolean repl)(Code)
MBean operation Upload adn deploy a module on all nodes.
Parameters:
  file - file to upload. One among .war,.jar,.ear,.rar
Parameters:
  repl - true if the uploaded file can replace a file with the same name in the jars directory



uploadFile
public void uploadFile(String file, boolean repl)(Code)
MBean operation Upload a file on all nodes.
Parameters:
  file - file to upload. One among .war,.jar,.ear,.rar
Parameters:
  repl - true if the uploaded file can replace a file with the same name in the jars directory



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.