| |
|
| 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 | |
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
|
JbiQueryTask | public JbiQueryTask()(Code) | | base constructor.
|
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 |
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)
|
|
|
|