Class InternalSubServer
java.lang.Object
net.md_5.bungee.BungeeServerInfo
net.ME1312.SubServers.Bungee.Host.ServerImpl
net.ME1312.SubServers.Bungee.Host.SubServerImpl
net.ME1312.SubServers.Bungee.Host.Internal.InternalSubServer
- All Implemented Interfaces:
ServerInfo
,ExtraDataHandler<String>
,ClientHandler
,SubDataSerializable
,Server
,SubServer
Internal SubServer Class
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.ME1312.SubServers.Bungee.Host.SubServer
SubServer.LoggedCommand, SubServer.StopAction
-
Field Summary
Fields inherited from class net.ME1312.SubServers.Bungee.Host.SubServerImpl
DISALLOWED_COMMANDS, registered, started, stopping, updating
-
Constructor Summary
ModifierConstructorDescriptionprotected
InternalSubServer
(InternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) Super Method 2 (newest)protected
InternalSubServer
(InternalHost host, String name, boolean enabled, Integer port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) Super Method 1 (oldest) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Commands the Serverstatic InternalSubServer
construct
(InternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) Creates an Internal SubServerprotected int
Edits the ServerGets all the commands that were sent to this Server successfullyGet the Server's Executable StringgetHost()
Grabs the Host of the ServerGet Process LoggergetPath()
Get the Server Directory PathGet the action the Server will take when it stopsGrab the Command to Stop the Serverboolean
If the Server is Enabledboolean
If the Server is Loggingboolean
If the Server is Runningvoid
setDisplayName
(String value) Sets the Display Name for this Servervoid
setEnabled
(boolean value) Set if the Server is Enabledvoid
setLogging
(boolean value) Set if the Server is Loggingvoid
setStopAction
(SubServer.StopAction action) Set the action the Server will take when it stopsvoid
setStopCommand
(String value) Set the Command that Stops the Serverboolean
Starts the Serverboolean
Stops the Serverboolean
Terminates the Servervoid
waitFor()
Waits for the Server to StopMethods inherited from class net.ME1312.SubServers.Bungee.Host.SubServerImpl
edit, equals, forSubData, getCurrentIncompatibilities, getIncompatibilities, getTemplate, isAvailable, isCompatible, isOnline, isRegistered, isStopping, permaEdit, setTemplate, setTemplate, toggleCompatibility
Methods inherited from class net.ME1312.SubServers.Bungee.Host.ServerImpl
addExtra, addGroup, canAccess, command, construct, getDisplayName, getExtra, getExtra, getGroups, getRemotePlayers, getSignature, getSubData, getWhitelist, hasExtra, isHidden, isWhitelisted, persist, removeExtra, removeGroup, removeSubData, setHidden, setMotd, setRestricted, setSubData, unwhitelist, whitelist
Methods inherited from class net.md_5.bungee.BungeeServerInfo
addPlayer, cachePing, getAddress, getMotd, getName, getPacketQueue, getPermission, getPlayers, getSocketAddress, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.ME1312.SubData.Server.ClientHandler
getSubData, removeSubData
Methods inherited from interface net.ME1312.Galaxi.Library.ExtraDataHandler
addExtra, getExtra, getExtra, hasExtra, removeExtra
Methods inherited from interface net.ME1312.SubServers.Bungee.Host.Server
addGroup, command, command, getDisplayName, getGroups, getMotd, getRemotePlayers, getSignature, getWhitelist, isHidden, isRestricted, isWhitelisted, persist, removeGroup, setHidden, setMotd, setRestricted, setSubData, unwhitelist, whitelist
Methods inherited from interface net.md_5.bungee.api.config.ServerInfo
canAccess, getAddress, getName, getPermission, getPlayers, getSocketAddress, ping, sendData, sendData
Methods inherited from interface net.ME1312.SubServers.Bungee.Host.SubServer
edit, getFullPath, isEditable, permaEdit, start, stop, terminate
-
Constructor Details
-
InternalSubServer
protected InternalSubServer(InternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) throws InvalidServerException Super Method 2 (newest)- Throws:
InvalidServerException
- See Also:
-
InternalSubServer
protected InternalSubServer(InternalHost host, String name, boolean enabled, Integer port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) throws InvalidServerException Super Method 1 (oldest)- Throws:
InvalidServerException
- See Also:
-
-
Method Details
-
construct
public static InternalSubServer construct(InternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) throws InvalidServerException Creates an Internal SubServer- Parameters:
host
- Hostname
- Nameenabled
- Enabled Statusport
- Port Numbermotd
- MOTDlog
- Logging Statusdirectory
- Directoryexecutable
- Executable Stringstopcmd
- Stop Commandhidden
- Hidden Statusrestricted
- Restricted Status- Throws:
InvalidServerException
-
start
Description copied from interface:SubServer
Starts the Server- Parameters:
player
- Player who Started- Returns:
- Success Status
-
stop
Description copied from interface:SubServer
Stops the Server- Parameters:
player
- Player who Stopped- Returns:
- Success Status
-
terminate
Description copied from interface:SubServer
Terminates the Server- Parameters:
player
- Player who Terminated- Returns:
- Success Status
-
command
Description copied from interface:Server
Commands the Server- Parameters:
player
- Player who's Commandingcommand
- Command to Send
-
edit
Description copied from class:SubServerImpl
Edits the Server- Overrides:
edit
in classSubServerImpl
- Parameters:
player
- Player Editingedit
- Editsperma
- Saves Changes- Returns:
- Success Status
-
waitFor
Description copied from interface:SubServer
Waits for the Server to Stop- Throws:
InterruptedException
-
isRunning
public boolean isRunning()Description copied from interface:SubServer
If the Server is Running- Returns:
- Running Status
-
setDisplayName
Description copied from interface:Server
Sets the Display Name for this Server- Specified by:
setDisplayName
in interfaceServer
- Overrides:
setDisplayName
in classServerImpl
- Parameters:
value
- Value (or null to reset)
-
getHost
Description copied from interface:SubServer
Grabs the Host of the Server- Returns:
- The Host
-
isEnabled
public boolean isEnabled()Description copied from interface:SubServer
If the Server is Enabled- Returns:
- Enabled Status
-
setEnabled
public void setEnabled(boolean value) Description copied from interface:SubServer
Set if the Server is Enabled- Parameters:
value
- Value
-
isLogging
public boolean isLogging()Description copied from interface:SubServer
If the Server is Logging- Returns:
- Logging Status
-
setLogging
public void setLogging(boolean value) Description copied from interface:SubServer
Set if the Server is Logging- Parameters:
value
- Value
-
getLogger
Description copied from interface:SubServer
Get Process Logger -
getCommandHistory
Description copied from interface:SubServer
Gets all the commands that were sent to this Server successfully- Returns:
- Command History
-
getPath
Description copied from interface:SubServer
Get the Server Directory Path- Returns:
- Server Directory Path
-
getExecutable
Description copied from interface:SubServer
Get the Server's Executable String- Returns:
- Executable String
-
getStopCommand
Description copied from interface:SubServer
Grab the Command to Stop the Server- Returns:
- Stop Command
-
setStopCommand
Description copied from interface:SubServer
Set the Command that Stops the Server- Parameters:
value
- Value
-
getStopAction
Description copied from interface:SubServer
Get the action the Server will take when it stops- Returns:
- Stop Action
-
setStopAction
Description copied from interface:SubServer
Set the action the Server will take when it stops- Parameters:
action
- Stop Action
-