001/*
002 * JPPF.
003 * Copyright (C) 2005-2019 JPPF Team.
004 * http://www.jppf.org
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.jppf.management;
020
021import java.io.Serializable;
022
023/**
024 * MBean interface for various maintenance operations on the nodes.
025 * @author Laurent Cohen
026 */
027public interface JPPFNodeMaintenanceMBean extends Serializable
028{
029  /**
030   * Object name for this MBean.
031   */
032  String MBEAN_NAME = "org.jppf:name=node.maintenance,type=node";
033
034  /**
035   * Request a reset of the resource caches of all the JPPF class loaders maintained by the node.<br>
036   * This method does not perform the reset imediately. Instead, it sets an internal flag, and the reset
037   * will take place when it is safe to do so, as part of the node's life cycle.
038   * @throws Exception if any error occurs while requesting the reset.
039   */
040  void requestResourceCacheReset() throws Exception;
041}