Package net.webpdf.wsclient.openapi
Class ServerConfigShutdown
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ServerConfigShutdown
-
public class ServerConfigShutdown extends Object
Defines the port and command for the server shutdown.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COMMANDstatic StringJSON_PROPERTY_PORTstatic StringJSON_PROPERTY_RESTART
-
Constructor Summary
Constructors Constructor Description ServerConfigShutdown()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerConfigShutdowncommand(String command)booleanequals(Object o)@Nullable StringgetCommand()The command, that shall be listened for.@Nullable IntegergetPort()The port, that shall listen for shutdown commands.@Nullable BooleangetRestart()When set to true, the server will restart upon the shutdown's completion.inthashCode()ServerConfigShutdownport(Integer port)ServerConfigShutdownrestart(Boolean restart)voidsetCommand(String command)voidsetPort(Integer port)voidsetRestart(Boolean restart)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_COMMAND
public static final String JSON_PROPERTY_COMMAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORT
public static final String JSON_PROPERTY_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESTART
public static final String JSON_PROPERTY_RESTART
- See Also:
- Constant Field Values
-
-
Method Detail
-
command
public ServerConfigShutdown command(String command)
-
getCommand
@Nullable public @Nullable String getCommand()
The command, that shall be listened for.- Returns:
- command
-
setCommand
public void setCommand(String command)
-
port
public ServerConfigShutdown port(Integer port)
-
getPort
@Nullable public @Nullable Integer getPort()
The port, that shall listen for shutdown commands.- Returns:
- port
-
setPort
public void setPort(Integer port)
-
restart
public ServerConfigShutdown restart(Boolean restart)
-
getRestart
@Nullable public @Nullable Boolean getRestart()
When set to true, the server will restart upon the shutdown's completion. Otherwise, the server will be stopped after the command.- Returns:
- restart
-
setRestart
public void setRestart(Boolean restart)
-
-