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

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.engine.impl.FixedFederationSelector
All Implemented Interfaces:
FederationSelector<InvocationEngine>

public class FixedFederationSelector
extends Object
implements FederationSelector<InvocationEngine>

Always returns a fixed set of federations.


Constructor Summary
FixedFederationSelector(org.apache.axis.message.addressing.EndpointReferenceType federation)
          This constructor may be used in the common case of needing to use a single specific SLA or Account.
FixedFederationSelector(SOAPHeaderElement[] federations)
          This constructor is passed exactly what the #getFederationHeaders() returns.
 
Method Summary
 SOAPHeaderElement[] getFederationHeaders(org.apache.axis.message.addressing.EndpointReferenceType target, RemoteMethod method, InvocationEngine engine)
          Get any extra headers needed to invoke a service.
 void setFederationHeaders(SOAPHeaderElement[] federations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedFederationSelector

public FixedFederationSelector(SOAPHeaderElement[] federations)
This constructor is passed exactly what the #getFederationHeaders() returns. uk.ac.soton.itinnovation.grid.utils.AxisUtils#createFederationHeaders()

Parameters:
federations - the SOAPHeaderElements to return

FixedFederationSelector

public FixedFederationSelector(org.apache.axis.message.addressing.EndpointReferenceType federation)
This constructor may be used in the common case of needing to use a single specific SLA or Account.

Parameters:
federation - the SLA or Account EPR to use
Method Detail

getFederationHeaders

public SOAPHeaderElement[] getFederationHeaders(org.apache.axis.message.addressing.EndpointReferenceType target,
                                                RemoteMethod method,
                                                InvocationEngine engine)
Description copied from interface: FederationSelector
Get any extra headers needed to invoke a service.

Specified by:
getFederationHeaders in interface FederationSelector<InvocationEngine>
Parameters:
target - the resource being invoked
method - the method on the resource
engine - the engine invoking the SOAP operation
Returns:
an array of extra SOAP headers to include in the message

setFederationHeaders

public void setFederationHeaders(SOAPHeaderElement[] federations)


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