Class DefaultDataSinkInfo
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.history.sf.DefaultDataSinkInfo
 
- 
- All Implemented Interfaces:
- DataSinkInformation,- java.io.Serializable
 
 public class DefaultDataSinkInfo extends java.lang.Object implements DataSinkInformation This class is a basic implementation of DataSinkInformation, that can be used to provide information about a sink.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultDataSinkInfo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(LocalizedString message)DataStoreStatusgetDataStoreStatus()java.lang.StringgetDescriptionKey()Returns a key that points to a useful name describing the store, such as "Memory Buffer" or "Local Cache".java.util.List<LocalizedString>getMessages()Returns any messages that the data sink might want to display.StatMetricgetStorageMetric()Retrieves the metric for data flowing into the sink/store.booleanisAvailable()booleanisDataStore()Returns 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(java.lang.String descriptionKey)voidsetIsAvailable(boolean isAvailable)voidsetIsStore(boolean isStore)voidsetStatus(DataStoreStatus status)voidsetStorageMetric(StatMetric storeMetric)
 
- 
- 
- 
Method Detail- 
getDataStoreStatuspublic DataStoreStatus getDataStoreStatus() - Specified by:
- getDataStoreStatusin interface- DataSinkInformation
 
 - 
getDescriptionKeypublic java.lang.String 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 interface- DataSinkInformation
 
 - 
isAvailablepublic boolean isAvailable() - Specified by:
- isAvailablein interface- DataSinkInformation
 
 - 
isDataStorepublic 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 interface- DataSinkInformation
 
 - 
setIsAvailablepublic void setIsAvailable(boolean isAvailable) 
 - 
setStatuspublic void setStatus(DataStoreStatus status) 
 - 
setIsStorepublic void setIsStore(boolean isStore) 
 - 
setDescriptionKeypublic void setDescriptionKey(java.lang.String descriptionKey) 
 - 
getMessagespublic java.util.List<LocalizedString> getMessages() Description copied from interface:DataSinkInformationReturns any messages that the data sink might want to display.- Specified by:
- getMessagesin interface- DataSinkInformation
 
 - 
addMessagepublic void addMessage(LocalizedString message) 
 - 
getStorageMetricpublic StatMetric 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 interface- DataSinkInformation
 
 - 
setStorageMetricpublic void setStorageMetric(StatMetric storeMetric) 
 
- 
 
-