Class ServiceDeployment
- java.lang.Object
-
- de.dytanic.cloudnet.common.document.gson.BasicJsonDocPropertyable
-
- de.dytanic.cloudnet.driver.serialization.json.SerializableJsonDocPropertyable
-
- de.dytanic.cloudnet.driver.service.ServiceDeployment
-
- All Implemented Interfaces:
de.dytanic.cloudnet.common.document.gson.IJsonDocPropertyable,SerializableObject
public final class ServiceDeployment extends SerializableJsonDocPropertyable implements SerializableObject
Defines the properties for a service that is copied to a specified template. It contains theServiceTemplateandexcludesfor excluded files/directories. For excluded files, just add the path to the file to the excludes (e.g. "spigot.jar"). For excluded directories, the path has to end with a "/" (e.g. "plugins/").
-
-
Constructor Summary
Constructors Constructor Description ServiceDeployment()ServiceDeployment(ServiceTemplate template, java.util.Collection<java.lang.String> excludes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>getExcludes()ServiceTemplategetTemplate()voidread(@NotNull ProtocolBuffer buffer)voidwrite(@NotNull ProtocolBuffer buffer)
-
-
-
Constructor Detail
-
ServiceDeployment
public ServiceDeployment(ServiceTemplate template, java.util.Collection<java.lang.String> excludes)
-
ServiceDeployment
public ServiceDeployment()
-
-
Method Detail
-
getTemplate
public ServiceTemplate getTemplate()
-
getExcludes
public java.util.Collection<java.lang.String> getExcludes()
-
write
public void write(@NotNull @NotNull ProtocolBuffer buffer)- Specified by:
writein interfaceSerializableObject- Overrides:
writein classSerializableJsonDocPropertyable
-
read
public void read(@NotNull @NotNull ProtocolBuffer buffer)- Specified by:
readin interfaceSerializableObject- Overrides:
readin classSerializableJsonDocPropertyable
-
-