de.dfki.lt.hog
Interface XmlRpcClientInterface

All Known Implementing Classes:
SampleRemoteTagger, SampleXmlRpcApplication, XmlRpcApplication, XmlRpcModule

public interface XmlRpcClientInterface

This interface provides three basic operation for XML-RPC communication as a client. XmlRpcModule implements this interface as it needs to communicate with a corresponding remote adaptor.


Method Summary
 java.lang.String process(java.lang.String aMethodName, java.util.Vector params)
          Sends parameters to a remote module by an XmlRpcClient.
 void shutdown(java.lang.String aModuleName)
          Shutsdown a remote module.
 void start(java.lang.String aModuleName)
          Starts a remote adaptor to communicate with.
 

Method Detail

start

void start(java.lang.String aModuleName)
Starts a remote adaptor to communicate with. This method must be implemented by each class derived from XmlRpcModule and could start an adaptor via a shell or Python script, for example.

Parameters:
aModuleName - name of the module to start

process

java.lang.String process(java.lang.String aMethodName,
                         java.util.Vector params)
Sends parameters to a remote module by an XmlRpcClient. Calls therefore the execute method of XmlRpcClient.

Parameters:
aMethodName - name of a method which process params remotely
params - paramters for remote method

shutdown

void shutdown(java.lang.String aModuleName)
Shutsdown a remote module.

Parameters:
aModuleName - name of the module to shut down