AgentMBean.java 1.97 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.granite.jmx.annotation.Description
 */
package com.day.cq.replication.impl;

import com.adobe.granite.jmx.annotation.Description;
import java.util.Date;

@Description(value="Provides information about a replication agent and its queue.")
public interface AgentMBean {
    @Description(value="Returns the id of the agent. The id is unique among the agents")
    public String getId();

    @Description(value="Checks if the agent is active")
    public boolean isEnabled();

    @Description(value="Checks if agent is valid")
    public boolean isValid();

    @Description(value="Checks if the queue is currently blocked")
    public boolean isQueueBlocked();

    @Description(value="Returns the number of entries in the replication queue.")
    public long getQueueNumEntries();

    @Description(value="Checks if the queue is paused.")
    public boolean isQueuePaused();

    @Description(value="Controls if this queue should be paused. Please note that the \"paused\" state is not persisted (yet), i.e. will be in running state after a restart.")
    public void setQueuePaused(boolean var1);

    @Description(value="Gets the time when this status was generated")
    public Date getQueueStatusTime();

    @Description(value="Returns the time when the next retry is performed if the queue is blocked or null otherwise.")
    public Date getQueueNextRetryTime();

    @Description(value="Gets the time since the queue is processing an entry or NULL if the queue is currently blocked or idle.")
    public Date getQueueProcessingSince();

    @Description(value="Returns the time when the last entry was processed.")
    public Date getQueueLastProcessTime();

    @Description(value="Forces a retry attempt on a blocked entry. this has only an effect, if the queue is blocked.")
    public void queueForceRetry();

    @Description(value="Clears the queue and removes all queue entries")
    public void queueClear();
}