public class LevelDBQueueAdmin extends AbstractQueueAdmin
type, unqualifiedTableNamePrefix| Modifier | Constructor and Description |
|---|---|
|
LevelDBQueueAdmin(CConfiguration conf,
LevelDBTableService service) |
protected |
LevelDBQueueAdmin(LevelDBTableService service,
QueueConstants.QueueType type) |
| 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.
|
boolean |
doDropTable(QueueName queueName)
This determines whether dropping a queue is supported (by dropping the queue's table).
|
boolean |
doTruncateTable(QueueName queueName)
This determines whether truncating a queue is supported (by truncating the queue's table).
|
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) |
String |
getActualTableName(QueueName queueName) |
QueueConfigurer |
getQueueConfigurer(QueueName queueName)
Returns a
QueueConfigurer for configuring the queue. |
protected String |
getTableNameForFlow(Id.Flow flowId) |
void |
truncate(QueueName queueName)
Wipes out queue data.
|
void |
upgrade()
Performs upgrade action for all queues.
|
getApplicationName, getDataTableId, getDataTableId, getFlowName@Inject public LevelDBQueueAdmin(CConfiguration conf, LevelDBTableService service)
protected LevelDBQueueAdmin(LevelDBTableService service, QueueConstants.QueueType type)
public boolean doDropTable(QueueName queueName)
public boolean doTruncateTable(QueueName queueName)
public boolean exists(QueueName queueName)
queueName - Name of the queuepublic void create(QueueName queueName) throws Exception
QueueAdminqueueName - Name of the queueException - if creation failspublic void create(QueueName queueName, Properties props) throws Exception
QueueAdminqueueName - Name of the queueprops - additional propertiesException - if creation failspublic void truncate(QueueName queueName) throws Exception
QueueAdminqueueName - Name of the queueException - if cleanup failspublic void clearAllForFlow(Id.Flow flowId) throws Exception
QueueAdminExceptionpublic QueueConfigurer getQueueConfigurer(QueueName queueName)
QueueAdminQueueConfigurer for configuring the queue.public void dropAllForFlow(Id.Flow flowId) throws Exception
QueueAdminExceptionpublic void dropAllInNamespace(Id.Namespace namespaceId) throws Exception
QueueAdminnamespaceId - the namespace to delete flows inExceptionpublic void upgrade()
throws Exception
QueueAdminExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.