public class ServerInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<Command> |
commands
Executed Linux commands to fetch and fill the information.
|
java.util.List<FetchedData> |
dataList
List of data given to the administrator.
|
java.lang.String |
endpoint |
java.util.List<java.lang.String> |
messages
List of messages given to the administrator.
|
java.lang.String |
plugin |
Server |
server
The server to which belongs the information
|
java.lang.String |
service |
Status |
status
Status of the information
|
Constructor and Description |
---|
ServerInformation() |
ServerInformation(Server server,
java.lang.String plugin,
java.lang.String service,
java.lang.String endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
addData(FetchedData data)
Adds a new data to the list of data.
|
void |
addMessage(java.lang.String message)
Adds a new message to the list of messages.
|
boolean |
hasData() |
void |
setStatus(Status status)
Sets a new status to the current server information if the given status
has a greater value than the current status.
|
public java.lang.String plugin
public java.lang.String service
public java.lang.String endpoint
public Server server
public Status status
public java.util.List<java.lang.String> messages
public java.util.List<FetchedData> dataList
public java.util.List<Command> commands
public ServerInformation()
public ServerInformation(Server server, java.lang.String plugin, java.lang.String service, java.lang.String endpoint)
public void addMessage(java.lang.String message)
message
- The message to be insertedpublic void addData(FetchedData data)
data
- The data to be insertedpublic void setStatus(Status status)
status
- the new statuspublic boolean hasData()
Copyright © 2021. All Rights Reserved.