IBM Cognos Sample Programs

DispatcherUI.java - View and set dispatcher setting.

The Java DispatcherUI sample program will display dispatcher properties and also set diapatcher settings.


Dependent Files

Associated files are contained under the java sample folder.
Additional files required for running are identified in the CLASSPATH definitions in run.bat or run.sh file.

How To Run The Sample Program

Double click on the file run.bat for WINDOWS or run.sh for UNIX.

A window will be opened containing:
    - Dispatcher Options dropdown box
    - Dispatcher Search Path dropdown box
    - Run Option command button
    - URL text box
    - Output Pane

Select a Samples Option and click on the 'Run Option' button to run the sample program.

Expected Results

The 'Ping Dispatcher' option will display the dispatcher version.
The 'Dispatcher Properties' option will display several dispatcher properties.
The 'Start Service' option will start a Service identified in the service name combo box
The 'Stop Service' option will stop a Service identified in the service name combo box
The 'Set Logging Level' option will set a Service logging level to the value that is identified in the logging level combo box.
The 'Set Maximum Processes' option will set a Service maximum number of processes to the value that is identified in the maximum processes value combo box.

Documentation

The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the chapter titled 'Methods' and the appendix titled 'Code Samples and Language-Specific Coding Practices'.

Please note that the samples are not intended to be treated as end-user applications. Refer to the sample code for examples of how to use the API when developing your own applications.