001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * matic 011 */ 012package org.nuxeo.ecm.core.management.api; 013 014import java.util.Date; 015 016/** 017 * @author Stephane Lacoin (Nuxeo EP Software Engineer) 018 */ 019public interface ProbeMBean { 020 021 boolean isEnabled(); 022 023 void enable(); 024 025 void disable(); 026 027 boolean isInError(); 028 029 long getRunnedCount(); 030 031 Date getLastRunnedDate(); 032 033 long getLastDuration(); 034 035 long getSucceedCount(); 036 037 Date getLastSucceedDate(); 038 039 long getFailedCount(); 040 041 Date getLastFailedDate(); 042 043 ProbeStatus getLastFailureStatus(); 044 045}