Class ServiceId
- java.lang.Object
-
- de.dytanic.cloudnet.driver.service.ServiceId
-
- All Implemented Interfaces:
de.dytanic.cloudnet.common.INameable,SerializableObject
public final class ServiceId extends java.lang.Object implements de.dytanic.cloudnet.common.INameable, SerializableObject
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<java.lang.String>allowedNodesprotected ServiceEnvironmentTypeenvironmentprotected java.lang.StringnodeUniqueIdprotected java.lang.StringtaskNameprotected inttaskServiceIdprotected java.util.UUIDuniqueId
-
Constructor Summary
Constructors Constructor Description ServiceId()ServiceId(@NotNull java.util.UUID uniqueId, java.lang.String nodeUniqueId, java.lang.String taskName, int taskServiceId, ServiceEnvironmentType environment)ServiceId(@NotNull java.util.UUID uniqueId, java.lang.String nodeUniqueId, java.lang.String taskName, java.util.Collection<java.lang.String> allowedNodes, int taskServiceId, ServiceEnvironmentType environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>getAllowedNodes()ServiceEnvironmentTypegetEnvironment()java.lang.StringgetName()java.lang.StringgetNodeUniqueId()java.lang.StringgetTaskName()intgetTaskServiceId()java.util.UUIDgetUniqueId()voidread(@NotNull ProtocolBuffer buffer)voidsetNodeUniqueId(java.lang.String nodeUniqueId)voidsetTaskServiceId(int taskServiceId)voidwrite(@NotNull ProtocolBuffer buffer)
-
-
-
Field Detail
-
uniqueId
protected java.util.UUID uniqueId
-
taskName
protected java.lang.String taskName
-
taskServiceId
protected int taskServiceId
-
nodeUniqueId
protected java.lang.String nodeUniqueId
-
allowedNodes
protected java.util.Collection<java.lang.String> allowedNodes
-
environment
protected ServiceEnvironmentType environment
-
-
Constructor Detail
-
ServiceId
public ServiceId(@NotNull @NotNull java.util.UUID uniqueId, java.lang.String nodeUniqueId, java.lang.String taskName, int taskServiceId, ServiceEnvironmentType environment)
-
ServiceId
public ServiceId(@NotNull @NotNull java.util.UUID uniqueId, java.lang.String nodeUniqueId, java.lang.String taskName, java.util.Collection<java.lang.String> allowedNodes, int taskServiceId, ServiceEnvironmentType environment)
-
ServiceId
public ServiceId()
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacede.dytanic.cloudnet.common.INameable
-
getUniqueId
public java.util.UUID getUniqueId()
-
getNodeUniqueId
public java.lang.String getNodeUniqueId()
-
setNodeUniqueId
@Internal public void setNodeUniqueId(java.lang.String nodeUniqueId)
-
getAllowedNodes
public java.util.Collection<java.lang.String> getAllowedNodes()
-
getTaskName
public java.lang.String getTaskName()
-
getTaskServiceId
public int getTaskServiceId()
-
setTaskServiceId
@Internal public void setTaskServiceId(int taskServiceId)
-
getEnvironment
public ServiceEnvironmentType getEnvironment()
-
write
public void write(@NotNull @NotNull ProtocolBuffer buffer)- Specified by:
writein interfaceSerializableObject
-
read
public void read(@NotNull @NotNull ProtocolBuffer buffer)- Specified by:
readin interfaceSerializableObject
-
-