public class InMemoryQueueAdmin extends Object implements QueueAdmin
| Modifier and Type | Field and Description |
|---|---|
protected InMemoryQueueService |
queueService |
| Constructor and Description |
|---|
InMemoryQueueAdmin(InMemoryQueueService queueService) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllForFlow(Id.Flow flowId)
Clears all queues for a flow, for example if the flow is upgraded and old.
|
void |
create(QueueName queueName)
Creates queue if doesn't exist.
|
void |
create(QueueName queueName,
Properties props)
Creates queue if doesn't exist.
|
void |
dropAllForFlow(Id.Flow flowId)
Deletes all queues for a flow, for example if the flow is deleted.
|
void |
dropAllInNamespace(Id.Namespace namespaceId)
Deletes all queues in a namespace
|
boolean |
exists(QueueName queueName) |
QueueConfigurer |
getQueueConfigurer(QueueName queueName)
Returns a
QueueConfigurer for configuring the queue. |
void |
truncate(QueueName queueName)
Wipes out queue data.
|
void |
upgrade()
Performs upgrade action for all queues.
|
protected final InMemoryQueueService queueService
@Inject public InMemoryQueueAdmin(InMemoryQueueService queueService)
public boolean exists(QueueName queueName) throws Exception
exists in interface QueueAdminqueueName - Name of the queueException - if check failspublic void create(QueueName queueName) throws Exception
QueueAdmincreate in interface QueueAdminqueueName - Name of the queueException - if creation failspublic void create(QueueName queueName, Properties props) throws Exception
QueueAdmincreate in interface QueueAdminqueueName - Name of the queueprops - additional propertiesException - if creation failspublic void truncate(QueueName queueName) throws Exception
QueueAdmintruncate in interface QueueAdminqueueName - Name of the queueException - if cleanup failspublic void clearAllForFlow(Id.Flow flowId) throws Exception
QueueAdminclearAllForFlow in interface QueueAdminExceptionpublic QueueConfigurer getQueueConfigurer(QueueName queueName)
QueueAdminQueueConfigurer for configuring the queue.getQueueConfigurer in interface QueueAdminpublic void dropAllInNamespace(Id.Namespace namespaceId) throws Exception
QueueAdmindropAllInNamespace in interface QueueAdminnamespaceId - the namespace to delete flows inExceptionpublic void dropAllForFlow(Id.Flow flowId) throws Exception
QueueAdmindropAllForFlow in interface QueueAdminExceptionpublic void upgrade()
throws Exception
QueueAdminupgrade in interface QueueAdminExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.