com.ibm.ws.performance.tuning.rule

Class RuleOutput

  1. java.lang.Object
  2. extended bycom.ibm.ws.performance.tuning.rule.RuleOutput
All implemented interfaces:
java.io.Serializable

  1. public class RuleOutput
  2. extends java.lang.Object
  3. implements java.io.Serializable
This class represents the advise which is the result of executing advisor rules. This class contains the severity, message and a set of symptoms. It also contains a placeholder object for a recommended configuration.
See Also:
Serialized Form

Constructor Summary

Constructor and Description
RuleOutput(int type,com.ibm.ws.performance.tuning.rule.MessageWrapper msg,com.ibm.ws.performance.tuning.rule.MessageWrapper sym,SuggestedConfig[] cfg)
RuleOutput(java.lang.String title,com.ibm.websphere.pmi.client.PerfDescriptor myDD,int type,com.ibm.ws.performance.tuning.rule.MessageWrapper msg,com.ibm.ws.performance.tuning.rule.MessageWrapper[] syms,SuggestedConfig[] cfg)
RuleOutput(java.lang.String title,com.ibm.websphere.pmi.client.PerfDescriptor myDD,int type,com.ibm.ws.performance.tuning.rule.MessageWrapper msg,com.ibm.ws.performance.tuning.rule.MessageWrapper sym,SuggestedConfig[] cfg)

Method Summary

Modifier and Type Method and Description
  1. void
addAdditionalInformation(com.ibm.ws.performance.tuning.rule.MessageWrapper sym)
  1. void
addSympton(com.ibm.ws.performance.tuning.rule.MessageWrapper sym)
  1. java.lang.String
getAction()
Returns the action that an user should take to resolve the problem.
  1. java.lang.String[]
getAdditionalInformation()
Returns additional information, if any.
  1. java.lang.String
getDescription()
Returns the detailed description of the Rule Output.
  1. java.lang.String
getMessage()
Returns the message of the Rule Output.
  1. java.lang.Object[]
getMessageArgs()
  1. java.lang.String
getMessageId()
  1. java.lang.String
getName()
Returns the name of the Rule.
  1. java.lang.String
getNodeName()
  1. int
getOutputType()
Returns the type of the Rule Output.
  1. com.ibm.websphere.pmi.client.PerfDescriptor
getPerfDescriptor()
Returns the stats module representation.
  1. java.lang.String
getServerName()
  1. SuggestedConfig[]
getSuggestedCfg()
Returns the suggested configuration changes, if any, to resolve the problem.
  1. java.lang.String[]
getSymptoms()
Returns the symptoms which resulted in the advise output.This returns an array of strings containing the message.
  1. void
setLocale(java.util.Locale locale)
Set the Locale of the Rule Output.
  1. java.lang.String
toString()
Returns the RuleOutput as a string for debug.
  1. void
updateOutputType(int type)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

RuleOutput

  1. public RuleOutput(int type,
  2. com.ibm.ws.performance.tuning.rule.MessageWrapper msg,
  3. com.ibm.ws.performance.tuning.rule.MessageWrapper sym,
  4. SuggestedConfig[] cfg)

RuleOutput

  1. public RuleOutput(java.lang.String title,
  2. com.ibm.websphere.pmi.client.PerfDescriptor myDD,
  3. int type,
  4. com.ibm.ws.performance.tuning.rule.MessageWrapper msg,
  5. com.ibm.ws.performance.tuning.rule.MessageWrapper sym,
  6. SuggestedConfig[] cfg)

RuleOutput

  1. public RuleOutput(java.lang.String title,
  2. com.ibm.websphere.pmi.client.PerfDescriptor myDD,
  3. int type,
  4. com.ibm.ws.performance.tuning.rule.MessageWrapper msg,
  5. com.ibm.ws.performance.tuning.rule.MessageWrapper[] syms,
  6. SuggestedConfig[] cfg)

Method Detail

setLocale

  1. public void setLocale(java.util.Locale locale)
Set the Locale of the Rule Output.

addSympton

  1. public void addSympton(com.ibm.ws.performance.tuning.rule.MessageWrapper sym)

getName

  1. public java.lang.String getName( )
Returns the name of the Rule.

getPerfDescriptor

  1. public com.ibm.websphere.pmi.client.PerfDescriptor getPerfDescriptor( )
Returns the stats module representation.

getOutputType

  1. public int getOutputType()
Returns the type of the Rule Output. For example 101=NO_PROBLEM, 102=WARNING, 103=ALERT, 104=ALERT, 105=CONFIG_ALERT, 106=CANCEL_ALERT, 108=FATAL.

updateOutputType

  1. public void updateOutputType(int type)

getMessage

  1. public java.lang.String getMessage( )
Returns the message of the Rule Output.

getMessageId

  1. public java.lang.String getMessageId( )

getMessageArgs

  1. public java.lang.Object[] getMessageArgs( )

getDescription

  1. public java.lang.String getDescription( )
Returns the detailed description of the Rule Output.

getAction

  1. public java.lang.String getAction( )
Returns the action that an user should take to resolve the problem.

getSymptoms

  1. public java.lang.String[] getSymptoms( )
Returns the symptoms which resulted in the advise output.This returns an array of strings containing the message.

getSuggestedCfg

  1. public SuggestedConfig[] getSuggestedCfg( )
Returns the suggested configuration changes, if any, to resolve the problem.

getServerName

  1. public java.lang.String getServerName( )

getNodeName

  1. public java.lang.String getNodeName( )

getAdditionalInformation

  1. public java.lang.String[] getAdditionalInformation( )
Returns additional information, if any.

addAdditionalInformation

  1. public void addAdditionalInformation( com.ibm.ws.performance.tuning.rule.MessageWrapper sym)

toString

  1. public java.lang.String toString( )
Returns the RuleOutput as a string for debug.
Overrides:
toString in class java.lang.Object