View Javadoc

1   
2   /*
3    * Copyright (c) 2005, The K-Wf Grid Consortium
4    * Fraunhofer Institute for Computer Architecture and Software Technology
5    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
6    */
7   package net.kwfgrid.gworkflowdl.protocol.calls;
8   
9   import net.kwfgrid.gworkflowdl.protocol.*;
10  import net.kwfgrid.gworkflowdl.protocol.structure.*;
11  
12  import java.io.IOException;
13  
14  import org.xmlpull.v1.XmlSerializer;
15  
16  /***
17     Modification that sets a set of Owls.
18   */
19  public class OwlsSetOwls extends AbstractMethodCall {
20      protected String[] _os;
21      protected ProtocolOwls _owls;
22      
23      public OwlsSetOwls(ProtocolOwls owls, String[] os) {
24  	super(owls.getRoot());
25  	_owls = owls;
26  	_os = os;
27      }
28  
29      public void marshal(IMethodCallMarshaller marshaller, XmlSerializer serializer) throws IOException {
30  	marshaller.marshalOwlsSetOwls(serializer, _owls, _os);
31      }
32  
33      public Object execute() {
34  	_owls.__setOwls(_os);
35  	setExecuted();
36  	return null;
37      }
38  }