001/*
002 * jPOS Project [http://jpos.org]
003 * Copyright (C) 2000-2026 jPOS Software SRL
004 *
005 * This program is free software: you can redistribute it and/or modify
006 * it under the terms of the GNU Affero General Public License as
007 * published by the Free Software Foundation, either version 3 of the
008 * License, or (at your option) any later version.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013 * GNU Affero General Public License for more details.
014 *
015 * You should have received a copy of the GNU Affero General Public License
016 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
017 */
018
019package org.jpos.q2.qbean;
020
021/**
022 * MBean interface.
023 * @author Alwyn Schoeman
024 * @version $Revision: 1476 $ $Date: 2003-04-04 07:43:26 -0300 (Fri, 04 Apr 2003) $
025 */
026public interface QExecMBean extends org.jpos.q2.QBeanSupportMBean {
027
028  /**
029   * Sets the path to the script executed when the bean starts.
030   *
031   * @param scriptPath path to the start script
032   */
033  void setStartScript(java.lang.String scriptPath) ;
034
035  /**
036   * Returns the configured start-script path.
037   *
038   * @return start-script path
039   */
040  java.lang.String getStartScript() ;
041
042  /**
043   * Sets the path to the script executed when the bean shuts down.
044   *
045   * @param scriptPath path to the shutdown script
046   */
047  void setShutdownScript(java.lang.String scriptPath) ;
048
049  /**
050   * Returns the configured shutdown-script path.
051   *
052   * @return shutdown-script path
053   */
054  java.lang.String getShutdownScript() ;
055
056}