cgl.narada.service.record
Class RecordServiceImpl
java.lang.Object
cgl.narada.service.record.RecordService
cgl.narada.service.record.RecordServiceImpl
- All Implemented Interfaces:
- NBEventListener, ServiceExceptionListener
public class RecordServiceImpl
- extends RecordService
- implements NBEventListener, ServiceExceptionListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordServiceImpl
public RecordServiceImpl()
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