View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5    */
6   package net.kwfgrid.gworkflowdl.protocol.calls;
7   
8   import net.kwfgrid.gworkflowdl.protocol.structure.IRootObject;
9   
10  import java.io.IOException;
11  
12  import org.xmlpull.v1.XmlSerializer;
13  
14  /***
15     Interface for a method call.
16   */
17  public interface IMethodCall {
18      /***
19         Marshal the method call.
20         @param marshaller The marshaller to use.
21         @param serializer The XML serializer to use.
22         @exception IOException If the method call could not be marshalled.
23       */
24      void marshal(IMethodCallMarshaller marshaller, XmlSerializer serializer) throws IOException;
25      /***
26         Execute this method call.
27         @return The generic return value of the method call.
28         @exception Exception The method call can throw any kind of exception.
29       */
30      Object execute() throws Exception;
31      /***
32         Check if this method call has been executed.
33       */
34      boolean isExecuted();
35      /***
36         Get the root object of the structure modified by this method call.
37       */
38      IRootObject getTarget();    
39  }