|
From: <mor...@us...> - 2008-11-06 09:21:30
|
Revision: 3276
http://ecell.svn.sourceforge.net/ecell/?rev=3276&view=rev
Author: moriyoshi
Date: 2008-11-06 09:21:24 +0000 (Thu, 06 Nov 2008)
Log Message:
-----------
* Renew the example.
Modified Paths:
--------------
ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.globus.py
ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.py
ecell3/branches/ecell-3.1/doc/samples/sessionmanager/runsession.py
Modified: ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.globus.py
===================================================================
--- ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.globus.py 2008-11-06 09:01:56 UTC (rev 3275)
+++ ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.globus.py 2008-11-06 09:21:24 UTC (rev 3276)
@@ -5,7 +5,7 @@
import os
-setEnvironment('Globus2')
+setEnvironment('Globus4')
setTmpDirRemovable(False) # not delete tmp directory
@@ -15,15 +15,9 @@
# set up SystemProxy's properties
aSystemProxy = getSystemProxy()
+aSystemProxy.setLocalHostName( 'myhost.example.com' )
+aSystemProxy.setFactoryEndpoint( 'https://endpoint.example.com:8443/wsrf/services/ManagedJobFactoryService' )
-aSystemProxy.setPassword('your_passwd') # password for globus gate-keeper
-aSystemProxy.gridProxyInit() # initialize gate-keeper
-
-# create a list of hosts on which jobs are conducted.
-aHostList = ['host1.domain',
- 'host2.domain']
-aSystemProxy.setHosts(aHostList) # set the host list
-
# -------------------------------
MODEL_FILE = 'model.eml'
Modified: ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.py
===================================================================
--- ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.py 2008-11-06 09:01:56 UTC (rev 3275)
+++ ecell3/branches/ecell-3.1/doc/samples/sessionmanager/ems.py 2008-11-06 09:21:24 UTC (rev 3276)
@@ -26,7 +26,5 @@
for aJobID in aJobIDList:
- print " --- job id = %s ---" %aJobID
+ print " --- job id = %s ---" % aJobID
print getStdout( aJobID ) # Print the output of each job.
-
-
Modified: ecell3/branches/ecell-3.1/doc/samples/sessionmanager/runsession.py
===================================================================
--- ecell3/branches/ecell-3.1/doc/samples/sessionmanager/runsession.py 2008-11-06 09:01:56 UTC (rev 3275)
+++ ecell3/branches/ecell-3.1/doc/samples/sessionmanager/runsession.py 2008-11-06 09:21:24 UTC (rev 3276)
@@ -7,5 +7,4 @@
run( 200 ) # Run the simulation for 200 seconds.
-message( S[ 'Value' ] ) # Print the value of 'Variable:/:S'.
-
+print S[ 'Value' ] # Print the value of 'Variable:/:S'.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|