Java Doc for ServerProxy.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.JMXProxy
      org.objectweb.jonas.management.monitoring.ServerProxy

ServerProxy
public class ServerProxy extends JMXProxy implements ServerProxyMBean(Code)
A ServerProxy proxy MBean represents a server in the domain on the master side. Implements state transition diagram.
author:
   Adriana Danes



Constructor Summary
public  ServerProxy(DomainMonitor dm, String serverName)
    
public  ServerProxy(DomainMonitor dm, String serverName, Collection urls, ClusterDaemonProxy cdp)
     Constructor used for a new domain.xml entry or for a server added to the domain by a management application.

Method Summary
public  voidcheckit(boolean readall)
     Check the MBean server connection and possibly change state in UNREACHABLE or FAILED.
public  voiddeployModule(String fileName)
    
public  intgetAllThreadsCount()
    
public  longgetBytesReceivedByConnectorTomcat()
    
public  longgetBytesSentByConnectorTomcat()
    
public  StringgetClusterDaemonName()
    
public  intgetConnectionFailuresJCAConnection()
    
public  intgetConnectionFailuresJDBCResource()
    
public  intgetConnectionLeaksJCAConnection()
    
public  intgetConnectionLeaksJDBCResource()
    
public  intgetCurrentBusyJCAConnection()
    
public  intgetCurrentBusyJDBCResource()
    
public  intgetCurrentNumberOfEJB()
    
public  intgetCurrentNumberOfEntityBean()
    
public  intgetCurrentNumberOfMDB()
    
public  intgetCurrentNumberOfSBF()
    
public  intgetCurrentNumberOfSBL()
    
public  intgetCurrentOpenedJCAConnection()
    
public  intgetCurrentOpenedJDBCResource()
    
public  intgetCurrentThreadBusyByConnectorTomcat()
    
public  intgetCurrentThreadCountByConnectorTomcat()
    
public  LonggetCurrentTotalMemory()
    
public  LonggetCurrentUsedMemory()
    
public  intgetCurrentWorkerPoolSize()
    
public  intgetErrorCountByConnectorTomcat()
    
public  StringgetHostName()
    
public  StringgetJ2eeObjectName()
    
public  StringgetJOnASVersion()
    
public  StringgetJavaVendor()
    
public  StringgetJavaVersion()
    
public  booleangetJcaConnection()
    
public  booleangetJdbcDatasource()
    
public  booleangetJmsJoram()
    
public  intgetJmsQueuesNbMsgsDeliverSinceCreation()
    
public  intgetJmsQueuesNbMsgsReceiveSinceCreation()
    
public  intgetJmsQueuesNbMsgsSendToDMQSinceCreation()
    
public  intgetJmsTopicsNbMsgsDeliverSinceCreation()
    
public  intgetJmsTopicsNbMsgsReceiveSinceCreation()
    
public  intgetJmsTopicsNbMsgsSendToDMQSinceCreation()
    
public  StringgetLoadCPU()
    
public  intgetMaxThreadsByConnectorTomcat()
    
public  intgetMaxWorkerPoolSize()
    
public  intgetMaxcheck()
    
public  MBeanServergetMbeanServer()
    
public  intgetMinWorkerPoolSize()
    
public  voidgetMonitoringInfo()
     Update non static information for this node.
public  longgetProcessingTimeByConnectorTomcat()
    
public  StringgetProtocols()
    
public  intgetRejectedOpenJCAConnection()
    
public  intgetRejectedOpenJDBCResource()
    
public  intgetRequestCountByConnectorTomcat()
    
public  intgetServedOpenJCAConnection()
    
public  intgetServedOpenJDBCResource()
    
public  StringgetServerName()
    
public  booleangetTomcat()
    
public  intgetTotalBegunTransactions()
    
public  intgetTotalCommittedTransactions()
    
public  intgetTotalCurrentTransactions()
    
public  intgetTotalExpiredTransactions()
    
