Class ServerAdminCommandProvider
java.lang.Object
org.wso2.carbon.server.admin.internal.ServerAdminCommandProvider
- All Implemented Interfaces:
org.eclipse.osgi.framework.console.CommandProvider
public class ServerAdminCommandProvider
extends Object
implements org.eclipse.osgi.framework.console.CommandProvider
Equinox console commands for Server Administration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid_dumpAdminServices(org.eclipse.osgi.framework.console.CommandInterpreter ci) void_ecbnm(org.eclipse.osgi.framework.console.CommandInterpreter ci) Method to change the state of a node from "maintenance" to "normal"void_endCarbonMaintenance(org.eclipse.osgi.framework.console.CommandInterpreter ci) Method to change the state of a node from "maintenance" to "normal"void_listAdminServices(org.eclipse.osgi.framework.console.CommandInterpreter ci) List Admin Services deployed on this servervoid_listHiddenServices(org.eclipse.osgi.framework.console.CommandInterpreter ci) List Hidden Services deployed on this servervoid_listSystemServicesInfo(org.eclipse.osgi.framework.console.CommandInterpreter ci) void_rcbn(org.eclipse.osgi.framework.console.CommandInterpreter ci) Forcefully restart this Carbon instancevoid_rcbng(org.eclipse.osgi.framework.console.CommandInterpreter ci) Gracefully restart this Carbon instance.void_restartCarbon(org.eclipse.osgi.framework.console.CommandInterpreter ci) Forcefully restart this Carbon instancevoid_restartCarbonGracefully(org.eclipse.osgi.framework.console.CommandInterpreter ci) Gracefully restart this Carbon instance.void_scbn(org.eclipse.osgi.framework.console.CommandInterpreter ci) Forcefully shutdown this Carbon instancevoid_scbng(org.eclipse.osgi.framework.console.CommandInterpreter ci) Gracefully shutdown this Carbon instance All client connections will be served before shutting down the servervoid_scbnm(org.eclipse.osgi.framework.console.CommandInterpreter ci) Method to switch a node to maintenance mode.void_shutdownCarbon(org.eclipse.osgi.framework.console.CommandInterpreter ci) Forcefully shutdown this Carbon instancevoid_shutdownCarbonGracefully(org.eclipse.osgi.framework.console.CommandInterpreter ci) Gracefully shutdown this Carbon instance All client connections will be served before shutting down the servervoid_startCarbonMaintenance(org.eclipse.osgi.framework.console.CommandInterpreter ci) Method to switch a node to maintenance mode.getHelp()
-
Constructor Details
-
ServerAdminCommandProvider
public ServerAdminCommandProvider()
-
-
Method Details
-
_restartCarbon
public void _restartCarbon(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception Forcefully restart this Carbon instance- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while restarting
-
_rcbn
Forcefully restart this Carbon instance- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while restarting
-
_shutdownCarbon
public void _shutdownCarbon(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception Forcefully shutdown this Carbon instance- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while shutting down
-
_scbn
Forcefully shutdown this Carbon instance- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while shutting down
-
_restartCarbonGracefully
public void _restartCarbonGracefully(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception Gracefully restart this Carbon instance. All client connections will be served before restarting the server- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while restarting
-
_rcbng
Gracefully restart this Carbon instance. All client connections will be served before restarting the server- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while restarting
-
_shutdownCarbonGracefully
public void _shutdownCarbonGracefully(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception Gracefully shutdown this Carbon instance All client connections will be served before shutting down the server- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while shutting down
-
_scbng
Gracefully shutdown this Carbon instance All client connections will be served before shutting down the server- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurs while shutting down
-
_startCarbonMaintenance
public void _startCarbonMaintenance(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception Method to switch a node to maintenance mode. Here is the sequence of events:- Client calls this method
- The server stops accepting new requests/connections, but continues to stay alive so that old requests invalid input: '&' connections can be served
- Once all requests have been processed, the method returnsinvalid input: '<'/li
- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurred while switching to maintenace mode
-
_scbnm
Method to switch a node to maintenance mode. Here is the sequence of events:- Client calls this method
- The server stops accepting new requests/connections, but continues to stay alive so that old requests invalid input: '&' connections can be served
- Once all requests have been processed, the method returnsinvalid input: '<'/li
- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurred while switching to maintenace mode
-
_endCarbonMaintenance
public void _endCarbonMaintenance(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception Method to change the state of a node from "maintenance" to "normal"- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurred while switching to normal mode
-
_ecbnm
Method to change the state of a node from "maintenance" to "normal"- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurred while switching to normal mode
-
_listAdminServices
public void _listAdminServices(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception List Admin Services deployed on this server- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurred while listing admin services
-
_listSystemServicesInfo
public void _listSystemServicesInfo(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception - Throws:
Exception
-
_dumpAdminServices
public void _dumpAdminServices(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception - Throws:
Exception
-
_listHiddenServices
public void _listHiddenServices(org.eclipse.osgi.framework.console.CommandInterpreter ci) throws Exception List Hidden Services deployed on this server- Parameters:
ci- CommandInterpreter- Throws:
Exception- If an error occurred while listing hidden services
-
getHelp
- Specified by:
getHelpin interfaceorg.eclipse.osgi.framework.console.CommandProvider
-