Class ServiceServerInfo

java.lang.Object
com.jk.services.server.commons.models.ServiceServerInfo

public class ServiceServerInfo extends Object
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServiceServerInfo

      public ServiceServerInfo()
  • Method Details

    • getStartTime

      public String 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

      public void setStartTime(String startTime)
      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

      public 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

      public void setBuildTime(String buildTime)
      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

      public String getName()
      This method retrieves the name of the service server.
      Returns:
      the name of the service server.
    • setName

      public void setName(String name)
      This method sets the name of the service server to the provided value.
      Parameters:
      name - Specifies the new name of the service server.
    • getServices

      public List<ServiceInfo> 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

      public 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.
      Parameters:
      services - Specifies the new list of service information objects representing the service hosted on the service server.
    • addService

      public void addService(ServiceInfo serverInfo)
      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

      public String getAppName()
      This method retrieves the application name associated with the service server.
      Returns:
      the application name associated with the service server.
    • setAppName

      public void setAppName(String appName)
      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.