Package com.uc4.api.objects
Class ServerAttributes
java.lang.Object
com.uc4.api.objects.ServerAttributes
This class represents the "Attributes" tab of server objects.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name in the Service Manager.Returns the Service Manager Phrase.intgetPort()Returns the Service Manager port.booleanReturnstrueif the process is linked to the Service Manager, false otherwise.voidsetLinkedToServiceManager(boolean linkedToServiceManager) Sets the "Linked to the Service Manager" flag.voidSets the name of the entry in the Service Manager.voidSets the Service Manager Phrase.voidsetPort(int port) Sets the Service Manager port.
-
Method Details
-
getPhrase
Returns the Service Manager Phrase.- Returns:
- Service Manager Phrase or an empty String, never null.
-
setPhrase
Sets the Service Manager Phrase.- Parameters:
phrase- Max 25 characters.
-
getName
Returns the name in the Service Manager.- Returns:
- Name or an empty String if not set.
-
setName
Sets the name of the entry in the Service Manager.- Parameters:
name- Max. 25 characters
-
getPort
public int getPort()Returns the Service Manager port.- Returns:
- Port
-
setPort
public void setPort(int port) Sets the Service Manager port.- Parameters:
port- Port
-
isLinkedToServiceManager
public boolean isLinkedToServiceManager()Returnstrueif the process is linked to the Service Manager, false otherwise.- Returns:
- Linked to the Service Manager?
-
setLinkedToServiceManager
public void setLinkedToServiceManager(boolean linkedToServiceManager) Sets the "Linked to the Service Manager" flag.- Parameters:
linkedToServiceManager- true if this server should be linked to the Service Manager.
-