Class DefaultDataSinkInfo
java.lang.Object
com.inductiveautomation.ignition.gateway.history.sf.DefaultDataSinkInfo
- All Implemented Interfaces:
DataSinkInformation,Serializable
This class is a basic implementation of DataSinkInformation, that can be used to provide information about a sink.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(LocalizedString message) Returns a key that points to a useful name describing the store, such as "Memory Buffer" or "Local Cache".Returns any messages that the data sink might want to display.Retrieves the metric for data flowing into the sink/store.booleanbooleanReturns whether this sink is also a DataStore (aka data cache, the "store" part of store and forward).
If it is, statistics can be retrieved through getDataStoreStatusvoidsetDescriptionKey(String descriptionKey) voidsetIsAvailable(boolean isAvailable) voidsetIsStore(boolean isStore) voidsetStatus(DataStoreStatus status) voidsetStorageMetric(StatMetric storeMetric)
-
Constructor Details
-
DefaultDataSinkInfo
public DefaultDataSinkInfo()
-
-
Method Details
-
getDataStoreStatus
- Specified by:
getDataStoreStatusin interfaceDataSinkInformation
-
getDescriptionKey
Description copied from interface:DataSinkInformationReturns a key that points to a useful name describing the store, such as "Memory Buffer" or "Local Cache".- Specified by:
getDescriptionKeyin interfaceDataSinkInformation
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceDataSinkInformation
-
isDataStore
public boolean isDataStore()Description copied from interface:DataSinkInformationReturns whether this sink is also a DataStore (aka data cache, the "store" part of store and forward).
If it is, statistics can be retrieved through getDataStoreStatus- Specified by:
isDataStorein interfaceDataSinkInformation
-
setIsAvailable
public void setIsAvailable(boolean isAvailable) -
setStatus
-
setIsStore
public void setIsStore(boolean isStore) -
setDescriptionKey
-
getMessages
Description copied from interface:DataSinkInformationReturns any messages that the data sink might want to display.- Specified by:
getMessagesin interfaceDataSinkInformation
-
addMessage
-
getStorageMetric
Description copied from interface:DataSinkInformationRetrieves the metric for data flowing into the sink/store. If this is a store, will be the same as getDataStoreStatus().getStorageMetric()- Specified by:
getStorageMetricin interfaceDataSinkInformation
-
setStorageMetric
-