public  intgetTotalRolledbackTransactions()
    
public  booleangetTransaction()
    
public  intgetWaiterCountJCAConnection()
    
public  intgetWaiterCountJDBCResource()
    
public  longgetWaitingTimeJCAConnection()
    
public  longgetWaitingTimeJDBCResource()
    
public  booleangetWorkers()
    
public  booleanisInfoSet()
    
public  voidnotifyStarting(Collection urls)
    
public  voidnotifyStopping()
    
 voidserverStarted()
     This method is called by checkit() when the represented server is not in RUNNING state but its connection works.
public  voidsetInfoSet(boolean infoSet)
     Set the indicator value to true after execting the getInfo() method, and to false when detecting that server become unreacheable or stopping.
public  voidsetMaxcheck(int maxcheck)
    
public  voidstartit()
    
public  voidstopit()
    
public  voidundeployModule(String fileName)
    
public  voiduploadDeployModule(String fileName, boolean replaceExisting)
     Upload a file on remote server and deploy it.
Parameters:
  fileName - file to upload.
public  voiduploadFile(String fileName, boolean replaceExisting)
     Upload a file on remote server for deployment
Parameters:
  fileName - file to upload.


Constructor Detail
ServerProxy
public ServerProxy(DomainMonitor dm, String serverName)(Code)
Constructor used when a server is discovered
Parameters:
  serverName - the name of the managed server
Parameters:
  dm - the domain monitor which treated the discovery notification



ServerProxy
public ServerProxy(DomainMonitor dm, String serverName, Collection urls, ClusterDaemonProxy cdp)(Code)
Constructor used for a new domain.xml entry or for a server added to the domain by a management application. Also used when creating the ServerProxy for the local server.
Parameters:
  dm - current domain monitor
Parameters:
  serverName - the name of the managed server
Parameters:
  urls - Collection of urls to cinnect to the server
Parameters:
  cdp - possible clusterdaemon




Method Detail
checkit
public void checkit(boolean readall)(Code)
Check the MBean server connection and possibly change state in UNREACHABLE or FAILED.
Parameters:
  readall - read all monitoring info if server RUNNING



deployModule
public void deployModule(String fileName)(Code)
Deploy a filename on the represented (remote) server
Parameters:
  fileName - the name of the file containig the module/applicationto deploy



getAllThreadsCount
public int getAllThreadsCount()(Code)



getBytesReceivedByConnectorTomcat
public long getBytesReceivedByConnectorTomcat()(Code)



getBytesSentByConnectorTomcat
public long getBytesSentByConnectorTomcat()(Code)



getClusterDaemonName
public String getClusterDaemonName()(Code)
The name of the associated cluster daemon, if any, null otherwise



getConnectionFailuresJCAConnection
public int getConnectionFailuresJCAConnection()(Code)



getConnectionFailuresJDBCResource
public int getConnectionFailuresJDBCResource()(Code)



getConnectionLeaksJCAConnection
public int getConnectionLeaksJCAConnection()(Code)



getConnectionLeaksJDBCResource
public int getConnectionLeaksJDBCResource()(Code)



getCurrentBusyJCAConnection
public int getCurrentBusyJCAConnection()(Code)



getCurrentBusyJDBCResource
public int getCurrentBusyJDBCResource()(Code)



getCurrentNumberOfEJB
public int getCurrentNumberOfEJB()(Code)



getCurrentNumberOfEntityBean
public int getCurrentNumberOfEntityBean()(Code)



getCurrentNumberOfMDB
public int getCurrentNumberOfMDB()(Code)



getCurrentNumberOfSBF
public int getCurrentNumberOfSBF()(Code)



getCurrentNumberOfSBL
public int getCurrentNumberOfSBL()(Code)



getCurrentOpenedJCAConnection
public int getCurrentOpenedJCAConnection()(Code)



getCurrentOpenedJDBCResource
public int getCurrentOpenedJDBCResource()(Code)



