orca.shirako.proxies.soap
Class SoapAuthorityProxy

java.lang.Object
  extended by orca.shirako.proxies.Proxy
      extended by orca.shirako.proxies.soap.SoapProxy
          extended by 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


Field Summary
protected  AuthorityServiceStub stub
          SOAP service stub
 
Fields inherited from class orca.shirako.proxies.soap.SoapProxy
identity, logger, PropertyServiceEndPoint, PropetyClientConfig, serviceEndpoint
 
Fields inherited from class orca.shirako.proxies.Proxy
callback, PropertyProxyActorName, PropertyProxyCallback, PropertyProxyClass, PropertyProxyType, proxyType
 
Fields inherited from interface orca.shirako.api.IProxy
ProxyTypeLocal, ProxyTypeSoap
 
Constructor Summary
SoapAuthorityProxy(java.lang.String serviceURL, AuthToken identity, LoggingTool logger)
          
 
Method Summary
 void close(ResourceReservation reservation, AuthToken authToken)
          Closes the reservation.
 void extendLease(ResourceReservation reservation, AuthToken authToken)
          Extends a lease.
 void initialize()
          Creates a stub to communicate with the remote authority
protected  Reservation passReservation(ResourceReservation reservation, AuthToken caller)
          Converts a slices reservation to a reservation bean that can be sent over SOAP.
 java.util.Properties query(java.util.Properties properties, AuthToken caller)
          Queries the actor for a given collection of properties.
 void redeem(ResourceReservation reservation, IServiceManagerCallbackProxy callback, AuthToken authToken)
          Redeems a lease.
 
Methods inherited from class orca.shirako.proxies.soap.SoapProxy
getConfiguration, getFactory, getIdentity, getLogger, getName, getServiceEndpoint, reset
 
Methods inherited from class orca.shirako.proxies.Proxy
abstractCloneAuthority, abstractCloneBroker, abstractCloneReturn, getGuid, getPlugin, getProxy, getType, recoverProxy, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface orca.shirako.api.IProxy
getType
 
Methods inherited from interface orca.shirako.api.IActorIdentity
getGuid, getIdentity, getName
 
Methods inherited from interface orca.shirako.api.ISerialize
reset, save, save
 

Field Detail

stub

protected AuthorityServiceStub stub
SOAP service stub

Constructor Detail

SoapAuthorityProxy

public SoapAuthorityProxy(java.lang.String serviceURL,
                          AuthToken identity,
                          LoggingTool logger)

Method Detail

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 redeem
callback - callback object
authToken - 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 reservation
authToken - 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 extend
authToken - 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 actor
caller - 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.