    001    /*
    002     * Copyright 2009 Red Hat, Inc.
    003     * Red Hat licenses this file to you under the Apache License, version
    004     * 2.0 (the "License"); you may not use this file except in compliance
    005     * with the License.  You may obtain a copy of the License at
    006     *    http://www.apache.org/licenses/LICENSE-2.0
    007     * Unless required by applicable law or agreed to in writing, software
    008     * distributed under the License is distributed on an "AS IS" BASIS,
    009     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    010     * implied.  See the License for the specific language governing
    011     * permissions and limitations under the License.
    012     */
    013
    014    package org.hornetq.api.core.management;
    015
    016    import java.util.Map;
    017
    018    import org.hornetq.spi.core.remoting.Acceptor;
    019    import org.hornetq.spi.core.remoting.AcceptorFactory;
    020
    021    /**
    022     * An AcceptorControl is used to manage Acceptors.
    023     *
    024     * @author <a href="jmesnil@redhat.com">Jeff Mesnil</a>
    025     *
    026     * @see Acceptor
    027     */
    028    public interface AcceptorControl extends HornetQComponentControl
    029    {
    030       /**
    031        * Returns the name of the acceptor
    032        */
    033       String getName();
    034
    035       /**
    036        * Returns the class name of the AcceptorFactory implementation
    037        * used by this acceptor.
    038        *
    039        * @see AcceptorFactory
    040        */
    041       String getFactoryClassName();
    042
    043       /**
    044        * Returns the parameters used to configure this acceptor
    045        */
    046       Map<String, Object> getParameters();
    047    }