public class TagHistoryStorageIntent extends java.lang.Object implements com.inductiveautomation.metro.api.Intent<SampleSetProto.SampleSetPB,StorageResult>
Modifier and Type | Field and Description |
---|---|
protected GatewayContext |
context |
static java.lang.String |
ID |
protected LoggerEx |
logger |
Constructor and Description |
---|
TagHistoryStorageIntent(GatewayContext context) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
protected java.lang.Object |
getValue(SampleSetProto.ValuePB v,
SampleSetProto.DataTypePB type) |
StorageResult |
receive(com.inductiveautomation.metro.api.ServerId sourceServerAddr,
SampleSetProto.SampleSetPB data) |
protected DataTypeClass |
toDTC(SampleSetProto.DataTypePB d) |
protected ScanclassHistorySet |
toHistorySet(SampleSetProto.SampleSetPB data) |
protected TagRetirementList |
toRetirementList(SampleSetProto.SampleSetPB data) |
public static final java.lang.String ID
protected LoggerEx logger
protected GatewayContext context
public TagHistoryStorageIntent(GatewayContext context)
public java.lang.String getName()
getName
in interface com.inductiveautomation.metro.api.Intent<SampleSetProto.SampleSetPB,StorageResult>
public StorageResult receive(com.inductiveautomation.metro.api.ServerId sourceServerAddr, SampleSetProto.SampleSetPB data) throws java.lang.Exception
receive
in interface com.inductiveautomation.metro.api.Intent<SampleSetProto.SampleSetPB,StorageResult>
java.lang.Exception
protected ScanclassHistorySet toHistorySet(SampleSetProto.SampleSetPB data)
protected TagRetirementList toRetirementList(SampleSetProto.SampleSetPB data)
protected DataTypeClass toDTC(SampleSetProto.DataTypePB d)
protected java.lang.Object getValue(SampleSetProto.ValuePB v, SampleSetProto.DataTypePB type)