orca.shirako.proxies.soap
Class SoapAuthorityProxy
java.lang.Object
orca.shirako.proxies.Proxy
orca.shirako.proxies.soap.SoapProxy
orca.shirako.proxies.soap.SoapAuthorityProxy
- All Implemented Interfaces:
- IActorIdentity, IActorProxy, IActorPublic, IAuthorityProxy, IAuthorityPublic, IProxy, ISerialize, IServerProxy, IServerPublic
public class SoapAuthorityProxy
- extends SoapProxy
- implements IAuthorityProxy
Proxy representing an Authority using SOAP for communication
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stub
protected AuthorityServiceStub stub
- SOAP service stub
SoapAuthorityProxy
public SoapAuthorityProxy(java.lang.String serviceURL,
AuthToken identity,
LoggingTool logger)
-
initialize
public void initialize()
throws java.lang.Exception
- Creates a stub to communicate with the remote authority
- Specified by:
initialize in class SoapProxy
- Throws:
java.lang.Exception
redeem
public void redeem(ResourceReservation reservation,
IServiceManagerCallbackProxy callback,
AuthToken authToken)
throws java.lang.Exception
- Redeems a lease.
- Specified by:
redeem in interface IAuthorityPublic
- Parameters:
reservation - reservation to redeemcallback - callback objectauthToken - owner of the reservation
- Throws:
java.lang.Exception
close
public void close(ResourceReservation reservation,
AuthToken authToken)
throws java.lang.Exception
- Closes the reservation.
- Specified by:
close in interface IAuthorityPublic
- Parameters:
reservation - the reservationauthToken - the slice owner
- Throws:
java.lang.Exception
extendLease
public void extendLease(ResourceReservation reservation,
AuthToken authToken)
throws java.lang.Exception
- Extends a lease.
- Specified by:
extendLease in interface IAuthorityPublic
- Parameters:
reservation - reservation to extendauthToken - owner of the reservation
- 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(ResourceReservation reservation,
AuthToken caller)
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.