A.10 SHUTDOWN Command

The SHUTDOWN command manages the life cycle of a server instance by gracefully shutting down the specified Oracle Stream Analytics server instance. A graceful shutdown gives Oracle Stream Analytics time to complete certain application processing currently in progress.

The -url connection argument specifies the particular Oracle Stream Analytics server instance that you want to shut down, based on the host and jmxport values. See Connection Arguments for details.

Syntax

java wlevs.Admin 
    [ Connection Arguments ]
    [ User Credentials Arguments ]
    [ Common Arguments ] 
    SHUTDOWN [-scheduleAt seconds] 

Table A-4 SHUTDOWN Arguments

Argument Definition
-scheduleAt seconds

Specifies the number of seconds after which the Oracle Stream Analytics instance shuts down.

If you do not specify this parameter, the server instance shuts down immediately.

Example

The following example instructs the specified Oracle Stream Analytics instance to shut down in ten minutes:

java wlevs.Admin 
     -url service:jmx:msarmi://localhost:9002/jndi/jmxconnector 
     -username wlevs -password wlevs 
     SHUTDOWN -scheduleAt 600

After you issue the command, the server instance prints messages to its log file and to its standard out. The messages indicate that the server state is changing and that the shutdown sequence is starting.