com.cisco.oss.foundation.monitoring.component.config
Class StatusCommandSettings

java.lang.Object
  extended by com.cisco.oss.foundation.monitoring.component.config.StatusCommandSettings

public class StatusCommandSettings
extends Object

This settings reflects how a component can be checked if it is running or not.

Author:
manojc

Constructor Summary
StatusCommandSettings()
           
 
Method Summary
 String getCommand()
           
 String getDownIndication()
           
 MatchPolicy getMatchPolicy()
           
 String getUpIndication()
           
 void setCommand(String command)
          Sets the status script command using which this component can be checked if it is running or not.
 void setDownIndication(String downIndication)
          Sets the text output of the component's Status script command which says the component is DOWN.
 void setMatchPolicy(MatchPolicy matchPolicy)
          Sets the MatchPolicy that has to be applied on getUpIndication() and getDownIndication() to confirm if the component is running or not running respectively.
 void setUpIndication(String upIndication)
          Sets the text output of the component's Status script command which says the component is UP and running.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusCommandSettings

public StatusCommandSettings()
Method Detail

getCommand

public String getCommand()
Returns:
The status script command using which this component can be checked if it is running or not

setCommand

public void setCommand(String command)
Sets the status script command using which this component can be checked if it is running or not.

Parameters:
command -

getMatchPolicy

public MatchPolicy getMatchPolicy()
Returns:
The MatchPolicy that has to be applied on getUpIndication() and getDownIndication() to confirm if the component is running or not running respectively

setMatchPolicy

public void setMatchPolicy(MatchPolicy matchPolicy)
Sets the MatchPolicy that has to be applied on getUpIndication() and getDownIndication() to confirm if the component is running or not running respectively.

Parameters:
matchPolicy -

getUpIndication

public String getUpIndication()
Returns:
The text output of the component's Status script command which says the component is UP and running

setUpIndication

public void setUpIndication(String upIndication)
Sets the text output of the component's Status script command which says the component is UP and running.

Parameters:
upIndication -

getDownIndication

public String getDownIndication()
Returns:
The text output of the component's Status script command which says the component is DOWN

setDownIndication

public void setDownIndication(String downIndication)
Sets the text output of the component's Status script command which says the component is DOWN.

Parameters:
downIndication -


Copyright © 2015 Cisco. All Rights Reserved.