|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.xmldata.option.AbstractOption
org.hackystat.sensor.xmldata.option.UniqueTstampOption
public class UniqueTstampOption
The option used to alter the "Timestmap" attribute in the sensor data files to ensure uniqueness. This removes the data collision problem due to entries having the same timstamps, but the cost is that the sensor/client-side will lose information about what timestamps are actually being sent to the server.
Field Summary | |
---|---|
static java.lang.String |
OPTION_NAME
The option name, which is "-uniqueTimestamps". |
Constructor Summary | |
---|---|
UniqueTstampOption(XmlDataController controller,
java.util.List<java.lang.String> parameters)
Creates this option with the specified controller and the specified list of parameters. |
Method Summary | |
---|---|
boolean |
isValid()
Returns true if the list of parameters contains no parameters. |
void |
process()
Processes this option by setting the unique timestamps mode to true. |
Methods inherited from class org.hackystat.sensor.xmldata.option.AbstractOption |
---|
execute, getController, getName, getParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPTION_NAME
Constructor Detail |
---|
public UniqueTstampOption(XmlDataController controller, java.util.List<java.lang.String> parameters)
controller
- the specified controller.parameters
- the specified list of parameters.Method Detail |
---|
public void process()
process
in interface Option
process
in class AbstractOption
public boolean isValid()
isValid
in interface Option
isValid
in class AbstractOption
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |