Package net.i2p.stat
Class PersistenceHelper
java.lang.Object
net.i2p.stat.PersistenceHelper
class PersistenceHelper extends Object
Output rate data.
This is used via ProfilePersistenceHelper and the output
must be compatible.
-
Constructor Summary
Constructors Constructor Description PersistenceHelper()
-
Method Summary
Modifier and Type Method Description static void
add(StringBuilder buf, boolean addComments, String prefix, String name, String description, double value)
static void
add(StringBuilder buf, boolean addComments, String prefix, String name, String description, long value)
static void
addDate(StringBuilder buf, boolean addComments, String prefix, String name, String description, long value)
static void
addTime(StringBuilder buf, boolean addComments, String prefix, String name, String description, long value)
static double
getDouble(Properties props, String prefix, String name)
static int
getInt(Properties props, String prefix, String name)
static long
getLong(Properties props, String prefix, String name)
-
Constructor Details
-
PersistenceHelper
PersistenceHelper()
-
-
Method Details
-
add
public static final void add(StringBuilder buf, boolean addComments, String prefix, String name, String description, double value) -
addDate
public static final void addDate(StringBuilder buf, boolean addComments, String prefix, String name, String description, long value)- Since:
- 0.8.5
-
addTime
public static final void addTime(StringBuilder buf, boolean addComments, String prefix, String name, String description, long value)- Since:
- 0.8.5
-
add
public static final void add(StringBuilder buf, boolean addComments, String prefix, String name, String description, long value)- Parameters:
value
- non-negative
-
getLong
- Returns:
- non-negative, returns 0 on error
-
getDouble
- Returns:
- 0 on error
-
getInt
- Returns:
- non-negative, returns 0 on error
- Since:
- 0.8.13
-