[kepler-dev] Handling shared-resources

Norbert Podhorszki pnorbert at cs.ucdavis.edu
Wed Mar 7 09:32:46 PST 2007


Does anyone handle a "resource" in a workflow "shared" among actors?

I mean like org.kepler.actor.Logger that opens a file once but many 
instances of that actor in the workflow can write into the same file. So 
there is no need to drag channels from many actors to one single Logger 
actor. The file is then (supposed to be) closed at the end of the workflow 
execution once.

Or, the org.kepler.actor.ssh.* actors that share an established ssh 
session to perform remote operations. The session should be closed at the 
very end of the execution.

I have learnt from the recent thread "Wrapup sequence question" that I was 
wrong about that actors can be aware of the finalization stage of the 
model/workflow, I have put the finalization of shared resources into the 
wrapup() method. However, under PN, individual actors can wrap-up 
surprisingly early, even before another actors start working.

My question is to those who handle shared resources: When and how do you 
close/finalize them?

I am not sure that actor-oriented modelling allows shared resources at 
all, or they are just examples of violating it.

Best regards

      Norbert Podhorszki
      University of California, Davis
      Department of Computer Science
      1 Shields Ave, 2236 Kemper Hall
      Davis, CA 95616
      (530) 752-5076
      pnorbert at cs.ucdavis.edu

More information about the Kepler-dev mailing list