de.is24.util.monitoring
Class SimpleHistorizable

java.lang.Object
  extended by de.is24.util.monitoring.SimpleHistorizable
All Implemented Interfaces:
Historizable

public class SimpleHistorizable
extends Object
implements Historizable

This is a default Implementation of Historizable supplied for convenience.

Author:
OSchmitz

Field Summary
private  String fName
           
private  Date fTimestamp
           
private  String fValue
           
 
Constructor Summary
SimpleHistorizable(String aName, String aValue)
          Instantiate a SimpleHistorizable with the current time as timestamp
SimpleHistorizable(String aName, String aValue, Date aTimestamp)
          Instantiate a Simple historizable with a given timestamp
 
Method Summary
 String getName()
          name of this historizable
 Date getTimestamp()
          timestamp associated with this Historizable
 String getValue()
          This string represents whatever your applications wants to tell the rest of the world.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fName

private final String fName

fValue

private final String fValue

fTimestamp

private final Date fTimestamp
Constructor Detail

SimpleHistorizable

public SimpleHistorizable(String aName,
                          String aValue)
Instantiate a SimpleHistorizable with the current time as timestamp

Parameters:
aName - name of the Historizbale
aValue - value of the Historizable

SimpleHistorizable

public SimpleHistorizable(String aName,
                          String aValue,
                          Date aTimestamp)
Instantiate a Simple historizable with a given timestamp

Parameters:
aName - name of the Historizbale
aValue - value of the Historizable
aTimestamp - timestamp associated with this Historizable
Method Detail

getValue

public String getValue()
Description copied from interface: Historizable
This string represents whatever your applications wants to tell the rest of the world.

Specified by:
getValue in interface Historizable
Returns:
the historized value, which can actually be any String

getName

public String getName()
Description copied from interface: Historizable
name of this historizable

Specified by:
getName in interface Historizable
Returns:
name of this historizable

getTimestamp

public Date getTimestamp()
Description copied from interface: Historizable
timestamp associated with this Historizable

Specified by:
getTimestamp in interface Historizable
Returns:
a Date instance

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.