de.is24.util.monitoring
Class SimpleStateValueProvider

java.lang.Object
  extended by de.is24.util.monitoring.StateValueProvider
      extended by de.is24.util.monitoring.SimpleStateValueProvider
All Implemented Interfaces:
Reportable

public class SimpleStateValueProvider
extends StateValueProvider

Implements StateValueProvider for easily adding a key - value pair to our inapplicationmonitor. Every time this class is implemented it is in an anonymous class ... I did not want to do this all the time, i have to use ist ;-)

Author:
adeetzen

Field Summary
private  String name
           
private  long value
           
 
Constructor Summary
SimpleStateValueProvider(String name, long value)
           
 
Method Summary
 String getName()
          the name of the state value
 long getValue()
           
 void setValue(long value)
           
 
Methods inherited from class de.is24.util.monitoring.StateValueProvider
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private final String name

value

private long value
Constructor Detail

SimpleStateValueProvider

public SimpleStateValueProvider(String name,
                                long value)
Method Detail

getValue

public long getValue()
Specified by:
getValue in class StateValueProvider
Returns:
return the value of the state value

getName

public String getName()
Description copied from class: StateValueProvider
the name of the state value

Specified by:
getName in interface Reportable
Specified by:
getName in class StateValueProvider

setValue

public void setValue(long value)


Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.