Package net.bluemind.mailbox.api
Interface IMailboxMgmt
@Path("/mgmt/mailbox/{domainUid}")
public interface IMailboxMgmt
-
Method Summary
Modifier and TypeMethodDescriptionaddIndexToRing
(Integer numericIndex) reindex all domain mailboxesconsolidateMailbox
(String mailboxUid) consolidate a single mailbox aliasdeleteIndexFromRing
(Integer numericIndex) void
move ES indexresetMailbox
(String mailboxUid) reset a single mailbox aliasrespawnMailbox
(String mailboxUid) respawn a single mailbox alias into a new shard
-
Method Details
-
consolidateMailbox
@POST @Path("{mailboxUid}/_consolidate") TaskRef consolidateMailbox(@PathParam("mailboxUid") String mailboxUid) throws ServerFault consolidate a single mailbox alias- Parameters:
mailboxUid
-- Returns:
- Throws:
ServerFault
-
resetMailbox
@POST @Path("{mailboxUid}/_reset") TaskRef resetMailbox(@PathParam("mailboxUid") String mailboxUid) throws ServerFault reset a single mailbox alias- Parameters:
mailboxUid
-- Returns:
- Throws:
ServerFault
-
respawnMailbox
@POST @Path("{mailboxUid}/_respawn") TaskRef respawnMailbox(@PathParam("mailboxUid") String mailboxUid) throws ServerFault respawn a single mailbox alias into a new shard- Parameters:
mailboxUid
-- Returns:
- Throws:
ServerFault
-
consolidateDomain
reindex all domain mailboxes- Returns:
- Throws:
ServerFault
-
moveIndex
@POST @Path("{mailboxUid}/_move_index") TaskRef moveIndex(@PathParam("mailboxUid") String mailboxUid, @QueryParam("index") String indexName, @QueryParam("deleteSource") boolean deleteSource) throws ServerFault move ES index- Parameters:
mailboxUid
-indexName
- indexName must start with mailspool. ex mailspool_2deleteSource
-- Returns:
- Throws:
ServerFault
-
addIndexToRing
@PUT @Path("{numericIndex}/_add_index") TaskRef addIndexToRing(@PathParam("numericIndex") Integer numericIndex) throws ServerFault - Throws:
ServerFault
-
deleteIndexFromRing
@DELETE @Path("{numericIndex}/_remove_index") TaskRef deleteIndexFromRing(@PathParam("numericIndex") Integer numericIndex) throws ServerFault - Throws:
ServerFault
-
move
- Throws:
ServerFault
-
getShardsStats
- Returns:
- list of
ShardStats
ordered bySimpleShardStats.docCount
-
getLiteStats
- Returns:
- list of
ShardStats
ordered bySimpleShardStats.docCount
-