getCurrentThreadBusyByConnectorTomcat
public int getCurrentThreadBusyByConnectorTomcat()(Code)



getCurrentThreadCountByConnectorTomcat
public int getCurrentThreadCountByConnectorTomcat()(Code)



getCurrentTotalMemory
public Long getCurrentTotalMemory()(Code)



getCurrentUsedMemory
public Long getCurrentUsedMemory()(Code)



getCurrentWorkerPoolSize
public int getCurrentWorkerPoolSize()(Code)



getErrorCountByConnectorTomcat
public int getErrorCountByConnectorTomcat()(Code)



getHostName
public String getHostName()(Code)



getJ2eeObjectName
public String getJ2eeObjectName()(Code)
The J2EEServer ObjectName corresponding to the represented server



getJOnASVersion
public String getJOnASVersion()(Code)



getJavaVendor
public String getJavaVendor()(Code)



getJavaVersion
public String getJavaVersion()(Code)



getJcaConnection
public boolean getJcaConnection()(Code)



getJdbcDatasource
public boolean getJdbcDatasource()(Code)



getJmsJoram
public boolean getJmsJoram()(Code)



getJmsQueuesNbMsgsDeliverSinceCreation
public int getJmsQueuesNbMsgsDeliverSinceCreation()(Code)



getJmsQueuesNbMsgsReceiveSinceCreation
public int getJmsQueuesNbMsgsReceiveSinceCreation()(Code)



getJmsQueuesNbMsgsSendToDMQSinceCreation
public int getJmsQueuesNbMsgsSendToDMQSinceCreation()(Code)



getJmsTopicsNbMsgsDeliverSinceCreation
public int getJmsTopicsNbMsgsDeliverSinceCreation()(Code)



getJmsTopicsNbMsgsReceiveSinceCreation
public int getJmsTopicsNbMsgsReceiveSinceCreation()(Code)



getJmsTopicsNbMsgsSendToDMQSinceCreation
public int getJmsTopicsNbMsgsSendToDMQSinceCreation()(Code)



getLoadCPU
public String getLoadCPU()(Code)



getMaxThreadsByConnectorTomcat
public int getMaxThreadsByConnectorTomcat()(Code)



getMaxWorkerPoolSize
public int getMaxWorkerPoolSize()(Code)



getMaxcheck
public int getMaxcheck()(Code)
maxcheck value



getMbeanServer
public MBeanServer getMbeanServer()(Code)



getMinWorkerPoolSize
public int getMinWorkerPoolSize()(Code)



getMonitoringInfo
public void getMonitoringInfo()(Code)
Update non static information for this node.



getProcessingTimeByConnectorTomcat
public long getProcessingTimeByConnectorTomcat()(Code)



getProtocols
public String getProtocols()(Code)



getRejectedOpenJCAConnection
public int getRejectedOpenJCAConnection()(Code)



getRejectedOpenJDBCResource
public int getRejectedOpenJDBCResource()(Code)



getRequestCountByConnectorTomcat
public int getRequestCountByConnectorTomcat()(Code)



getServedOpenJCAConnection
public int getServedOpenJCAConnection()(Code)



getServedOpenJDBCResource
public int getServedOpenJDBCResource()(Code)



getServerName
public String getServerName()(Code)
The name corresponding to the represented server



getTomcat
public boolean getTomcat()(Code)



getTotalBegunTransactions
public int getTotalBegunTransactions()(Code)



getTotalCommittedTransactions
public int getTotalCommittedTransactions()(Code)



getTotalCurrentTransactions
public int getTotalCurrentTransactions()(Code)



getTotalExpiredTransactions
public int getTotalExpiredTransactions()(Code)



getTotalRolledbackTransactions
public int getTotalRolledbackTransactions()(Code)



getTransaction
public boolean getTransaction()(Code)



getWaiterCountJCAConnection
public int getWaiterCountJCAConnection()(Code)



getWaiterCountJDBCResource
public int getWaiterCountJDBCResource()(Code)



