home OpenMash Documentations
Class Index Method Index Class Hierarchy

TCL CLASS

ServiceManagerApplication

Implementation of a simple service manager. This is a small GUI program that lists available services, and allow users to kill the services.

SUPERCLASSES

Application

METHODS

init, Quit, InitArguments, InitResources, Kill, NewConnection, ServiceUpdateCallback

init

ServiceManagerApplication instproc init { winPath argv }

Initialized UI and create a service manager and sds session to listen to service announcement.

Quit

ServiceManagerApplication instproc Quit { }

Called when user click on the Quit button. Cleanup the session object and the manager object.

InitArguments

InitResources

ServiceManagerApplication instproc InitArguments { options }

ServiceManagerApplication instproc InitResources { options }

Initialize default arguments. The only one we support are arguments to configure SDS session.

Kill

ServiceManagerApplication instproc Kill { host port }

Called when user wants to kill a service at $host/$port. We first establish a connection with the service, then send a QUIT command to the service.

NewConnection

ServiceManagerApplication instproc NewConnection { service }

Callback when a new connection is established. Nothing to see here. Move along.

ServiceUpdateCallback

ServiceManagerApplication instproc ServiceUpdateCallback { }

This is called whenever a new service announcement is received. We update the UI that shows a list of services.

INHERITED METHODS

search_font, init_local, user_hook, instance, name, class, toplevel

FILENAME

tcl/dc/servmgr/application-servmgr.tcl


Generated on Mon Apr 12 04:04:38 PDT 2004