Search in sources :

Example 1 with DiskFileStore

use of com.sun.messaging.jmq.jmsserver.persist.api.DiskFileStore in project openmq by eclipse-ee4j.

the class Destination method compact.

/**
 * Compact the message file.
 */
public void compact() throws BrokerException {
    if (!(pstore instanceof DiskFileStore)) {
        throw new BrokerException("XXXI18N - operation not supported");
    }
    ((DiskFileStore) pstore).compactDestination(this);
    Agent agent = Globals.getAgent();
    if (agent != null) {
        agent.notifyDestinationCompact(this);
    }
}
Also used : Agent(com.sun.messaging.jmq.jmsserver.management.agent.Agent) BrokerException(com.sun.messaging.jmq.jmsserver.util.BrokerException) DiskFileStore(com.sun.messaging.jmq.jmsserver.persist.api.DiskFileStore)

Aggregations

Agent (com.sun.messaging.jmq.jmsserver.management.agent.Agent)1 DiskFileStore (com.sun.messaging.jmq.jmsserver.persist.api.DiskFileStore)1 BrokerException (com.sun.messaging.jmq.jmsserver.util.BrokerException)1