public static interface StatusReporter.StatusItem
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Get the unique key specified when this status item was created
|
java.lang.String |
getStatus()
Return the value this status item was set to most recently by this
class.
|
void |
increment()
Set an integer status value by incrementing the previous integer value that was set by this object.
|
void |
increment(long incrementValue)
Set an integer status value by incrementing the previous integer value that was set by this object.
|
void |
setStatus(long value)
Set an integer status value.
|
void |
setStatus(java.lang.String value)
Set a string status value.
|
void setStatus(java.lang.String value)
value
- the value to set e.g. StatusReporter.STATUS_ONLINE
, StatusReporter.STATUS_ONLINE
, StatusReporter.STATUS_FAILED
.
Must not be null.void setStatus(long value)
value
- the value to setjava.lang.String getStatus()
void increment()
void increment(long incrementValue)
incrementValue
- the value to add on to the current value and set as the status. This can be a negative number.java.lang.String getKey()
Submit a bug or feature
Copyright (c) 2013-2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.