com.philemonworks.selfdiagnose.check.vendor
Class CheckWebsphereJMSListenerPort
java.lang.Object
com.philemonworks.selfdiagnose.DiagnosticTask
com.philemonworks.selfdiagnose.PatternMatchingTask
com.philemonworks.selfdiagnose.check.CheckProperty
com.philemonworks.selfdiagnose.check.CheckMBeanProperty
com.philemonworks.selfdiagnose.check.vendor.CheckWebsphereJMSListenerPort
- All Implemented Interfaces:
- java.io.Serializable
public class CheckWebsphereJMSListenerPort
- extends CheckMBeanProperty
CheckWebsphereJMSListenerPort is a DiagnosticTask that verifies the operational status of a ListenerPort in WAS.
<checkwebspherejmslistenerport name="sli_caseStatusService-ontvangenBLIBerichtLp" />
CheckWebsphereJMSListenerPort requires the following runtime dependencies:
- MAVEN_REPO/ibm-websphere/jars/jmxc-5.1.jar
- MAVEN_REPO/ibm-websphere/jars/admin-5.1.jar
CheckWebsphereJMSListenerPort uses the following fixed parameters:
- mbeanFactory=com.ibm.websphere.management.AdminServiceFactory
- query=WebSphere:type=ListenerPort,name={name},*
- method=isStarted
If these parameters must be different from your WAS installation then try using the CheckMBeanProperty task.
- Author:
- E.M.Micklei
- See Also:
- Serialized Form
| Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
createResult, getComment, getDefaultReportTemplate, getRequestor, getTaskName, getVariableName, hasComment, run, run, setComment, setRequestor, setVariableName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckWebsphereJMSListenerPort
public CheckWebsphereJMSListenerPort()
initializeFromAttributes
public void initializeFromAttributes(org.xml.sax.Attributes attributes)
- Description copied from class:
CheckMBeanProperty
- This method is sent from the SelfDiagnoseHandler when a configuration is being processed. Use the passed
attributes to initialize the receiver.
- Overrides:
initializeFromAttributes in class CheckMBeanProperty
- Parameters:
attributes - : org.xml.sax.Attributes
setUp
public void setUp(ExecutionContext ctx)
throws DiagnoseException
- Description copied from class:
CheckMBeanProperty
- Override this method to verify that task parameters are initialized/set correctly.
- Overrides:
setUp in class CheckMBeanProperty
- Parameters:
ctx - : ExecutionContext
- Throws:
DiagnoseException
getMBeanServer
protected javax.management.MBeanServer getMBeanServer()
throws DiagnoseException
- Create a new MBeanServer proxy using the specified MBeanFactory class
- Overrides:
getMBeanServer in class CheckMBeanProperty
- Returns:
- MBeanServer
- Throws:
DiagnoseException
getDescription
public java.lang.String getDescription()
- Overrides:
getDescription in class CheckMBeanProperty
- Returns:
- String the description
run
public void run(ExecutionContext ctx,
DiagnosticTaskResult result)
throws DiagnoseException
- Description copied from class:
DiagnosticTask
- Run the task. If an error is detected then raise a DiagnoseException.
Otherwise use the result object to the report any messages when a run is completed.
- Overrides:
run in class CheckMBeanProperty
- Parameters:
ctx - ExecutionContextresult - DiagnosticTaskResult
- Throws:
DiagnoseException
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
Copyright © 2008. All Rights Reserved.