Using Admin APIs

To programmatically configure the Server Monitoring server, use the ServerMonitoring.cfc.

The following Administrator APIs are added in this release:

API

Description

setMonitoringServerPort(port);

Sets the port information for the monitoring server.

getMonitoringServerPort();

Gets details of the port to which the monitoring server listens.

getMonitoringServerProtocol();

Gets the protocol details for the monitoring server.

enableMonitoringServer();

Enables the monitoring server and starts it if not running.

stopMonitoringServer();

Stops the monitoring server

startMonitoringServer();

Starts the monitoring server

disableMonitoringServer();

Disables the monitoring server and stops it if it is running

isMonitoringServerEnabled();

Indicates if the monitoring server is enabled

isMonitoringServerRunning();

Indicates if the monitoring server is running

configureMonitoringServer(flag, port);

Enables monitoring server and sets port information