1/*
2 * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24import java.security.Principal;
25import java.util.List;
26
27import javax.management.remote.JMXServiceURL ;
28import javax.management.ObjectName;
29
30@SqeDescriptorKey("INTERFACE ServerDelegateMBean")
31public interface ServerDelegateMBean {
32    @SqeDescriptorKey("ATTRIBUTE Address")
33    public void addAddress(JMXServiceURL url);
34
35    @SqeDescriptorKey("ATTRIBUTE Address")
36    public List<JMXServiceURL> getAddresses();
37
38    public String getPort();
39    public void setPort(String p);
40
41    public String getJavaVersion();
42
43    public void sqeJmxwsCredentialsProviderCalled();
44    public int getSqeJmxwsCredentialsProviderCallCount();
45
46    public void setJmxwsCredentialsProviderUrl(String url);
47    public String getJmxwsCredentialsProviderUrl();
48
49    public void testJMXAuthenticatorCalled();
50    public int getTestJMXAuthenticatorCallCount();
51
52    public void setTestJMXAuthenticatorPrincipal(Principal principal);
53    public String getTestJMXAuthenticatorPrincipalString();
54
55    public void createStandardMBean(
56            String implementationClassName,
57            String interfaceClassName,
58            boolean isMXBean,
59            ObjectName name)
60            throws Exception;
61
62    public void createStandardMBean(
63            String implementationClassName,
64            boolean isMXBean,
65            ObjectName name)
66            throws Exception;
67}
68