getWaitingTimeJCAConnection
public long getWaitingTimeJCAConnection()(Code)



getWaitingTimeJDBCResource
public long getWaitingTimeJDBCResource()(Code)



getWorkers
public boolean getWorkers()(Code)



isInfoSet
public boolean isInfoSet()(Code)
true if the general info are set, false otherwise



notifyStarting
public void notifyStarting(Collection urls)(Code)
Notification from discovery: RUNNING
Parameters:
  urls - for connection



notifyStopping
public void notifyStopping()(Code)
Notification from discovery: STOPPING



serverStarted
void serverStarted()(Code)
This method is called by checkit() when the represented server is not in RUNNING state but its connection works. This is good, it means that the server is RUNNING.



setInfoSet
public void setInfoSet(boolean infoSet)(Code)
Set the indicator value to true after execting the getInfo() method, and to false when detecting that server become unreacheable or stopping.
Parameters:
  infoSet - indicator value to set



setMaxcheck
public void setMaxcheck(int maxcheck)(Code)

Parameters:
  maxcheck - maxcheck value



startit
public void startit()(Code)
Start the Server discovery notification concerning the represented server



stopit
public void stopit()(Code)
Stop the server via the ClusterDaemon



undeployModule
public void undeployModule(String fileName)(Code)
Undeploy a module on the remote server
Parameters:
  fileName - Name of the file containing module (or app) to undeploy



uploadDeployModule
public void uploadDeployModule(String fileName, boolean replaceExisting)(Code)
Upload a file on remote server and deploy it.
Parameters:
  fileName - file to upload. One among .war,.jar,.ear,.rar
Parameters:
  replaceExisting - if true, replace the existing file if any



uploadFile
public void uploadFile(String fileName, boolean replaceExisting)(Code)
Upload a file on remote server for deployment
Parameters:
  fileName - file to upload. One among .war,.jar,.ear,.rar
Parameters:
  replaceExisting - if true, replace the existing file if any
throws:
  IOException -



Fields inherited from org.objectweb.jonas.management.monitoring.JMXProxy
final public static int FAILED(Code)(Java Doc)
final public static int INITIAL(Code)(Java Doc)
final public static int RUNNING(Code)(Java Doc)
final public static int STARTING(Code)(Java Doc)
final public static int STOPPED(Code)(Java Doc)
final public static int STOPPING(Code)(Java Doc)
final public static int UNKNOWN(Code)(Java Doc)
final public static int UNREACHABLE(Code)(Java Doc)
protected MBeanServerConnection connection(Code)(Java Doc)
protected JMXConnector connector(Code)(Java Doc)
DomainMonitor dm(Code)(Java Doc)
protected Map env(Code)(Java Doc)
protected JmxServiceImpl jmx(Code)(Java Doc)
protected static Logger logger(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected String objectName(Code)(Java Doc)
protected ObjectName serverOn(Code)(Java Doc)
protected int state(Code)(Java Doc)

Methods inherited from org.objectweb.jonas.management.monitoring.JMXProxy
protected boolean checkConnection()(Code)(Java Doc)
public boolean connect(Collection urls)(Code)(Java Doc)
public void disconnect()(Code)(Java Doc)
public Object getAttribute(ObjectName on, String attribute)(Code)(Java Doc)
public AttributeList getAttributes(ObjectName on, String[] attributes)(Code)(Java Doc)
public MBeanServerConnection getConnection()(Code)(Java Doc)
public String getConnectionUrl()(Code)(Java Doc)
public String getDomain()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getObjectName()(Code)(Java Doc)
public int getServerState()(Code)(Java Doc)
public String getState()(Code)(Java Doc)
public ArrayList getUrls()(Code)(Java Doc)
public boolean isRegistered(ObjectName on)(Code)(Java Doc)
public Set queryNames(ObjectName on)(Code)(Java Doc)
public void setObjectName(String on)(Code)(Java Doc)

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.