You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ch...@apache.org on 2013/08/07 19:56:49 UTC
svn commit: r1511421 -
/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/scripts/start_sim
Author: challngr
Date: Wed Aug 7 17:56:49 2013
New Revision: 1511421
URL: http://svn.apache.org/r1511421
Log:
UIMA-2968 System test support - start and stop individual 'simulated' node.
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/scripts/start_sim
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/scripts/start_sim
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/scripts/start_sim?rev=1511421&r1=1511420&r2=1511421&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/scripts/start_sim (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/scripts/start_sim Wed Aug 7 17:56:49 2013
@@ -151,6 +151,7 @@ class StartSim(DuccUtil):
do_all = True
if ( len(instances) > 0 ):
do_all = False
+ print 'Starting instances:', instances
print "Starting from nodes in", nodelist
props = DuccProperties()
@@ -176,11 +177,11 @@ class StartSim(DuccUtil):
ndx = ndx + 1
for (index, node, mem) in allnodes:
- print 'Starting', index, node, mem
if ( not do_all ):
if ( not instances.has_key(index) ):
continue
+ print 'Starting', index, node, mem
ip = '192.168.4.' + index
pnode = node + '-' + index
print 'Starting agent on', node, 'instance', index, 'as pseudo-node', pnode, 'IP', ip, 'memory', mem,
@@ -339,7 +340,7 @@ class StartSim(DuccUtil):
self. run_local_agent(pseudoname, IP, memory)
sys.exit(0)
- else:
+ else:
if ( (IP != None) or (memory != None) or ( pseudoname != None )) :
self.invalid("Running with a nodelist is not compatible with running a single agent.");