All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.carol.util.configuration.ServerConfigurationImplMBean Maven / Gradle / Ivy

There is a newer version: 3.0.10
Show newest version
/**
 * Copyright (C) 2007 - Bull S.A.S.
 *
 * CAROL: Common Architecture for RMI ObjectWeb Layer
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * --------------------------------------------------------------------------
 * $Id: ServerConfigurationImplMBean.java 1793 2008-05-15 07:50:09Z eyindanga $
 * --------------------------------------------------------------------------
 */
package org.ow2.carol.util.configuration;

import java.util.Properties;

public interface ServerConfigurationImplMBean {

    /**
     * @return Gets the object name of this mbean
     */
    String getObjectName();

    /**
     * @return true if JNDI has to be started (set of MultiORB ICTX factory)
     */
    boolean isStartingJNDI();

    /**
     * @return true if name services have to be launched)
     */
    boolean isStartingNS();

    /**
     * @return true if ProdelegateClass has to be set to MultiProDelegate
     */
    boolean isStartingRMI();

    /* -------------- Configuration of CMI -----------------*/
    /**
     * @return true if CMI is used
     */
    boolean isStartCMI();


    /**
     * Enables Cmi.
     * @param cmiProperties cmi configuration
     * @throws Exception if cmi cannot be configured
     */
    void enableCMI(final Properties cmiProperties) throws Exception;

    /**
     * Enables Cmi.
     * @throws Exception if cmi cannot be configured
     */
    void enableCMI() throws Exception;

    /**
     * Disables Cmi.
     * @throws Exception if cmi cannot be disabled.
     */
    void disableCMI() throws Exception;

    /**
     * @return a InitialContextFactory name to use with CMI
     */
    String getCmiInitialContextFactory();

    /**
     * Set the object name of this mbean.
     * @param name the Object Name
     */
    void setObjectName(String string);

    /**
     * @return true if this is a server
     */
    boolean isServer();

    /**
     * Return true if a protocol-independent environment is used.
     * Otherwise the environment of the default protocol is used.
     * @return true if a protocol-independent environment is used
     */
    boolean isMultiEnvironment();

    /**
     * Set if a protocol-independent environment is used.
     * @param multiEnvironment true if a protocol-independent environment is used
     */
    void setMultiEnvironment(boolean multiEnvironment);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy