home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
cslockserv.tcl
< prev
next >
Wrap
Text File
|
1997-11-05
|
2KB
|
72 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)cslockserv.tcl /main/titanic/7
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cslockserv.tcl /main/titanic/7 5 Nov 1997 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
$this activeIcon 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 "Lockserver" \
"Are you sure you want to shutdown the lockserver?" \
shutdownLockServer
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