Package io.nosqlbench.api.annotations
Class MutableAnnotation
java.lang.Object
io.nosqlbench.api.annotations.MutableAnnotation
- All Implemented Interfaces:
Annotation
-
Constructor Summary
ConstructorsConstructorDescriptionMutableAnnotation(TimeZone timezone, String session, Layer layer, long start, long end, LinkedHashMap<String, String> labels, LinkedHashMap<String, String> details) -
Method Summary
Modifier and TypeMethodDescriptionasJson()The details are an ordered map of all the content that you would want the user to see.longgetEnd()If this is the same asAnnotation.getStart(), then the annotation is for an instant in time.The labels which identify what this annotation pertains to.getLayer()Annotations must be associated with a processing layer in NoSQLBench.getSpan()This should returnSpan.intervalif the span of time is not an instant, andSpan.instant, otherwise.longgetStart()If this is the same asAnnotation.getEnd(), then the annotation is for an instant in time.voidsetDetails(Map<String, String> details) voidsetEnd(long intervalEnd) voidvoidvoidsetSession(String sessionName) voidsetStart(long intervalStart) toString()
-
Constructor Details
-
MutableAnnotation
public MutableAnnotation(TimeZone timezone, String session, Layer layer, long start, long end, LinkedHashMap<String, String> labels, LinkedHashMap<String, String> details)
-
-
Method Details
-
setSession
-
setStart
public void setStart(long intervalStart) -
setEnd
public void setEnd(long intervalEnd) -
setLabels
-
setLayer
-
setDetails
-
getSession
- Specified by:
getSessionin interfaceAnnotation- Returns:
- The named session that the annotation is associated with
-
getStart
public long getStart()Description copied from interface:AnnotationIf this is the same asAnnotation.getEnd(), then the annotation is for an instant in time.- Specified by:
getStartin interfaceAnnotation- Returns:
- The beginning of the interval of time that the annotation describes
-
getEnd
public long getEnd()Description copied from interface:AnnotationIf this is the same asAnnotation.getStart(), then the annotation is for an instant in time.- Specified by:
getEndin interfaceAnnotation- Returns:
- The end of the interval of time that the annotation describes
-
getLayer
Description copied from interface:AnnotationAnnotations must be associated with a processing layer in NoSQLBench. For more details on layers, seeLayer- Specified by:
getLayerin interfaceAnnotation- Returns:
-
getLabels
Description copied from interface:AnnotationThe labels which identify what this annotation pertains to. The following labels should be provided for every annotation, when available:- appname: "nosqlbench"
- alias: The name of the activity alias, if available
- workload: The name of the workload file, if named scenarios are used
- scenario: The name of the named scenario, if named scenarios are used
- step: The name of the named scenario step, if named scenario are used
- usermode: "named_scenario" or "adhoc_activity"
- Specified by:
getLabelsin interfaceAnnotation- Returns:
- The labels map
-
getDetails
Description copied from interface:AnnotationThe details are an ordered map of all the content that you would want the user to see.- Specified by:
getDetailsin interfaceAnnotation- Returns:
- The details map
-
toString
-
asReadOnly
-
getSpan
Description copied from interface:AnnotationThis should returnSpan.intervalif the span of time is not an instant, andSpan.instant, otherwise.- Specified by:
getSpanin interfaceAnnotation
-
asJson
- Specified by:
asJsonin interfaceAnnotation
-