cgl.narada.service.record
Class RecordServiceImpl

java.lang.Object
  extended by cgl.narada.service.record.RecordService
      extended by cgl.narada.service.record.RecordServiceImpl
All Implemented Interfaces:
NBEventListener, ServiceExceptionListener

public class RecordServiceImpl
extends RecordService
implements NBEventListener, ServiceExceptionListener


Constructor Summary
RecordServiceImpl()
           
 
Method Summary
 void addTemplateManagement(TemplateInfo templateInfo)
           
 boolean containsEntity(Object entityKey)
           
 boolean containsTemplate(Object templateKey)
           
 RecordResponse deRegisterEntity(RecordRequest recordRequest)
           
 RecordResponse deregisterEntityFromTemplate(RecordRequest recordRequest)
           
static RecordService getInstance()
           
 RecordResponse handleDeRegistration(RecordRequest recordRequest)
           
 RecordResponse handleRegistration(RecordRequest recordRequest)
           
 void initialize(int recordEntityId, ReliableDeliveryServiceImpl rds, Hashtable templatesAndEntities, Hashtable entities, Hashtable templates)
           
 boolean isInitialized()
           
static void main(String[] args)
           
 void onEvent(NBEvent nbEvent)
          Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery
 void onServiceException(ServiceException serviceException)
           
 void processRecordRequest(RecordRequest recordRequest)
           
 void registerEntity(int entityId)
           
 String registerEntityForTemplate(int entityId, TemplateInfo templateInfo)
           
 void subscrieToRecordServiceTopic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordServiceImpl

public RecordServiceImpl()
Method Detail

getInstance

public static RecordService getInstance()

isInitialized

public boolean isInitialized()

initialize

public void initialize(int recordEntityId,
                       ReliableDeliveryServiceImpl rds,
                       Hashtable templatesAndEntities,
                       Hashtable entities,
                       Hashtable templates)
                throws ServiceException
Specified by:
initialize in class RecordService
Throws:
ServiceException

subscrieToRecordServiceTopic

public void subscrieToRecordServiceTopic()
                                  throws ServiceException
Throws:
ServiceException

onEvent

public void onEvent(NBEvent nbEvent)
Description copied from interface: NBEventListener
Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery

Specified by:
onEvent in interface NBEventListener

onServiceException

public void onServiceException(ServiceException serviceException)
Specified by:
onServiceException in interface ServiceExceptionListener

containsTemplate

public boolean containsTemplate(Object templateKey)

addTemplateManagement

public void addTemplateManagement(TemplateInfo templateInfo)

containsEntity

public boolean containsEntity(Object entityKey)

registerEntity

public void registerEntity(int entityId)

registerEntityForTemplate

public String registerEntityForTemplate(int entityId,
                                        TemplateInfo templateInfo)

deregisterEntityFromTemplate

public RecordResponse deregisterEntityFromTemplate(RecordRequest recordRequest)

deRegisterEntity

public RecordResponse deRegisterEntity(RecordRequest recordRequest)

processRecordRequest

public void processRecordRequest(RecordRequest recordRequest)

handleRegistration

public RecordResponse handleRegistration(RecordRequest recordRequest)

handleDeRegistration

public RecordResponse handleDeRegistration(RecordRequest recordRequest)

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project