orca.shirako.proxies.soap.services
Class ActorServiceImpl

java.lang.Object
  extended by orca.shirako.proxies.soap.services.ActorServiceImpl
Direct Known Subclasses:
AgentServiceImpl, AuthorityServiceImpl, ServiceManagerServiceImpl

public abstract class ActorServiceImpl
extends java.lang.Object

This is the implementation of the Actor SOAP service. It is the base for all other actor SOAP services.


Field Summary
protected  IActor actor
          The local actor.
protected  LoggingTool logger
          Cached logger
 
Constructor Summary
ActorServiceImpl()
           
 
Method Summary
protected  ICallbackProxy getCallback(java.lang.String url, AuthToken authToken)
          Construct a SOAP callback object to a service listening on the specified endpoint and identified by the given auth token.
protected  IConcreteSet getConcrete(Reservation r)
          Extracts the concrete set from a SOAP reservation
protected  void initialize()
          Actor setup.
protected  ReservationClient passClient(Reservation reservation)
          Converts a SOAP reservation to a ReservationClient
 void query(PropertiesHolder properties)
          Services an incoming query request
 void tick(long cycle)
           
 void updateLease(Reservation reservation, UpdateData updateData)
          Services an incoming lease update
 void updateTicket(Reservation reservation, UpdateData updateData)
          Services an incoming ticket update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actor

protected IActor actor
The local actor. All web-service calls are translated to objects that the actor understands and forwarded to the actor


logger

protected LoggingTool logger
Cached logger

Constructor Detail

ActorServiceImpl

public ActorServiceImpl()
Method Detail

initialize

protected void initialize()
                   throws java.lang.Exception
Actor setup. This code interacts with the ActorRegistry within this container to retrieve the necessary objects needed to initialize the service

Throws:
java.lang.Exception

getCallback

protected ICallbackProxy getCallback(java.lang.String url,
                                     AuthToken authToken)
                              throws java.lang.Exception
Construct a SOAP callback object to a service listening on the specified endpoint and identified by the given auth token.

Parameters:
url - callback endpoint
authToken - auth token of the service
Returns:
Throws:
java.lang.Exception

getConcrete

protected IConcreteSet getConcrete(Reservation r)
                            throws java.lang.Exception
Extracts the concrete set from a SOAP reservation

Parameters:
r - The SOAP reservation
Returns:
Throws:
java.lang.Exception

passClient

protected ReservationClient passClient(Reservation reservation)
                                throws java.lang.Exception
Converts a SOAP reservation to a ReservationClient

Parameters:
reservation - The SOAP reservation
Returns:
Throws:
java.lang.Exception

updateTicket

public void updateTicket(Reservation reservation,
                         UpdateData updateData)
                  throws java.rmi.RemoteException
Services an incoming ticket update

Parameters:
reservation - Incoming SOAP reservation
updateData - Incoming SOAP updateData
Throws:
java.rmi.RemoteException

updateLease

public void updateLease(Reservation reservation,
                        UpdateData updateData)
                 throws java.rmi.RemoteException
Services an incoming lease update

Parameters:
reservation -
updateData -
Throws:
java.rmi.RemoteException

query

public void query(PropertiesHolder properties)
           throws java.rmi.RemoteException
Services an incoming query request

Parameters:
properties -
Throws:
java.rmi.RemoteException

tick

public void tick(long cycle)
          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException


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