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


java.lang.Object
   org.objectweb.jonas.management.monitoring.DomainMonitor

DomainMonitor
public class DomainMonitor implements DomainMonitorMBean(Code)
This class represents the Master Server of the Domain. Is created by the DiscoveryService if it detects it is the master. It is not instanciated for slave servers.
author:
   danesa
author:
   durieuxp refactoring

Inner Class :class StateMonitor extends Thread


Constructor Summary
public  DomainMonitor(String domain)
    

Method Summary
public  ServerProxyaddLocalServer(String svname, Collection urls)
    
public  LogicalClustercreateLogicalCluster(String name)
    
public  voiddiscoveryNotification(DiscEvent event)
    
public  BaseClusterfindCluster(String name)
     Get a Cluster by its name.
public  ClusterDaemonProxyfindClusterDaemonProxy(String name)
    
public  J2EEServerfindServer(String name)
    
public  ServerProxyfindServerProxy(String name)
    
public synchronized  voidforgetAllDeploy()
    
public  CollectiongetClusterDaemonList()
    
public  String[]getClusters()
    
public synchronized  String[]getDeployServers(String filename)
    
public synchronized  StringgetDeployState(String filename, String servername)
    
public  StringgetDescription()
    
public  StringgetDomainName()
    
public synchronized  StringgetErrorMessage(String filename, String servername)
    
public  CollectiongetLogicalClusterList()
    
public  intgetMonitoringPeriod()
    
public  String[]getProxys()
    
public  CollectiongetServerList()
    
public  CollectiongetTotalClusterList()
    
 voidnotifyServerProxyRunning(ServerProxy sp)
    
public  voidreadDomainConfig()
    
public  voidrefreshStates()
     Try to refresh the server states TODO notify thread only.
public synchronized  booleanregisterDeployAction(DeployAction action)
    
public  voidsetMonitoringPeriod(int sec)
    


Constructor Detail
DomainMonitor
public DomainMonitor(String domain)(Code)
Constructor




Method Detail
addLocalServer
public ServerProxy addLocalServer(String svname, Collection urls)(Code)
Add the local J2EEServer to the list of servers



createLogicalCluster
public LogicalCluster createLogicalCluster(String name)(Code)
Create a logical cluster



discoveryNotification
public void discoveryNotification(DiscEvent event)(Code)
Handle Notifications from Discovery Service
Parameters:
  event -



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



findClusterDaemonProxy
public ClusterDaemonProxy findClusterDaemonProxy(String name)(Code)
Get a ClusterDaemon by its name
Parameters:
  name - The name of the clusterdaemon the ClusterDaemonProxy 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.



forgetAllDeploy
public synchronized void forgetAllDeploy()(Code)
Forget all deploy information



getClusterDaemonList
public Collection getClusterDaemonList()(Code)
Get the list of all ClusterDaemonProxy



getClusters
public String[] getClusters()(Code)
MBean method Array of OBJECT_NAMEs of all cluster MBeans



getDeployServers
public synchronized String[] getDeployServers(String filename)(Code)
Get the list of server where a file is being deployed
Parameters:
  filename - file to deploy server name



getDeployState
public synchronized String getDeployState(String filename, String servername)(Code)
Get the current state (string form) of deployment operation
Parameters:
  filename - file to deploy
Parameters:
  servername - server where deployment is done one of "progress","ok","fail"



getDescription
public String getDescription()(Code)



getDomainName
public String getDomainName()(Code)



getErrorMessage
public synchronized String getErrorMessage(String filename, String servername)(Code)
Get the error message associated to the error state
Parameters:
  filename - file to deploy
Parameters:
  servername - server where deployment is done error message



getLogicalClusterList
public Collection getLogicalClusterList()(Code)
Get the list of logical clusters



getMonitoringPeriod
public int getMonitoringPeriod()(Code)



getProxys
public String[] getProxys()(Code)
MBean method To be replaced by J2EEDomain.getServers() Array of OBJECT_NAMEs of all ServerProxy



getServerList
public Collection getServerList()(Code)
Get the list of ServerProxy Collection of all ServerProxy in the Domain



getTotalClusterList
public Collection getTotalClusterList()(Code)
Get the list of all clusters of any type Collection of all Clusters in the domain



notifyServerProxyRunning
void notifyServerProxyRunning(ServerProxy sp)(Code)
Notify to all the cluster factories that a server started in the domain
Parameters:
  sp - the server's proxy



readDomainConfig
public void readDomainConfig()(Code)



refreshStates
public void refreshStates()(Code)
Try to refresh the server states TODO notify thread only.



registerDeployAction
public synchronized boolean registerDeployAction(DeployAction action)(Code)
Register a DeployAction true if correctly aded in the list



setMonitoringPeriod
public void setMonitoringPeriod(int sec)(Code)



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.