Package de.dytanic.cloudnet.ext.bridge
Class ServiceInfoStateWatcher
- java.lang.Object
-
- de.dytanic.cloudnet.ext.bridge.ServiceInfoStateWatcher
-
public abstract class ServiceInfoStateWatcher extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceInfoStateWatcher.ServiceInfoState
-
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
-
Constructor Summary
Constructors Constructor Description ServiceInfoStateWatcher()
-
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()voidhandle(de.dytanic.cloudnet.driver.event.events.service.CloudServiceConnectNetworkEvent event)voidhandle(de.dytanic.cloudnet.driver.event.events.service.CloudServiceDisconnectNetworkEvent event)voidhandle(de.dytanic.cloudnet.driver.event.events.service.CloudServiceInfoUpdateEvent event)voidhandle(de.dytanic.cloudnet.driver.event.events.service.CloudServiceRegisterEvent event)voidhandle(de.dytanic.cloudnet.driver.event.events.service.CloudServiceStartEvent event)voidhandle(de.dytanic.cloudnet.driver.event.events.service.CloudServiceStopEvent event)voidhandle(de.dytanic.cloudnet.driver.event.events.service.CloudServiceUnregisterEvent event)protected abstract voidhandleUpdate()voidincludeExistingServices()protected java.lang.StringreplaceServiceInfo(@NotNull java.lang.String input, @Nullable java.lang.String group, @Nullable de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)protected abstract booleanshouldShowFullServices()protected abstract booleanshouldWatchService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
-
-
-
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
-
-
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()
-
-