Class StorageGroupCacheResult<V>


  • public abstract class StorageGroupCacheResult<V>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​V> map
      result map, Notice: this map will be empty when failed
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addMissedDevice​(java.lang.String missedDevice)  
      java.util.Map<java.lang.String,​V> getMap()  
      java.util.List<java.lang.String> getMissedDevices()  
      boolean isSuccess()  
      abstract void put​(java.lang.String device, java.lang.String storageGroupName)  
      void reset()
      reset storageGroupCacheResult
      void setFailed()
      set failed and clear the map
      void setSuccess​(boolean success)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        protected java.util.Map<java.lang.String,​V> map
        result map, Notice: this map will be empty when failed
    • Constructor Detail

      • StorageGroupCacheResult

        public StorageGroupCacheResult()
    • Method Detail

      • isSuccess

        public boolean isSuccess()
      • setSuccess

        public void setSuccess​(boolean success)
      • getMissedDevices

        public java.util.List<java.lang.String> getMissedDevices()
      • addMissedDevice

        public void addMissedDevice​(java.lang.String missedDevice)
      • getMap

        public java.util.Map<java.lang.String,​V> getMap()
      • put

        public abstract void put​(java.lang.String device,
                                 java.lang.String storageGroupName)
      • setFailed

        public void setFailed()
        set failed and clear the map
      • reset

        public void reset()
        reset storageGroupCacheResult