Class ServerPropertiesRequestBody
java.lang.Object
org.odpi.openmetadata.adminservices.rest.ServerPropertiesRequestBody
ServerPropertiesRequestBody is the request body to add the basic server properties to an OMAG Server's configuration document.
-
Constructor Summary
ConstructorDescriptionDefault constructor.Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Return the description of the local server.Return the password that the local server should use on outbound REST calls (this is the password for the localServerUserId).Return the base URL for calling the local server.Return the userId that the local server should use when processing events and there is no external user driving the operation.int
Return the maximum page size supported by this server.Return the name of the organization that is running the server.int
hashCode()
Return a hash code based on the values of this object.void
setLocalServerDescription
(String localServerDescription) Set up the description of the local server.void
setLocalServerPassword
(String localServerPassword) Set up the password that the local server should use on outbound REST calls (this is the password for the localServerUserId).void
setLocalServerURL
(String localServerURL) Set up the root URL for this server that is used to construct full URL paths to calls for this server's REST interfaces.void
setLocalServerUserId
(String localServerUserId) Set up the userId that the local server should use when processing events and there is no external user driving the operation.void
setMaxPageSize
(int maxPageSize) Set up the maximum page size supported by this server.void
setOrganizationName
(String organizationName) Set up the name of the organization that is running the server.toString()
Standard toString method.
-
Constructor Details
-
ServerPropertiesRequestBody
public ServerPropertiesRequestBody()Default constructor. -
ServerPropertiesRequestBody
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Details
-
getLocalServerDescription
Return the description of the local server.- Returns:
- String server description
-
setLocalServerDescription
Set up the description of the local server.- Parameters:
localServerDescription
- String local server description
-
getOrganizationName
Return the name of the organization that is running the server.- Returns:
- String organization name
-
setOrganizationName
Set up the name of the organization that is running the server.- Parameters:
organizationName
- String organization name
-
getLocalServerURL
Return the base URL for calling the local server.- Returns:
- String URL
-
setLocalServerURL
Set up the root URL for this server that is used to construct full URL paths to calls for this server's REST interfaces. Typically, this is the URL root of the OMAG Server Platform Where the server is deployed to. However, it may be a DNS name - particularly if the server is deployed to multiple platforms for high availability (HA). The default value is "https://localhost:9443".- Parameters:
localServerURL
- String URL
-
getLocalServerUserId
Return the userId that the local server should use when processing events and there is no external user driving the operation.- Returns:
- user id
-
setLocalServerUserId
Set up the userId that the local server should use when processing events and there is no external user driving the operation.- Parameters:
localServerUserId
- string user id
-
getLocalServerPassword
Return the password that the local server should use on outbound REST calls (this is the password for the localServerUserId). Using userId's and passwords for server authentication is not suitable for production environments.- Returns:
- password in clear
-
setLocalServerPassword
Set up the password that the local server should use on outbound REST calls (this is the password for the localServerUserId). Using userId's and passwords for server authentication is not suitable for production environments.- Parameters:
localServerPassword
- password in clear
-
getMaxPageSize
public int getMaxPageSize()Return the maximum page size supported by this server.- Returns:
- int number of elements
-
setMaxPageSize
public void setMaxPageSize(int maxPageSize) Set up the maximum page size supported by this server.- Parameters:
maxPageSize
- int number of elements
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-