home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)cslockserv.tcl /main/hindenburg/7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cslockserv.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 CSLockServerNode : {CSServerNode} {
- constructor
- method destructor
- method childObjects
- method createChild
- method shutdown
- method doUpdate
- }
-
- constructor CSLockServerNode {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_locksrv_16
-
- # End constructor user section
- return $this
- }
-
- method CSLockServerNode::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CSServerNode::destructor
- }
-
- method CSLockServerNode::childObjects {this} {
- set server [$this server]
- return [osort pid -integer [$server clients]]
- }
-
- method CSLockServerNode::createChild {this object} {
- return [CSClientNode new $this.[$this childName $object] $object]
- }
-
- method CSLockServerNode::shutdown {this {confirm 1}} {
- if $confirm {
- $this confirmShutdown "Shutdown Lockserver" \
- "Are you sure you want to shutdown the lockserver?" \
- shutdownLockServer2
- return
- }
-
- $this CSServerNode::shutdown $confirm
- }
-
- method CSLockServerNode::doUpdate {this {rebuild 1}} {
- $this CSServerNode::doUpdate $rebuild
-
- set lockServer [$this server]
- $lockServer disconnect
- }
-
- # Do not delete this line -- regeneration end marker
-
-