Class 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 Detail

      • DefaultDataSinkInfo

        public DefaultDataSinkInfo()
    • Method Detail

      • getDescriptionKey

        public java.lang.String getDescriptionKey()
        Description copied from interface: DataSinkInformation
        Returns a key that points to a useful name describing the store, such as "Memory Buffer" or "Local Cache".
        Specified by:
        getDescriptionKey in interface DataSinkInformation
      • isDataStore

        public boolean isDataStore()
        Description copied from interface: DataSinkInformation
        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 getDataStoreStatus
        Specified by:
        isDataStore in interface DataSinkInformation
      • setIsAvailable

        public void setIsAvailable​(boolean isAvailable)
      • setIsStore

        public void setIsStore​(boolean isStore)
      • setDescriptionKey

        public void setDescriptionKey​(java.lang.String descriptionKey)
      • setStorageMetric

        public void setStorageMetric​(StatMetric storeMetric)