home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)csnameserv.tcl /main/hindenburg/7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)csnameserv.tcl /main/hindenburg/7 18 Oct 1996 Copyright 1996 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "csserverno.tcl"
-
- Class CSNameServerNode : {CSServerNode} {
- constructor
- method destructor
- method childObjects
- method createChild
- method changeableParameters
- method shutdown
- method doUpdate
- }
-
- constructor CSNameServerNode {class this name i_server} {
- set this [CSServerNode::constructor $class $this $name $i_server]
- # Start constructor user section
-
- $this label [$i_server name]
- $this icon rep_namesrv_16
-
- # End constructor user section
- return $this
- }
-
- method CSNameServerNode::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CSServerNode::destructor
- }
-
- method CSNameServerNode::childObjects {this} {
- set server [$this server]
- return [osort pid -integer [$server clients]]
- }
-
- method CSNameServerNode::createChild {this object} {
- return [CSClientNode new $this.[$this childName $object] $object]
- }
-
- method CSNameServerNode::changeableParameters {this} {
- return [list orb_timeout]
- }
-
- method CSNameServerNode::shutdown {this {confirm 1}} {
- if $confirm {
- $this confirmShutdown "Shutdown Nameserver" \
- "Are you sure you want to shutdown the nameserver?" \
- shutdownNameServer
- return
- }
-
- $this CSServerNode::shutdown $confirm
- }
-
- method CSNameServerNode::doUpdate {this {rebuild 1}} {
- $this CSServerNode::doUpdate $rebuild
- }
-
- # Do not delete this line -- regeneration end marker
-
-