ServerData
Encapsulates a ServerData object and provides functionalities.
Methods
getBuild
getBuild():
string
Returns the build identifier of this server, or an empty String.
Returns
stringthe build identifier of this server, or an empty String.
getDataDir
getDataDir():
string
Returns the path of the data dir, or an empty String.
Returns
stringthe path of the data dir, or an empty String.
getDrainMessage
getDrainMessage():
string
Returns the message which is shown on the client login screen if drain mode is activated, or an empty String.
Returns
stringthe message which is shown on the client login screen if drain mode is activated, or an empty String
getEdition
getEdition():
string
Returns the kind of editition (COMMUNITY, SIGNEDLICENSE etc...). or an empty String.
Returns
stringnever null.
getHomeDir
getHomeDir():
string
Returns the home directory where the server resides in.
Returns
stringnever null.
getLicenseId
getLicenseId():
string
Returns the servers license id.
Returns
stringnever null.
getLogDir
getLogDir():
string
Returns the directory where the log files are located.
Returns
stringnever null.
getServerId
getServerId():
string
Returns the unique ID of this server, or an empty String.
Returns
stringthe unique ID of this server, or an empty String
getServerName
getServerName():
string
Returns the name of the server.
Returns
stringnever null.
getStartupTime
getStartupTime():
number
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT.
Returns
numbernever null.
getStatus
getStatus():
string
Returns the Status of the Server.
Returns
stringnever null
getVersion
getVersion():
string
Returns the version of the server.
Returns
stringnever null.
isDrainModeActive
isDrainModeActive():
boolean
Returns true, if the drain mode is active.
Returns
booleantrue or false.