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.int
getPort()
Returns the Service Manager port.boolean
Returnstrue
if the process is linked to the Service Manager, false otherwise.void
setLinkedToServiceManager
(boolean linkedToServiceManager) Sets the "Linked to the Service Manager" flag.void
Sets the name of the entry in the Service Manager.void
Sets the Service Manager Phrase.void
setPort
(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()Returnstrue
if 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.
-