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.ha.framework.server;
23:
24: import java.net.MalformedURLException;
25:
26: import javax.management.ObjectName;
27:
28: import org.jboss.mx.util.ObjectNameFactory;
29: import org.jboss.deployment.scanner.URLDeploymentScannerMBean;
30:
31: /**
32: *
33: * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
34: * @version $Revision: 57188 $
35: *
36: * <p><b>20020809 bill burke:</b>
37: * <ul>
38: * <li>Initial import
39: * </ul>
40: */
41: public interface FarmMemberServiceMBean extends
42: URLDeploymentScannerMBean {
43: /** The default object name. */
44: ObjectName OBJECT_NAME = ObjectNameFactory
45: .create("jboss:service=FarmMember");
46:
47: /**
48: * Gets the name of the HAPartition used by this service.
49: *
50: * @return the name of the partition
51: *
52: * @deprecate use {@link #getClusterPartition()}
53: */
54: String getPartitionName();
55:
56: /**
57: * Sets the name of the HAPartition used by this service.
58: * Can be set only when the MBean is not in a STARTED or STARTING state.
59: *
60: * @param name the name of the partition
61: *
62: * @deprecate use {@link #setClusterPartition()}
63: */
64: void setPartitionName(String name);
65:
66: /**
67: * Get the underlying partition used by this service.
68: *
69: * @return the partition
70: */
71: ClusterPartitionMBean getClusterPartition();
72:
73: /**
74: * Sets the underlying partition used by this service.
75: * Can be set only when the MBean is not in a STARTED or STARTING state.
76: *
77: * @param clusterPartition the partition
78: */
79: void setClusterPartition(ClusterPartitionMBean clusterPartition);
80:
81: /** Backward compatibility, mapped to the URLs attribute of URLDeploymentScannerMBean
82: * @deprecated
83: */
84: public void setFarmDeployDirectory(String urls)
85: throws MalformedURLException;
86:
87: /** Backward compatibility, but ignored as it does nothing.
88: * @deprecated
89: */
90: public void setScannerName(String name);
91: }
|