The AGS can be stopped by using the API dashboard, the REST API or through the shutdown-server script:
Using API dashboard
- In the API dashboard, go to the Administration page.
- Click the Server Status icon on the left side of the page.
- Click the Gateway Server tab, choose the server from the Gateway Name drop-down, 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 the server. Pass RMI for shutting down servers using RMI connection.
- -address: IP Address of the server.
- -rmiPort: RMI port of the server.