KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > services > binding > ServiceBindingManagerMBean


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.services.binding;
23
24 import java.net.URL JavaDoc;
25
26 import javax.management.ObjectName JavaDoc;
27
28 import org.jboss.mx.util.ObjectNameFactory;
29
30 /**
31  * ServiceBindingManager MBean interface
32  *
33  * @author <a HREF="mailto:bitpushr@rochester.rr.com">Mike Finn</a>
34  * @author Scott.Stark@jboss.org
35  * @author <a HREF="mailto:dimitris@jboss.org">Dimitris Andreadis</a>
36  * @version $Revision: 37459 $
37  */

38 public interface ServiceBindingManagerMBean extends org.jboss.system.ServiceBinding
39 {
40    /** Default ObjectName */
41    static final ObjectName JavaDoc OBJECT_NAME = ObjectNameFactory.create("jboss.system:service=ServiceBindingManager");
42    
43    // Attributes ----------------------------------------------------
44

45    /**
46     * The name of the server this manager is associated with. This is a
47     * logical name used to lookup ServiceConfigs from the ServicesStore.
48     */

49    void setServerName(String JavaDoc serverName);
50    String JavaDoc getServerName();
51
52    /**
53     * The name of the class implementation of the ServicesStoreFatory. The
54     * default value is org.jboss.services.binding.XMLServicesStoreFactory.
55     */

56    void setStoreFactoryClassName(String JavaDoc storeFactoryClassName);
57    String JavaDoc getStoreFactoryClassName();
58    
59    /**
60     * The URL of the configuration store.
61     */

62    void setStoreURL(URL JavaDoc storeURL);
63    URL JavaDoc getStoreURL();
64
65    /**
66     * The ObjectName of the ServiceController,
67     * defaults to ServiceControllerMBean.OBJECT_NAME
68     */

69    void setServiceController(ObjectName JavaDoc serviceController) throws Exception JavaDoc;
70    ObjectName JavaDoc getServiceController();
71    
72    // Operations ----------------------------------------------------
73

74    /**
75     * Looks up the service config for the given service,
76     * using the server name bound to this mbean.
77     *
78     * @param serviceName the JMX ObjectName of the service
79     * @return ServiceConfig instance if found, null otherwise
80     */

81    ServiceConfig getServiceConfig(ObjectName JavaDoc serviceName) throws Exception JavaDoc;
82
83 }
84
Popular Tags