5203N/A/*
5203N/A * CDDL HEADER START
5203N/A *
5203N/A * The contents of this file are subject to the terms of the
5203N/A * Common Development and Distribution License, Version 1.0 only
5203N/A * (the "License"). You may not use this file except in compliance
5203N/A * with the License.
5203N/A *
5203N/A * You can obtain a copy of the license at
5203N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
5203N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
5203N/A * See the License for the specific language governing permissions
5203N/A * and limitations under the License.
5203N/A *
5203N/A * When distributing Covered Code, include this CDDL HEADER in each
5203N/A * file and include the License file at
5203N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
5203N/A * add the following below this CDDL HEADER, with the fields enclosed
5203N/A * by brackets "[]" replaced with your own identifying information:
5203N/A * Portions Copyright [yyyy] [name of copyright owner]
5203N/A *
5203N/A * CDDL HEADER END
5203N/A *
5203N/A *
5203N/A * Copyright 2010 Sun Microsystems, Inc.
5203N/A */
5203N/A
5203N/Apackage org.opends.server.api;
5203N/A
5207N/Aimport org.opends.server.extensions.DiskSpaceMonitor;
5207N/A
5203N/A/**
5203N/A * This interface defines the set of methods that must be implemented
5203N/A * for a DiskSpaceMonitorHandler. Disk space monitor handlers are
5203N/A * used to receive notifications from the DiskSpaceMonitor service
5203N/A * when the registered thresholds have been reached.
5203N/A */
5203N/Apublic interface DiskSpaceMonitorHandler {
5203N/A
5203N/A /**
5203N/A * Notifies that the registered "low" threshold have been reached.
5203N/A *
5207N/A * @param monitor The DiskSpaceMonitor that detected this event.
5203N/A */
5207N/A public void diskLowThresholdReached(DiskSpaceMonitor monitor);
5203N/A
5203N/A /**
5203N/A * Notifies that the registered "full" threshold have been reached.
5203N/A *
5207N/A * @param monitor The DiskSpaceMonitor that detected this event.
5203N/A */
5207N/A public void diskFullThresholdReached(DiskSpaceMonitor monitor);
5203N/A
5203N/A /**
5203N/A * Notifies that the free disk space is now above both "low" and
5203N/A * "full" thresholds.
5203N/A *
5207N/A * @param monitor The DiskSpaceMonitor that detected this event.
5203N/A */
5207N/A public void diskSpaceRestored(DiskSpaceMonitor monitor);
5203N/A}