Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r190 - in branches/stateengine: . actions

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

svn commit: r190 - in branches/stateengine: . actions

Reply

Author jjneely
Full name Jack Neely
Date 2005-08-16 18:02:41 PDT
Message Author: jjneely
Date: Tue Aug 16 18:02:40 2005
New Revision: 190

Modified:
   branches/stateengine​/actions/dummy.py
   branches/stateengine/client.py
   branches/stateengine/db.py
   branches/stateengine/seadm.py
Log:
This lays out the basics:

Run python seadm.py -- Creates database and loads one host (localhost) and
    runs one recipe.
Run python client.py -- daemon that listens for commands
Run python server.py -- daemon that deploys actions and (right now) listens
    for nothing. Starting server.py should cause "Hello World" to be
    printed out by the client.py daemon.



Modified: branches/stateengine​/actions/dummy.py
Url: http://current.tigri​s.org/source/browse/​current/branches/sta​teengine/actions/dum​my.py?view=diff&​rev=190&p1=branc​hes/stateengine/acti​ons/dummy.py&r1=​189&p2=branches/​stateengine/actions/​dummy.py&r2=190
====================​====================​====================​==================
--- branches/stateengine​/actions/dummy.py (original)
+++ branches/stateengine​/actions/dummy.py Tue Aug 16 18:02:40 2005
@@ -12,3 +12,5 @@
     def run(self):
         print self.message
 
+ return 0
+

Modified: branches/stateengine/client.py
Url: http://current.tigri​s.org/source/browse/​current/branches/sta​teengine/client.py?v​iew=diff&rev=190​&p1=branches/sta​teengine/client.py​&r1=189&p2=bra​nches/stateengine/cl​ient.py&r2=190
====================​====================​====================​==================
--- branches/stateengine/client.py (original)
+++ branches/stateengine/client.py Tue Aug 16 18:02:40 2005
@@ -19,7 +19,7 @@
         m = modules.getClass("actions/", prototypes.Action, actionID)
 
         instance = m(*args, **kwargs)
- instance.run()
+ return instance.run()
 
 
 # Testing

Modified: branches/stateengine/db.py
Url: http://current.tigri​s.org/source/browse/​current/branches/sta​teengine/db.py?view=​diff&rev=190​&p1=branches/stateen​gine/db.py&r1=18​9&p2=branches/st​ateengine/db.py&​r2=190
====================​====================​====================​==================
--- branches/stateengine/db.py (original)
+++ branches/stateengine/db.py Tue Aug 16 18:02:40 2005
@@ -12,7 +12,7 @@
     actionkey INTEGER PRIMARY KEY,
     hostid int not null,
     queue int not null,
- actionid int not null,
+ actionid text not null,
     args text
 );
 """

Modified: branches/stateengine/seadm.py
Url: http://current.tigri​s.org/source/browse/​current/branches/sta​teengine/seadm.py?vi​ew=diff&rev=190​&p1=branches/stat​eengine/seadm.py​&r1=189&p2=branc​hes/stateengine/sead​m.py&r2=190
====================​====================​====================​==================
--- branches/stateengine/seadm.py (original)
+++ branches/stateengine/seadm.py Tue Aug 16 18:02:40 2005
@@ -19,6 +19,7 @@
 
         while not q.empty():
             act, args, kwargs = q.get()
+ print "Action: %s\nArgs: %s\nKwargs: %s" % (act, args, kwargs)
             self.actions.put(hostID, act, args, kwargs)

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r190 - in branches/stateengine: . actions jjneely Jack Neely 2005-08-16 18:02:41 PDT
Messages per page: