Package org.epics.archiverappliance
Interface Event
-
- All Known Subinterfaces:
DBRTimeEvent
- All Known Implementing Classes:
CSVEvent
,HashMapEvent
,PBScalarByte
,PBScalarDouble
,PBScalarEnum
,PBScalarFloat
,PBScalarInt
,PBScalarShort
,PBScalarString
,PBV4GenericBytes
,PBVectorByte
,PBVectorDouble
,PBVectorEnum
,PBVectorFloat
,PBVectorInt
,PBVectorShort
,PBVectorString
,POJOEvent
,SimulationEvent
public interface Event
An event represents an archiver sample. An actual sample has much more info; this interface outlines the minimum needed for the archiver appliance server side code. Additional information can be gathered by using one of the other event related interfaces in org.epics.archiverappliance.data. All the implementations of Event so far also implement DBRTimeEvent; this may change in the future.- Author:
- mshankar
-
-
Method Summary
Modifier and Type Method Description ArchDBRTypes
getDBRType()
long
getEpochSeconds()
Get java epoch seconds of the timestamp of this event.Timestamp
getEventTimeStamp()
Get the epoch seconds and the nanos..ByteArray
getRawForm()
Return a serialized form of this event in the internal currency of the archiver appliance.SampleValue
getSampleValue()
Get this event's value.Event
makeClone()
Make a clone of this event free from the confines of its containing stream.
-
-
-
Method Detail
-
getEpochSeconds
long getEpochSeconds()
Get java epoch seconds of the timestamp of this event. Note that we are skipping nanos. To get to the nanos use the getEventTimeStamp method.- Returns:
- The java epoch seconds of this event.
-
getEventTimeStamp
Timestamp getEventTimeStamp()
Get the epoch seconds and the nanos.. We use java.sql.Timestamp as the main timestamp class. See TimeUtils for more time related utilities.- Returns:
- The java epoch seconds and the nanos of this event
-
getRawForm
ByteArray getRawForm()
Return a serialized form of this event in the internal currency of the archiver appliance. For now, this is Google's Protocol Buffers Note that the raw form is always escaped according to the archiver specification. This is to have a minimum of conversion overhead when streaming data out to servers.- Returns:
- A serialization of this event in the internal currency of the archiver appliance.
-
getSampleValue
SampleValue getSampleValue()
Get this event's value. The value for an EPICS sample is a complex thing and can be scalars and vectors of numbers and strings. With EPICS v4, this can get even more complicated.- Returns:
- The valus of this event
-
makeClone
Event makeClone()
Make a clone of this event free from the confines of its containing stream.- Returns:
- A clone of this event
-
getDBRType
ArchDBRTypes getDBRType()
-
-