Interface ServiceAdminMBean

All Known Implementing Classes:
ServiceAdmin

public interface ServiceAdminMBean
MBean interface for exposing Service Adminstration functionalities
  • Method Details

    • getNumberOfActiveServices

      int getNumberOfActiveServices() throws Exception
      Get the currently active number of services
      Returns:
      Currently active number of services
      Throws:
      Exception - If an error occurs while getting the service count
    • getNumberOfInactiveServices

      int getNumberOfInactiveServices() throws Exception
      Get the currently inactive number of services
      Returns:
      Currently inactive number of services
      Throws:
      Exception - If an error occurs while getting the service count
    • getNumberOfFaultyServices

      int getNumberOfFaultyServices() throws Exception
      Get the number of faulty services
      Returns:
      number of faulty services
      Throws:
      Exception - If an error occurs
    • startService

      void startService(String serviceName) throws Exception
      Start the service specified by serviceName
      Parameters:
      serviceName - Name of the service to be restarted
      Throws:
      Exception - If an error occurs while starting the service
    • stopService

      void stopService(String serviceName) throws Exception
      Stop the service specified by serviceName
      Parameters:
      serviceName - Name of the service to be restarted
      Throws:
      Exception - If an error occurs while stopping the service