The AGS can be stopped by using the API dashboard, the REST API or through the shutdown-server script:
Using API dashboard
- Login to the API dashboard.
- Navigate to Admin > Server Status.
- Click the Gateway Server tab.
- Select the gateway name and click the Stop Active Server button.
Figure 1: Stopping AGS from the dashboard
Using REST API
- Use the default SwaggerUI: http://localhost:1981/swaggerui/
- Navigate to Servers Resource.
- Look for the API /servers/{serverName}/{serverMode} with the description "Perform action (RESTART, SHUTDOWN)" on the specified server.
- Provide the API Access Key, Server Name, mode (AGS in this case), and action as shutdown in the action object.
Figure 2: Stopping AGS using the REST API
This API can be executed from any other client as well and execute the URL: http://localhost:1981/api/ams/servers/{servername}/{servermode}
Using Script
The AGS can be shut down using the shutdown-server script present in the <fiorano_installation_dir>/esb/server/bin folder.
Provide the URL along with the peer name.
The below example of shutting down the Peer Server(s) involves connecting to an Active Server whose URL is specified by the "-url" parameter.
The following options can also be specified if the user wants to shut down the AGS using an RMI connection. This involves connecting directly to the AGS to initiate the shutdown.
- -connectorType: Connection type to server. Pass RMI for shutting down servers using RMI connection.
- -address: IP Address of server
- -rmiPort: RMI port of server