org.apache.agila.services.rendezvous
Class AbstractRendezvousService

java.lang.Object
  extended by org.apache.agila.services.rendezvous.AbstractRendezvousService
All Implemented Interfaces:
RendezvousService
Direct Known Subclasses:
RendezvousServiceImpl

public abstract class AbstractRendezvousService
extends java.lang.Object
implements RendezvousService

Version:
$Id: $
Author:
Geir Magnusson Jr.

Field Summary
protected  InstanceService instanceService
           
protected  LogService logService
           
 
Constructor Summary
AbstractRendezvousService()
           
 
Method Summary
abstract  BusProcInfo getBusProcInfo(BusinessProcessID id, boolean createNew)
           
 boolean nodeNotification(TokenID token, RendezvousPolicyInfo policy)
          Notfies the RendezvousService that a token has reached a RendezvousNode
 boolean registerInstanceStart(InstanceID instanceID)
          Registers an instance when one begins.
 RendezvousRegistration registerProcessRendezvous(BusinessProcessID procid, RendezvousPolicyInfo policy)
          Registers a policy for a given business process.
 void setInstanceService(InstanceService isvc)
           
 void setLogService(LogService svc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceService

protected InstanceService instanceService

logService

protected LogService logService
Constructor Detail

AbstractRendezvousService

public AbstractRendezvousService()
Method Detail

setInstanceService

public void setInstanceService(InstanceService isvc)

setLogService

public void setLogService(LogService svc)

registerProcessRendezvous

public RendezvousRegistration registerProcessRendezvous(BusinessProcessID procid,
                                                        RendezvousPolicyInfo policy)
                                                 throws RendezvousException
Registers a policy for a given business process. Used by thhe BusinessProcessService to register all policies of a process.

Specified by:
registerProcessRendezvous in interface RendezvousService
Parameters:
procid -
policy -
Returns:
Throws:
RendezvousException

registerInstanceStart

public boolean registerInstanceStart(InstanceID instanceID)
                              throws RendezvousException
Registers an instance when one begins. Used by the InstanceService.

Specified by:
registerInstanceStart in interface RendezvousService
Parameters:
instanceID -
Returns:
Throws:
RendezvousException

nodeNotification

public boolean nodeNotification(TokenID token,
                                RendezvousPolicyInfo policy)
Notfies the RendezvousService that a token has reached a RendezvousNode

Specified by:
nodeNotification in interface RendezvousService
Parameters:
token -
policy -
Returns:
true if processing should continue, false if node must wait for external notification

getBusProcInfo

public abstract BusProcInfo getBusProcInfo(BusinessProcessID id,
                                           boolean createNew)


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.