Package org.wso2.carbon.service.mgt
Interface ServiceAdminMBean
- All Known Implementing Classes:
ServiceAdmin
public interface ServiceAdminMBean
MBean interface for exposing Service Adminstration functionalities
-
Method Summary
Modifier and TypeMethodDescriptionintGet the currently active number of servicesintGet the number of faulty servicesintGet the currently inactive number of servicesvoidstartService(String serviceName) Start the service specified byserviceNamevoidstopService(String serviceName) Stop the service specified byserviceName
-
Method Details
-
getNumberOfActiveServices
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
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
Get the number of faulty services- Returns:
- number of faulty services
- Throws:
Exception- If an error occurs
-
startService
Start the service specified byserviceName- Parameters:
serviceName- Name of the service to be restarted- Throws:
Exception- If an error occurs while starting the service
-
stopService
Stop the service specified byserviceName- Parameters:
serviceName- Name of the service to be restarted- Throws:
Exception- If an error occurs while stopping the service
-