orca.shirako.proxies.soap
Class SoapBrokerProxy
java.lang.Object
orca.shirako.proxies.Proxy
orca.shirako.proxies.soap.SoapProxy
orca.shirako.proxies.soap.SoapBrokerProxy
- All Implemented Interfaces:
- IActorIdentity, IActorProxy, IActorPublic, IBrokerProxy, IBrokerPublic, IProxy, ISerialize, IServerProxy, IServerPublic
public class SoapBrokerProxy
- extends SoapProxy
- implements IBrokerProxy
Proxy representing an agent using SOAP for communication.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stub
protected AgentServiceStub stub
- SOAP service stub
SoapBrokerProxy
public SoapBrokerProxy(java.lang.String serviceURL,
AuthToken identity,
LoggingTool logger)
-
initialize
public void initialize()
throws java.lang.Exception
- Creates a stub to communicate with the remote agent
- Specified by:
initialize in class SoapProxy
- Throws:
java.lang.Exception
claim
public void claim(ResourceReservation reservation,
IClientCallbackProxy callback,
AuthToken authToken)
throws java.lang.Exception
- Services a request to claim a previously exported ticket.
- Specified by:
claim in interface IBrokerPublic
- Parameters:
reservation - reservation object describing the exported resourcescallback - callback to use for sending the resultauthToken - caller credentials
- Throws:
java.lang.Exception
ticket
public void ticket(ResourceReservation reservation,
IClientCallbackProxy callback,
AuthToken authToken)
throws java.lang.Exception
- Services an incoming request for a new ticket.
- Specified by:
ticket in interface IBrokerPublic
- Parameters:
reservation - reservation object describing the requested resourcescallback - callback to use for sending the resultauthToken - caller credentials
- Throws:
java.lang.Exception
extendTicket
public void extendTicket(ResourceReservation reservation,
AuthToken authToken)
throws java.lang.Exception
- Services an incoming request to extend an existing ticket.
- Specified by:
extendTicket in interface IBrokerPublic
- Parameters:
reservation - reservation object describing the reservation to
extendauthToken - caller credentials
- Throws:
java.lang.Exception
query
public java.util.Properties query(java.util.Properties properties,
AuthToken caller)
throws java.lang.Exception
- Queries the actor for a given collection of properties.
- Specified by:
query in interface IActorPublic- Overrides:
query in class Proxy
- Parameters:
properties - properties list to be sent to the actorcaller - AuthToken of the caller.
- Returns:
- query response (a properties list)
- Throws:
java.lang.Exception
passReservation
protected Reservation passReservation(IReservation reservation,
AuthToken auth)
throws java.lang.Exception
- Converts a slices reservation to a reservation bean that can be sent over
SOAP.
- Parameters:
reservation - The slices reservation
- Returns:
-
- Throws:
java.lang.Exception
Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.