public abstract class DefaultCommandHandler extends Object implements MDICommandHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultCommandHandler.CommandProcessingTask |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCommandHandler(DefaultCommandHandler.CommandProcessingTask commandProcessingTask) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleCommand(Class<?> cmdClz) |
boolean |
canSendNotification(Class<MDINotification> notificationClz) |
protected abstract void |
fillHandledCommands() |
protected abstract void |
fillSendNotifications() |
DefaultCommandHandler.CommandProcessingTask |
getCommandProcessingTask() |
HashSet<Class<? extends MDICommand>> |
getHandledCommands() |
BlockingQueue<MDICommand> |
getMDICommandQueue() |
BlockingQueue<MDINotification> |
getMDINotificationQueue() |
Set<BICEPSQoSPolicy> |
getPoliciesForCommand(Class<? extends MDICommand> commandClz) |
protected HashSet<Class<? extends MDINotification>> |
getSendNotifications() |
void |
setMDICommandQueue(BlockingQueue<MDICommand> cmdQueue) |
void |
setMDINotificationQueue(BlockingQueue<MDINotification> notificationQueue) |
void |
startCommandQueueProcessing() |
void |
stopCommandQueueProcessing() |
protected DefaultCommandHandler(DefaultCommandHandler.CommandProcessingTask commandProcessingTask)
public boolean canSendNotification(Class<MDINotification> notificationClz)
canSendNotification in interface MDIHandlerprotected HashSet<Class<? extends MDINotification>> getSendNotifications()
public Set<BICEPSQoSPolicy> getPoliciesForCommand(Class<? extends MDICommand> commandClz)
getPoliciesForCommand in interface MDICommandHandlerpublic BlockingQueue<MDINotification> getMDINotificationQueue()
getMDINotificationQueue in interface MDICommandHandlerpublic void setMDINotificationQueue(BlockingQueue<MDINotification> notificationQueue)
setMDINotificationQueue in interface MDIHandlerpublic boolean canHandleCommand(Class<?> cmdClz)
canHandleCommand in interface MDICommandHandlerpublic HashSet<Class<? extends MDICommand>> getHandledCommands()
getHandledCommands in interface MDICommandHandlerpublic BlockingQueue<MDICommand> getMDICommandQueue()
getMDICommandQueue in interface MDICommandHandlerpublic void setMDICommandQueue(BlockingQueue<MDICommand> cmdQueue)
setMDICommandQueue in interface MDICommandHandlerpublic void startCommandQueueProcessing()
startCommandQueueProcessing in interface MDICommandHandlerpublic void stopCommandQueueProcessing()
stopCommandQueueProcessing in interface MDICommandHandlerpublic DefaultCommandHandler.CommandProcessingTask getCommandProcessingTask()
protected abstract void fillSendNotifications()
protected abstract void fillHandledCommands()
Copyright © 2018. All rights reserved.