public class MailboxMgmt extends java.lang.Object implements IMailboxMgmt
Modifier and Type | Class and Description |
---|---|
class |
MailboxMgmt.ServerInfo |
Constructor and Description |
---|
MailboxMgmt(BmContext context,
java.lang.String domainUid) |
Modifier and Type | Method and Description |
---|---|
TaskRef |
consolidateDomain()
reindex all domain mailboxes
|
TaskRef |
consolidateMailbox(java.lang.String mailboxUid)
consolidate a single mailbox index
|
java.util.List<ShardStats> |
getShardsStats() |
void |
move(ItemValue<Mailbox> mailbox,
ItemValue<Server> server) |
TaskRef |
moveIndex(java.lang.String mailboxUid,
java.lang.String indexName)
move ES index
|
public MailboxMgmt(BmContext context, java.lang.String domainUid)
public TaskRef consolidateMailbox(java.lang.String mailboxUid) throws ServerFault
IMailboxMgmt
consolidateMailbox
in interface IMailboxMgmt
ServerFault
public TaskRef consolidateDomain() throws ServerFault
IMailboxMgmt
consolidateDomain
in interface IMailboxMgmt
ServerFault
public TaskRef moveIndex(java.lang.String mailboxUid, java.lang.String indexName) throws ServerFault
IMailboxMgmt
moveIndex
in interface IMailboxMgmt
indexName
- indexName must start with mailspool. ex mailspool_2ServerFault
public java.util.List<ShardStats> getShardsStats()
getShardsStats
in interface IMailboxMgmt
ShardStats
ordered by ShardStats.docCount
public void move(ItemValue<Mailbox> mailbox, ItemValue<Server> server) throws ServerFault
move
in interface IMailboxMgmt
ServerFault
Copyright © 2021. All Rights Reserved.