de.is24.util.monitoring
Class SimpleStateValueProvider
java.lang.Object
de.is24.util.monitoring.StateValueProvider
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private final String name
value
private long value
SimpleStateValueProvider
public SimpleStateValueProvider(String name,
long value)
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.