uk.ac.soton.itinnovation.grid.client.engine.impl
Class DefaultInvocationEngine

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.engine.impl.DefaultInvocationEngine
All Implemented Interfaces:
Cloneable, InvocationEngine

public class DefaultInvocationEngine
extends Object
implements InvocationEngine, Cloneable

Orchestrates the process of getting tokens and federation contexts needed to invoke a service.


Constructor Summary
DefaultInvocationEngine(Transport transport)
           
DefaultInvocationEngine(Transport transport, AttributeSelector<? super DefaultInvocationEngine> attributeSelector, FederationSelector<? super DefaultInvocationEngine> federationSelector, List<SimpleRegistry> selectedRegistries)
           
 
Method Summary
 DefaultInvocationEngine clone()
           
 AttributeSelector<? super DefaultInvocationEngine> getAttributeSelector()
           
 FederationSelector<? super DefaultInvocationEngine> getFederationSelector()
           
 ProxyFactory getProxyFactory()
           
 List<SimpleRegistry> getSelectedRegistries()
           
 Transport getTransport()
          Get the transport used for sending SOAP messages.
 Object invoke(org.apache.axis.message.addressing.EndpointReferenceType target, RemoteMethod method, Object[] arguments)
          Invoke a SOAP operation.
 void setAttributeSelector(AttributeSelector<? super DefaultInvocationEngine> attributeSelector)
           
 void setFederationSelector(FederationSelector<? super DefaultInvocationEngine> federationSelector)
           
 void setProxyFactory(ProxyFactory proxyFactory)
           
 void setSelectedRegistries(List<SimpleRegistry> selectedRegistries)
           
 void setTransport(Transport transport)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultInvocationEngine

public DefaultInvocationEngine(Transport transport)

DefaultInvocationEngine

public DefaultInvocationEngine(Transport transport,
                               AttributeSelector<? super DefaultInvocationEngine> attributeSelector,
                               FederationSelector<? super DefaultInvocationEngine> federationSelector,
                               List<SimpleRegistry> selectedRegistries)
Method Detail

clone

public DefaultInvocationEngine clone()
                              throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

invoke

public Object invoke(org.apache.axis.message.addressing.EndpointReferenceType target,
                     RemoteMethod method,
                     Object[] arguments)
              throws RemoteException
Invoke a SOAP operation. The engine's identityProvider, attributeSelector and federationSelector will be called to perform any extra updates to the message.

Specified by:
invoke in interface InvocationEngine
Parameters:
target - the remote resource being accessed
method - a method on target to be invoked
arguments - arguments for the method
Returns:
the result of the invocation
Throws:
RemoteException

getTransport

public Transport getTransport()
Description copied from interface: InvocationEngine
Get the transport used for sending SOAP messages. This includes the IdentityProvider.

Specified by:
getTransport in interface InvocationEngine

getAttributeSelector

public AttributeSelector<? super DefaultInvocationEngine> getAttributeSelector()

getFederationSelector

public FederationSelector<? super DefaultInvocationEngine> getFederationSelector()

getSelectedRegistries

public List<SimpleRegistry> getSelectedRegistries()

getProxyFactory

public ProxyFactory getProxyFactory()

setTransport

public void setTransport(Transport transport)

setAttributeSelector

public void setAttributeSelector(AttributeSelector<? super DefaultInvocationEngine> attributeSelector)

setFederationSelector

public void setFederationSelector(FederationSelector<? super DefaultInvocationEngine> federationSelector)

setSelectedRegistries

public void setSelectedRegistries(List<SimpleRegistry> selectedRegistries)

setProxyFactory

public void setProxyFactory(ProxyFactory proxyFactory)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.