Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-08-2005
StuartA StuartA is offline
Registered User
 
 
Join Date: Feb 2004
Location: Canberra Australia
Posts: 23
icepackadmin extra functionality

Here is a patch for the IcePack Amin tool (icepackadmin).

It is just a quick hack to give some extra functionality:-

1. List the server state of all servers

Code:
>>> server state
uow-peach-Course            active (pid = 17114)
uow-SavviRegistry           active (pid = 17004)
uow-SuperUserContract       active (pid = 17161)
uow-apple-StudentContract   inactive
2. Reachability tests for objects given by EXPR (as `object list')

Code:
>>> object ping foo*
foobar   reachable
foobam   unreachable

>>> object ping bar
bar   unreachable
3. Reachability tests for all registered objects

Code:
>>> object ping
foobar   reachable
barbam   unreachable
bar      unreachable
bam      reachable
I stupidly wrote over the orig sources, so just files not diffs.

src/IcePack/Parser.cpp
src/IcePack/Parser.h
src/IcePack/Grammar.y

to process Grammer.y:
Code:
$bison --debug --defines=Grammar.h -o Grammar.cpp Grammar.y
$bison --version
bison (GNU Bison) 1.875a
...

Note: modified from Ice 2.1.1

In the hope it is usefull...

StuartA

Note: attatchment is a .zip to satisfy vbulltin, but contains tar.gz

---

I declare the diffs between originals to be in the public domain.
I also forfeit any intellectual property to ZeroC at no cost.
Attached Files
File Type: zip IcePackAdmin_patch.tar.zip (8.5 KB, 130 views)
__________________
Stuart Argue

University Of Wollongong, Australia (Eng/CS Student)
http://www.uow.edu.au

Project: Savvi: Student Assessment Viewer and Voluntry Interaction
- Advanced WebCT replacement
- Native GUI and HTML interfaces

Development Platform: Debian/GNU, g++, scons, boost, Qt
Target: Services: Unix; clients: Win, MacOS, Linux

Status: pre-Alpha
Development cycle: spare time
Chance of going commercial: yes (late 2006)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can icepackadmin remotely manage icepackregistry? saint.christian Help Center 4 11-29-2004 11:20 AM
More subcommands needed in icepackadmin! rc_hz Help Center 0 11-15-2004 11:59 PM
Unable to run icepackadmin -e command vsonnathi Bug Reports 1 11-04-2004 08:20 AM
Ice utils (icepackregistry, icepackadmin, icepacknode...) vsonnathi Help Center 0 10-21-2004 02:49 PM
IceJ 1.2.0 limited functionality alexander Comments 3 11-11-2003 07:30 PM


All times are GMT -4. The time now is 10:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.