Java Doc for JbiQueryTask.java in  » ESB » open-esb » com » sun » jbi » ui » ant » 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 » ESB » open esb » com.sun.jbi.ui.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.jbi.ui.ant.JbiJmxTask
   com.sun.jbi.ui.ant.JbiTargetTask
      com.sun.jbi.ui.ant.JbiQueryTask

All known Subclasses:   com.sun.jbi.ui.ant.JbiListBindingComponentsTask,  com.sun.jbi.ui.ant.JbiListServiceEnginesTask,  com.sun.jbi.ui.ant.JbiListServiceAssembliesTask,  com.sun.jbi.ui.ant.JbiListSharedLibrariesTask,
JbiQueryTask
abstract public class JbiQueryTask extends JbiTargetTask (Code)
This class is a base class that has the helper methods the extended classes of the query interface need to implement. All concreate query tasks extend directly from this or from a derived class of this.
author:
   Sun Microsystems, Inc.

Inner Class :abstract public static class JbiComponentQueryTask extends JbiQueryTask

Field Summary
final protected static  StringANY_STATE
    
final protected static  intLIST_QUERY_RESULT_TYPE
    
final protected static  StringSHUTDOWN_STATE
    
final protected static  intSINGLE_QUERY_RESULT_TYPE
    
final protected static  StringSTARTED_STATE
    
final protected static  StringSTOPPED_STATE
    
final protected static  StringUNKNOWN_STATE
    

Constructor Summary
public  JbiQueryTask()
     base constructor.

Method Summary
abstract protected  StringgetEmptyQueryResultI18NKey()
    
abstract protected  StringgetEmptyQueryResultI18NMessage()
    
abstract protected  StringgetQueryResultHeaderI18NKey()
    
abstract protected  StringgetQueryResultHeaderSeparatorI18NKey()
    
abstract protected  StringgetQueryResultPageSeparatorI18NKey()
    
protected  intgetQueryResultType()
     Getter for property QueryType.
public  StringgetXmlOutput()
     Getter for property XmlOutput.
protected  voidinitXmlOutput(String xmlText)
     use to clear the xml output if set, to empty list before executing the query.
protected  voidprintComponentQueryResults(String aResult)
    
protected  voidprintDeploymentQueryResults(String aResult)
    
protected  booleanprintResultsToXmlOutput(String xmlResult)
    
protected  voidsetListQueryResultType()
     Setter for property QueryType to LIST_QUERY_RESULT_TYPE.
protected  voidsetSingleQueryResultType()
     Setter for property QueryType to SINGLE_QUERY_RESULT_TYPE.
public  voidsetXmlOutput(String xmlOutput)
     Setter for property XmlOutput.
protected  StringtoJbiComponentInfoState(String taskPropState)
    
protected  StringtoServiceAssemblyInfoState(String taskPropState)
    
protected  voidvalidateTaskPropertyForStateValue(String state)
    

Field Detail
ANY_STATE
final protected static String ANY_STATE(Code)
any state



LIST_QUERY_RESULT_TYPE
final protected static int LIST_QUERY_RESULT_TYPE(Code)
query information for one or more objects *



SHUTDOWN_STATE
final protected static String SHUTDOWN_STATE(Code)
shutdown state



SINGLE_QUERY_RESULT_TYPE
final protected static int SINGLE_QUERY_RESULT_TYPE(Code)
query information for a single object *



STARTED_STATE
final protected static String STARTED_STATE(Code)
started state



STOPPED_STATE
final protected static String STOPPED_STATE(Code)
stopped state



UNKNOWN_STATE
final protected static String UNKNOWN_STATE(Code)
unknown state




Constructor Detail
JbiQueryTask
public JbiQueryTask()(Code)
base constructor.




Method Detail
getEmptyQueryResultI18NKey
abstract protected String getEmptyQueryResultI18NKey()(Code)
returns i18n key the i18n key



getEmptyQueryResultI18NMessage
abstract protected String getEmptyQueryResultI18NMessage()(Code)
returns i18n key the i18n key



getQueryResultHeaderI18NKey
abstract protected String getQueryResultHeaderI18NKey()(Code)
returns i18n key the i18n key i18n key



