net.eduvax.grant.xmlrpc
Class XMLrpcRemoteNode

java.lang.Object
  extended by net.eduvax.grant.core.Node
      extended by net.eduvax.grant.core.RemoteNode
          extended by net.eduvax.grant.xmlrpc.XMLrpcRemoteNode

 class XMLrpcRemoteNode
extends RemoteNode

Node request broker on xml rpc. sends node request thrue XML RPC protocole.


Field Summary
private  XmlRpcClient remoteNode
          remote xmlrpc node client connection.
 
Constructor Summary
XMLrpcRemoteNode(java.lang.String n)
          Create new xmlrpc node.
 
Method Summary
private  void addExecRequestToParams(java.util.Vector params, ExecRequest er)
           
 Node addNode(java.lang.String name)
          xml rpc call to add a node to remote node.
 int execReport(ExecReport er)
          xml rpc call to report execution.
 java.lang.String[] getKnownNodes()
          request for known nodes name list.
 void handleEvent(int eventType, TaskletEvent event)
          xml rpc call to ask remote node for handling event.
 float load()
          xml rpc call to get remaote node load.
 void removeNode(java.lang.String name)
          xml rpc call to remove a node from remote node.
 void shutdown()
          xml rpc call to shutdown remote node.
 java.lang.String status()
          xml rpc call to get remote node status.
 ExecRequest submitRequest(ExecRequest er)
          xml rpc call to route request to a node.
 
Methods inherited from class net.eduvax.grant.core.Node
createNode, getFitness, getName, getRCDir, registerNodeFactory, setFitness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remoteNode

private XmlRpcClient remoteNode
remote xmlrpc node client connection.

Constructor Detail

XMLrpcRemoteNode

public XMLrpcRemoteNode(java.lang.String n)
Create new xmlrpc node.

Method Detail

submitRequest

public ExecRequest submitRequest(ExecRequest er)
xml rpc call to route request to a node.

Specified by:
submitRequest in class Node
Parameters:
nd - target node description.
er - execute request.
Returns:
full routing path.

execReport

public int execReport(ExecReport er)
xml rpc call to report execution.

Specified by:
execReport in class Node
Parameters:
er - execute report.
Returns:
task execution completion code.

removeNode

public void removeNode(java.lang.String name)
xml rpc call to remove a node from remote node.

Specified by:
removeNode in class Node
Parameters:
name - node's name (xmlrpc server url)

addNode

public Node addNode(java.lang.String name)
xml rpc call to add a node to remote node.

Specified by:
addNode in class Node
Parameters:
name - node's name (xmlrpc server url)

handleEvent

public void handleEvent(int eventType,
                        TaskletEvent event)
xml rpc call to ask remote node for handling event.

Specified by:
handleEvent in class Node
Parameters:
eventType - evnet type
event - tasklet event

status

public java.lang.String status()
xml rpc call to get remote node status.

Specified by:
status in class Node
Returns:
status information.

shutdown

public void shutdown()
xml rpc call to shutdown remote node.

Specified by:
shutdown in class Node

load

public float load()
xml rpc call to get remaote node load.

Specified by:
load in class Node
Returns:
load.

getKnownNodes

public java.lang.String[] getKnownNodes()
Description copied from class: Node
request for known nodes name list.

Specified by:
getKnownNodes in class Node
Returns:
nodes known from this node.

addExecRequestToParams

private void addExecRequestToParams(java.util.Vector params,
                                    ExecRequest er)