orca.shirako.proxies.local
Class LocalBroker

java.lang.Object
  extended by orca.shirako.proxies.Proxy
      extended by orca.shirako.proxies.local.LocalProxy
          extended by orca.shirako.proxies.local.LocalBroker
All Implemented Interfaces:
IActorIdentity, IActorProxy, IActorPublic, IBrokerProxy, IBrokerPublic, IProxy, ISerialize, IServerProxy, IServerPublic
Direct Known Subclasses:
LocalAuthority

public class LocalBroker
extends LocalProxy
implements IBrokerProxy

Local proxy for Agent. Allows communication with an Agent in the same container as the caller.


Field Summary
 
Fields inherited from class orca.shirako.proxies.local.LocalProxy
actorAuth, actorName, logger, PropertyLocalProxyActorName
 
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
LocalBroker()
           
LocalBroker(IActor actor)
          Create a new proxy for the specified actor
 
Method Summary
 void claim(ResourceReservation reservation, IClientCallbackProxy callback, AuthToken caller)
          Claim an exported "will call" ticket
 void extendTicket(ResourceReservation reservation, AuthToken caller)
          Extend a ticket
protected  BrokerReservation passReservation(ReservationClient r, AuthToken auth)
          Converts a reservation to be passed from one actor to another
 void ticket(ResourceReservation reservation, IClientCallbackProxy callback, AuthToken caller)
          Create a ticket
 
Methods inherited from class orca.shirako.proxies.local.LocalProxy
getActor, getFactory, getIdentity, getName, query, reset, save
 
Methods inherited from class orca.shirako.proxies.Proxy
abstractCloneAuthority, abstractCloneBroker, abstractCloneReturn, getGuid, getPlugin, getProxy, getType, recoverProxy, 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
 
Methods inherited from interface orca.shirako.api.IActorPublic
query
 

Constructor Detail

LocalBroker

public LocalBroker()

LocalBroker

public LocalBroker(IActor actor)
Create a new proxy for the specified actor

Parameters:
actor -
Method Detail

ticket

public void ticket(ResourceReservation reservation,
                   IClientCallbackProxy callback,
                   AuthToken caller)
            throws java.lang.Exception
Create a ticket

Specified by:
ticket in interface IBrokerPublic
Parameters:
reservation - the reservation
callback - the SlicesReturn for the ticket
caller - the owner of the slice
Throws:
java.lang.Exception

extendTicket

public void extendTicket(ResourceReservation reservation,
                         AuthToken caller)
                  throws java.lang.Exception
Extend a ticket

Specified by:
extendTicket in interface IBrokerPublic
Parameters:
reservation - the reservation
caller - the owner of the slice
Throws:
java.lang.Exception

claim

public void claim(ResourceReservation reservation,
                  IClientCallbackProxy callback,
                  AuthToken caller)
           throws java.lang.Exception
Claim an exported "will call" ticket

Specified by:
claim in interface IBrokerPublic
Parameters:
reservation - the reservation request and parameters (with exportedRid)
callback - the callback object for this reservation
caller - the slice owner
Throws:
java.lang.Exception

passReservation

protected BrokerReservation passReservation(ReservationClient r,
                                            AuthToken auth)
                                     throws java.lang.Exception
Converts a reservation to be passed from one actor to another

Parameters:
r - The reservation
auth - The auth token of the caller
Returns:
Throws:
java.lang.Exception


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.