org.ow2.jasmine.probe
Class JasmineIndicator

java.lang.Object
  extended by org.ow2.jasmine.probe.JasmineIndicator

public class JasmineIndicator
extends Object

A JasmineIndicator defines how to obtain the value to be monitored

Author:
durieuxp

Field Summary
protected  String name
          Name of this indicator can be provided by the user or generated.
 
Constructor Summary
JasmineIndicator()
           
 
Method Summary
 boolean equals(Object obj)
          Compare the current JasmineIndicator with a given one end return true only if name, type, scale, sources and properties are identical.
 String getName()
           
 Map<String,String> getProperties()
           
 int getScale()
           
 List<String> getSources()
           
 String getType()
           
 void setName(String name)
           
 void setProperties(Map<String,String> properties)
           
 void setScale(int scale)
           
 void setSources(List<String> sources)
           
 void setType(String type)
           
 String toLine()
          Build a single line description of this object.
 String toString()
          Build a full description of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Name of this indicator can be provided by the user or generated. Must be unique inside of an agent

Constructor Detail

JasmineIndicator

public JasmineIndicator()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getType

public String getType()

setType

public void setType(String type)

getScale

public int getScale()

setScale

public void setScale(int scale)

getSources

public List<String> getSources()

setSources

public void setSources(List<String> sources)

getProperties

public Map<String,String> getProperties()

setProperties

public void setProperties(Map<String,String> properties)

toString

public String toString()
Build a full description of this object.

Overrides:
toString in class Object
Returns:

toLine

public String toLine()
Build a single line description of this object.

Returns:

equals

public boolean equals(Object obj)
Compare the current JasmineIndicator with a given one end return true only if name, type, scale, sources and properties are identical.

Overrides:
equals in class Object
Parameters:
other - the JasmineIndicator to compare this object with
Returns:
true if name, type, scale, sources and properties are identical, false otherwise.


Copyright © 2013 OW2 Consortium. All Rights Reserved.