public abstract class DefaultCommandHandler extends java.lang.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(java.lang.Class<?> cmdClz) |
boolean |
canSendNotification(java.lang.Class<MDINotification> notificationClz) |
protected abstract void |
fillHandledCommands() |
protected abstract void |
fillSendNotifications() |
DefaultCommandHandler.CommandProcessingTask |
getCommandProcessingTask() |
java.util.HashSet<java.lang.Class<? extends MDICommand>> |
getHandledCommands() |
java.util.concurrent.BlockingQueue<MDICommand> |
getMDICommandQueue() |
java.util.concurrent.BlockingQueue<MDINotification> |
getMDINotificationQueue() |
java.util.Set<BICEPSQoSPolicy> |
getPoliciesForCommand(java.lang.Class<? extends MDICommand> commandClz) |
protected java.util.HashSet<java.lang.Class<? extends MDINotification>> |
getSendNotifications() |
void |
setMDICommandQueue(java.util.concurrent.BlockingQueue<MDICommand> cmdQueue) |
void |
setMDINotificationQueue(java.util.concurrent.BlockingQueue<MDINotification> notificationQueue) |
void |
startCommandQueueProcessing() |
void |
stopCommandQueueProcessing() |
protected DefaultCommandHandler(DefaultCommandHandler.CommandProcessingTask commandProcessingTask)
public boolean canSendNotification(java.lang.Class<MDINotification> notificationClz)
canSendNotification in interface MDIHandlerprotected java.util.HashSet<java.lang.Class<? extends MDINotification>> getSendNotifications()
public java.util.Set<BICEPSQoSPolicy> getPoliciesForCommand(java.lang.Class<? extends MDICommand> commandClz)
getPoliciesForCommand in interface MDICommandHandlerpublic java.util.concurrent.BlockingQueue<MDINotification> getMDINotificationQueue()
getMDINotificationQueue in interface MDICommandHandlerpublic void setMDINotificationQueue(java.util.concurrent.BlockingQueue<MDINotification> notificationQueue)
setMDINotificationQueue in interface MDIHandlerpublic boolean canHandleCommand(java.lang.Class<?> cmdClz)
canHandleCommand in interface MDICommandHandlerpublic java.util.HashSet<java.lang.Class<? extends MDICommand>> getHandledCommands()
getHandledCommands in interface MDICommandHandlerpublic java.util.concurrent.BlockingQueue<MDICommand> getMDICommandQueue()
getMDICommandQueue in interface MDICommandHandlerpublic void setMDICommandQueue(java.util.concurrent.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()