01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * 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;
25:
26: import javax.management.ObjectName;
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: 57210 $
37: */
38: public interface ServiceBindingManagerMBean extends
39: org.jboss.system.ServiceBinding {
40: /** Default ObjectName */
41: static final ObjectName OBJECT_NAME = ObjectNameFactory
42: .create("jboss.system:service=ServiceBindingManager");
43:
44: // Attributes ----------------------------------------------------
45:
46: /**
47: * The name of the server this manager is associated with. This is a
48: * logical name used to lookup ServiceConfigs from the ServicesStore.
49: */
50: void setServerName(String serverName);
51:
52: String getServerName();
53:
54: /**
55: * The name of the class implementation of the ServicesStoreFatory. The
56: * default value is org.jboss.services.binding.XMLServicesStoreFactory.
57: */
58: void setStoreFactoryClassName(String storeFactoryClassName);
59:
60: String getStoreFactoryClassName();
61:
62: /**
63: * The URL of the configuration store.
64: */
65: void setStoreURL(URL storeURL);
66:
67: URL getStoreURL();
68:
69: /**
70: * The ObjectName of the ServiceController,
71: * defaults to ServiceControllerMBean.OBJECT_NAME
72: */
73: void setServiceController(ObjectName serviceController)
74: throws Exception;
75:
76: ObjectName getServiceController();
77:
78: // Operations ----------------------------------------------------
79:
80: /**
81: * Looks up the service config for the given service,
82: * using the server name bound to this mbean.
83: *
84: * @param serviceName the JMX ObjectName of the service
85: * @return ServiceConfig instance if found, null otherwise
86: */
87: ServiceConfig getServiceConfig(ObjectName serviceName)
88: throws Exception;
89:
90: }
|