getQueryResultHeaderSeparatorI18NKey
abstract protected String getQueryResultHeaderSeparatorI18NKey()(Code)
returns i18n key the i18n key



getQueryResultPageSeparatorI18NKey
abstract protected String getQueryResultPageSeparatorI18NKey()(Code)
returns i18n key the i18n key i18n key



getQueryResultType
protected int getQueryResultType()(Code)
Getter for property QueryType. Value of QueryType.



getXmlOutput
public String getXmlOutput()(Code)
Getter for property XmlOutput. Value of XmlOutput.



initXmlOutput
protected void initXmlOutput(String xmlText)(Code)
use to clear the xml output if set, to empty list before executing the query. This way, failred query will have the xml output set to empty list.
Parameters:
  xmlText - xml text to set to the output xml property value



printComponentQueryResults
protected void printComponentQueryResults(String aResult)(Code)
prints result
Parameters:
  aResult - result to print



printDeploymentQueryResults
protected void printDeploymentQueryResults(String aResult)(Code)
prints result
Parameters:
  aResult - result to print



printResultsToXmlOutput
protected boolean printResultsToXmlOutput(String xmlResult)(Code)
set the xmlResult as a value of the property from getXmlOutput
Parameters:
  xmlResult - results in xml text true if the result is saved in the property else false.



setListQueryResultType
protected void setListQueryResultType()(Code)
Setter for property QueryType to LIST_QUERY_RESULT_TYPE.



setSingleQueryResultType
protected void setSingleQueryResultType()(Code)
Setter for property QueryType to SINGLE_QUERY_RESULT_TYPE.



setXmlOutput
public void setXmlOutput(String xmlOutput)(Code)
Setter for property XmlOutput.
Parameters:
  xmlOutput - xml text.



toJbiComponentInfoState
protected String toJbiComponentInfoState(String taskPropState)(Code)
converts to state
Parameters:
  taskPropState - value passed from task attribute state state value



toServiceAssemblyInfoState
protected String toServiceAssemblyInfoState(String taskPropState)(Code)
converts to state
Parameters:
  taskPropState - value passed from task attribute state state value



validateTaskPropertyForStateValue
protected void validateTaskPropertyForStateValue(String state) throws BuildException(Code)
validates the state value
Parameters:
  state - value
throws:
  BuildException - on invalid state value



Fields inherited from com.sun.jbi.ui.ant.JbiTargetTask
final public static String TARGET_DOMAIN(Code)(Java Doc)
final public static String TARGET_SERVER(Code)(Java Doc)

Methods inherited from com.sun.jbi.ui.ant.JbiTargetTask
public String getTarget()(Code)(Java Doc)
public String getValidTarget() throws BuildException(Code)(Java Doc)
protected void logDebugConnectionAttributes()(Code)(Java Doc)
public void setTarget(String target)(Code)(Java Doc)
protected void validateTarget(String target) throws BuildException(Code)(Java Doc)

Fields inherited from com.sun.jbi.ui.ant.JbiJmxTask
final public static String DEF_HOST_PROP(Code)(Java Doc)
final public static String DEF_JMX_PROPERTIES_FILE(Code)(Java Doc)
final public static String DEF_PASSWORD_PROP(Code)(Java Doc)
final public static String DEF_PORT_PROP(Code)(Java Doc)
final public static String DEF_URL_PROP(Code)(Java Doc)
final public static String DEF_USERNAME_PROP(Code)(Java Doc)

