Class ServiceInfoStateWatcher


  • public abstract class ServiceInfoStateWatcher
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.util.UUID,​de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot,​ServiceInfoStateWatcher.ServiceInfoState>> services  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.util.UUID,​de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot,​ServiceInfoStateWatcher.ServiceInfoState>> getServices()  
      void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceConnectNetworkEvent event)  
      void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceDisconnectNetworkEvent event)  
      void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceInfoUpdateEvent event)  
      void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceRegisterEvent event)  
      void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceStartEvent event)  
      void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceStopEvent event)  
      void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceUnregisterEvent event)  
      protected abstract void handleUpdate()  
      void includeExistingServices()  
      protected java.lang.String replaceServiceInfo​(@NotNull java.lang.String input, @Nullable java.lang.String group, @Nullable de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)  
      protected abstract boolean shouldShowFullServices()  
      protected abstract boolean shouldWatchService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)  
      • Methods inherited from class java.lang.Object

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

      • services

        protected final java.util.Map<java.util.UUID,​de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot,​ServiceInfoStateWatcher.ServiceInfoState>> services
    • Constructor Detail

      • ServiceInfoStateWatcher

        public ServiceInfoStateWatcher()
    • Method Detail

      • includeExistingServices

        public void includeExistingServices()
      • handleUpdate

        protected abstract void handleUpdate()
      • shouldWatchService

        protected abstract boolean shouldWatchService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      • shouldShowFullServices

        protected abstract boolean shouldShowFullServices()
      • handle

        public void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceRegisterEvent event)
      • handle

        public void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceStartEvent event)
      • handle

        public void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceConnectNetworkEvent event)
      • handle

        public void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceDisconnectNetworkEvent event)
      • handle

        public void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceInfoUpdateEvent event)
      • handle

        public void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceUnregisterEvent event)
      • handle

        public void handle​(de.dytanic.cloudnet.driver.event.events.service.CloudServiceStopEvent event)
      • replaceServiceInfo

        protected java.lang.String replaceServiceInfo​(@NotNull
                                                      @NotNull java.lang.String input,
                                                      @Nullable
                                                      @Nullable java.lang.String group,
                                                      @Nullable
                                                      @Nullable de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      • getServices

        public java.util.Map<java.util.UUID,​de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot,​ServiceInfoStateWatcher.ServiceInfoState>> getServices()