Class ServiceServerInfo
java.lang.Object
com.jk.services.server.commons.models.ServiceServerInfo
This class represents information about a service server, including its name,
start time, build time, associated services, and application name.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addService
(ServiceInfo serverInfo) This method adds a service to the list of service information objects representing the service hosted on the service server.This method retrieves the application name associated with the service server.This method retrieves the build time of the service server as a string.getName()
This method retrieves the name of the service server.This method retrieves the list of service information objects representing the service hosted on the service server.This method retrieves the start time of the service server as a string.void
setAppName
(String appName) This method sets the application name associated with the service server to the provided value.void
setBuildTime
(String buildTime) This method sets the build time of the service server to the provided value..void
This method sets the name of the service server to the provided value.void
setServices
(List<ServiceInfo> services) This method sets the list of service information objects representing the service hosted on the service server to the provided list.void
setStartTime
(String startTime) This method sets the start time of the service server to the provided value.
-
Constructor Details
-
ServiceServerInfo
public ServiceServerInfo()
-
-
Method Details
-
getStartTime
This method retrieves the start time of the service server as a string.- Returns:
- the start time of the service server as a string.
-
setStartTime
This method sets the start time of the service server to the provided value.- Parameters:
startTime
- Specifies the new start time of the service server as a string.
-
getBuildTime
This method retrieves the build time of the service server as a string.- Returns:
- the build time of the service server as a string.
-
setBuildTime
This method sets the build time of the service server to the provided value..- Parameters:
buildTime
- Specifies the new build time of the service server as a string.
-
getName
This method retrieves the name of the service server.- Returns:
- the name of the service server.
-
setName
This method sets the name of the service server to the provided value.- Parameters:
name
- Specifies the new name of the service server.
-
getServices
This method retrieves the list of service information objects representing the service hosted on the service server.- Returns:
- the list of service information objects representing the service hosted on the service server.
-
setServices
This method sets the list of service information objects representing the service hosted on the service server to the provided list.- Parameters:
services
- Specifies the new list of service information objects representing the service hosted on the service server.
-
addService
This method adds a service to the list of service information objects representing the service hosted on the service server.- Parameters:
serverInfo
- Specifies the service to be added.
-
getAppName
This method retrieves the application name associated with the service server.- Returns:
- the application name associated with the service server.
-
setAppName
This method sets the application name associated with the service server to the provided value.- Parameters:
appName
- Specifies the new application name associated with the service server.
-