orca.shirako.proxies.soap
Class SoapBrokerProxy

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


Field Summary
protected  AgentServiceStub 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
SoapBrokerProxy(java.lang.String serviceURL, AuthToken identity, LoggingTool logger)
          
 
Method Summary
 void claim(ResourceReservation reservation, IClientCallbackProxy callback, AuthToken authToken)
          Services a request to claim a previously exported ticket.
 void extendTicket(ResourceReservation reservation, AuthToken authToken)
          Services an incoming request to extend an existing ticket.
 void initialize()
          Creates a stub to communicate with the remote agent
protected  Reservation passReservation(IReservation reservation, AuthToken auth)
          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 ticket(ResourceReservation reservation, IClientCallbackProxy callback, AuthToken authToken)
          Services an incoming request for a new ticket.
 
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 AgentServiceStub stub
SOAP service stub

Constructor Detail

SoapBrokerProxy

public SoapBrokerProxy(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 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 resources
callback - callback to use for sending the result
authToken - 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 resources
callback - callback to use for sending the result
authToken - 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 extend
authToken - 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 actor
caller - 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.