Remote administration
The SST Remote Administration facilities allow you to monitor and configure an SST infrastructure from any HTML-enabled desktop. This is done by embedding a lightweight HTTP server in the target application and registering application-defined SST components for remote administration.
Remote administration as a whole is started by executing the following expression:
SstAdministrationServer default startUp.
This starts an administration server on the local machine at port 9001 (by default). The server is then accessed by pointing your web browser at the URL 'http://hostname:9001/admin/'. The startUp method will return an SstError if the server fails to start for some reason.
The administration server can only monitor components of SST which are pre-defined to be administrable. These include: SstApplicationContext, SstInvocationHandler, and SstLocalEndpoint. Note that administrable objects often contain components which can be monitored and configured (for example, transports). The behavior of a sub-component is monitored or controlled by administering its parent. SstAdministrationServer provides special protocol which, when given an administrable component, installs the component and all its sub-components into the administration system.
Below is a code fragment which shows how to set up administration on a variety of components:
SstAdministrationServer default
administrateApplicationContext: Example context;
administrateHandler: BankingExample invocationHandler as: 'bankHandler';
administrateEndpoint: SendmailExample localEndpoint as: 'sendmail replacement'
Using the above protocol, administrating an application context causes all its invocation handlers and endpoints to be administrated.
Likewise, administrating an invocation handler causes its endpoint to be administrated. The following code shuts down an administration server:
SstAdministrationServer default shutDown
Administrators also respond to clear.
Last modified date: 01/29/2015