home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
csnameserv.tcl
< prev
next >
Wrap
Text File
|
1997-11-05
|
2KB
|
87 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)csnameserv.tcl /main/titanic/8
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)csnameserv.tcl /main/titanic/8 5 Nov 1997 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 logRegistrations
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
$this activeIcon rep_namesrv_16
$this canLogRegistrations 1
# 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::logRegistrations {this} {
[ORB::nameServer] logRegistrations 255
set brokerHost [[$this server] host]
set dlg [$this view].showlogdlg-$brokerHost
if [isCommand $dlg] {
$dlg refresh
}
}
method CSNameServerNode::shutdown {this {confirm 1}} {
if $confirm {
$this confirmShutdown "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