Java Doc for JMXAccessorSetTask.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » ant » jmx » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.ant.jmx 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.catalina.ant.jmx.JMXAccessorTask
   org.apache.catalina.ant.jmx.JMXAccessorSetTask

JMXAccessorSetTask
public class JMXAccessorSetTask extends JMXAccessorTask (Code)
Access JMX JSR 160 MBeans Server.
  • Get Mbeans attributes
  • Show Get result as Ant console log
  • Bind Get result as Ant properties

Examples: Set a Mbean Manager attribute maxActiveSessions. Set this attribute with fresh jmx connection without save reference

 <jmx:set
 host="127.0.0.1"
 port="9014"
 ref=""
 name="Catalina:type=Manager,path="/ClusterTest",host=localhost" 
 attribute="maxActiveSessions"
 value="100"
 type="int"
 echo="false">
 />
 

First call to a remote MBeanserver save the JMXConnection a referenz jmx.server

These tasks require Ant 1.6 or later interface.
author:
   Peter Rossbach
version:
   $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
since:
   5.5.10




Method Summary
public  StringgetAttribute()
    
public  StringgetInfo()
     Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
protected  StringgetMBeanAttributeType(MBeanServerConnection jmxServerConnection, String name, String attribute)
    
public  StringgetType()
    
public  StringgetValue()
    
public  booleanisConvert()
    
public  StringjmxExecute(MBeanServerConnection jmxServerConnection)
     Execute the specified command, based on the configured properties.
protected  StringjmxSet(MBeanServerConnection jmxServerConnection, String name)
    
public  voidsetAttribute(String attribute)
    
public  voidsetConvert(boolean convert)
    
public  voidsetType(String valueType)
    
public  voidsetValue(String value)
    



Method Detail
getAttribute
public String getAttribute()(Code)
Returns the attribute.



getInfo
public String getInfo()(Code)
Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.



getMBeanAttributeType
protected String getMBeanAttributeType(MBeanServerConnection jmxServerConnection, String name, String attribute) throws Exception(Code)
Get MBean Attriute from Mbean Server
Parameters:
  jmxServerConnection -
Parameters:
  name -
Parameters:
  attribute - The type
throws:
  Exception -



getType
public String getType()(Code)
Returns the type.



getValue
public String getValue()(Code)
Returns the value.



isConvert
public boolean isConvert()(Code)
Returns the convert.



jmxExecute
public String jmxExecute(MBeanServerConnection jmxServerConnection) throws Exception(Code)
Execute the specified command, based on the configured properties. The input stream will be closed upon completion of this task, whether it was executed successfully or not.
exception:
  Exception - if an error occurs



jmxSet
protected String jmxSet(MBeanServerConnection jmxServerConnection, String name) throws Exception(Code)

Parameters:
  jmxServerConnection -
Parameters:
  name -
throws:
  Exception -



setAttribute
public void setAttribute(String attribute)(Code)

Parameters:
  attribute - The attribute to set.



setConvert
public void setConvert(boolean convert)(Code)

Parameters:
  convert - The convert to set.



setType
public void setType(String valueType)(Code)

Parameters:
  valueType - The type to set.



setValue
public void setValue(String value)(Code)

Parameters:
  value - The value to set.



Fields inherited from org.apache.catalina.ant.jmx.JMXAccessorTask
public static String JMX_SERVICE_PREFIX(Code)(Java Doc)
public static String JMX_SERVICE_SUFFIX(Code)(Java Doc)

Methods inherited from org.apache.catalina.ant.jmx.JMXAccessorTask
public static MBeanServerConnection accessJMXConnection(Project project, String url, String host, String port, String username, String password, String refId) throws MalformedURLException, IOException(Code)(Java Doc)
protected Object convertStringToType(String value, String valueType)(Code)(Java Doc)
public static MBeanServerConnection createJMXConnection(String url, String host, String port, String username, String password) throws MalformedURLException, IOException(Code)(Java Doc)
protected void createProperty(Object result)(Code)(Java Doc)
protected void createProperty(String propertyPrefix, Object result)(Code)(Java Doc)
protected void echoResult(String name, Object result)(Code)(Java Doc)
public void execute() throws BuildException(Code)(Java Doc)
public String getDelimiter()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public String getIf()(Code)(Java Doc)
public String getInfo()(Code)(Java Doc)
protected MBeanServerConnection getJMXConnection() throws MalformedURLException, IOException(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getPassword()(Code)(Java Doc)
public String getPort()(Code)(Java Doc)
public Map getProperties()(Code)(Java Doc)
public String getProperty(String property)(Code)(Java Doc)
public String getRef()(Code)(Java Doc)
public String getResultproperty()(Code)(Java Doc)
public String getUnless()(Code)(Java Doc)
public String getUrl()(Code)(Java Doc)
public String getUsername()(Code)(Java Doc)
public boolean isEcho()(Code)(Java Doc)
public boolean isSeparatearrayresults()(Code)(Java Doc)
public boolean isUseRef()(Code)(Java Doc)
public String jmxExecute(MBeanServerConnection jmxServerConnection) throws Exception(Code)(Java Doc)
public void setDelimiter(String separator)(Code)(Java Doc)
public void setEcho(boolean echo)(Code)(Java Doc)
public void setHost(String host)(Code)(Java Doc)
public void setIf(String c)(Code)(Java Doc)
public void setName(String objectName)(Code)(Java Doc)
public void setPassword(String password)(Code)(Java Doc)
public void setPort(String port)(Code)(Java Doc)
public boolean setProperty(String property, Object value)(Code)(Java Doc)
public void setRef(String refId)(Code)(Java Doc)
public void setResultproperty(String propertyName)(Code)(Java Doc)
public void setSeparatearrayresults(boolean separateArrayResults)(Code)(Java Doc)
public void setUnless(String c)(Code)(Java Doc)
public void setUrl(String url)(Code)(Java Doc)
public void setUsername(String username)(Code)(Java Doc)
protected boolean testIfCondition()(Code)(Java Doc)
protected boolean testUnlessCondition()(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.