Methods inherited from com.sun.jbi.ui.ant.JbiJmxTask
protected String createFailedFormattedJbiAdminResult(String i18nKey, Object[] args)(Code)(Java Doc)
public void execute() throws BuildException(Code)(Java Doc)
abstract protected void executeTask() throws BuildException(Code)(Java Doc)
protected JBIManagementMessage extractJBIManagementMessage(Exception ex)(Code)(Java Doc)
protected String formatTaskFailedMessage(String causeMsg)(Code)(Java Doc)
protected String formatTaskSuccessMessage()(Code)(Java Doc)
protected String formatTaskSuccessMessage(String causeMsg)(Code)(Java Doc)
public String getDefaultHost()(Code)(Java Doc)
public String getDefaultJmxpropertiesfile()(Code)(Java Doc)
public String getDefaultPassword()(Code)(Java Doc)
public String getDefaultPort()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
protected I18NBundle getI18NBundle()(Code)(Java Doc)
protected JBIAdminCommands getJBIAdminCommands() throws Exception(Code)(Java Doc)
protected Properties getJmxConnectionProperties()(Code)(Java Doc)
public String getJmxpropertiesfile()(Code)(Java Doc)
public String getPassword()(Code)(Java Doc)
protected String getPasswordFromFile(File pwFile) throws IOException(Code)(Java Doc)
protected String getPasswordFromFileOrAttribute() throws IOException(Code)(Java Doc)
public File getPasswordfile()(Code)(Java Doc)
public String getPort()(Code)(Java Doc)
public Properties getProviderProperties()(Code)(Java Doc)
public Boolean getSecure()(Code)(Java Doc)
abstract protected String getTaskFailedStatusI18NKey()(Code)(Java Doc)
protected String getTaskPartialSuccessStatusI18NKey()(Code)(Java Doc)
abstract protected String getTaskSuccessStatusI18NKey()(Code)(Java Doc)
protected String getTaskWarningStatusI18NKey()(Code)(Java Doc)
public String getUsername()(Code)(Java Doc)
protected String getValidComponentName(String compName) throws BuildException(Code)(Java Doc)
protected String getValidName(String name, String errorMsgI18nKey) throws BuildException(Code)(Java Doc)
protected String getValidServiceAssemblyName(String saName) throws BuildException(Code)(Java Doc)
protected String getValidSharedLibraryName(String slibName) throws BuildException(Code)(Java Doc)
public boolean isFailOnError()(Code)(Java Doc)
protected void logDebug(String aDebugMsg)(Code)(Java Doc)
protected void logDebugConnectionAttributes()(Code)(Java Doc)
protected void logError(String aErrorMsg)(Code)(Java Doc)
protected void logInfo(String anInfoMsg)(Code)(Java Doc)
protected void logVerbose(String aVerboseMsg)(Code)(Java Doc)
protected void logWarning(String aWarningMsg)(Code)(Java Doc)
protected void printArrayDataRecursively(Object[] arrayData, OpenType elementType, PrintWriter msgWriter, String tabStr)(Code)(Java Doc)
protected void printCompositeDataRecursively(CompositeData compositeData, PrintWriter msgWriter, String tabStr)(Code)(Java Doc)
protected void printMessage(String aMsg)(Code)(Java Doc)
protected void printTabularData(TabularData statsReport, PrintWriter msgWriter, String tabStr)(Code)(Java Doc)
protected void printTaskPartialSuccess(String result)(Code)(Java Doc)
protected void printTaskSuccess(String result)(Code)(Java Doc)
protected void printTaskSuccess(JBIManagementMessage mgmtMsg)(Code)(Java Doc)
protected void processTaskException(Exception ex) throws BuildException(Code)(Java Doc)
protected void processTaskResult(String result) throws BuildException(Code)(Java Doc)
public void setFailOnError(boolean failOnError)(Code)(Java Doc)
public void setHost(String aHost)(Code)(Java Doc)
public void setJmxpropertiesfile(String propertiesfile)(Code)(Java Doc)
public void setPassword(String aPassword)(Code)(Java Doc)
public void setPasswordfile(File passwordFile)(Code)(Java Doc)
public void setPort(String aPort)(Code)(Java Doc)
public void setSecure(Boolean secure)(Code)(Java Doc)
public void setUsername(String aUsername)(Code)(Java Doc)
protected void throwBuildException(String causeMsg) throws BuildException(Code)(Java Doc)
protected void throwBuildException(Throwable aCause) throws BuildException(Code)(Java Doc)
protected void throwBuildException(JBIManagementMessage aCauseMgmtMsg) throws BuildException(Code)(Java Doc)
protected void throwTaskBuildException(String aCauseKey) throws BuildException(Code)(Java Doc)
protected void throwTaskBuildException(String aCauseKey, String aCauseArg1) throws BuildException(Code)(Java Doc)
protected void validateJmxConnectionPortValue(String port) throws JMXConnectionException(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.