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 24 import java.security.Principal; 25 import java.util.List; 26 27 import javax.management.remote.JMXServiceURL ; 28 import javax.management.ObjectName; 29 30 @SqeDescriptorKey("INTERFACE ServerDelegateMBean") 31 public interface ServerDelegateMBean { 32 @SqeDescriptorKey("ATTRIBUTE Address") addAddress(JMXServiceURL url)33 public void addAddress(JMXServiceURL url); 34 35 @SqeDescriptorKey("ATTRIBUTE Address") getAddresses()36 public List<JMXServiceURL> getAddresses(); 37 getPort()38 public String getPort(); setPort(String p)39 public void setPort(String p); 40 getJavaVersion()41 public String getJavaVersion(); 42 sqeJmxwsCredentialsProviderCalled()43 public void sqeJmxwsCredentialsProviderCalled(); getSqeJmxwsCredentialsProviderCallCount()44 public int getSqeJmxwsCredentialsProviderCallCount(); 45 setJmxwsCredentialsProviderUrl(String url)46 public void setJmxwsCredentialsProviderUrl(String url); getJmxwsCredentialsProviderUrl()47 public String getJmxwsCredentialsProviderUrl(); 48 testJMXAuthenticatorCalled()49 public void testJMXAuthenticatorCalled(); getTestJMXAuthenticatorCallCount()50 public int getTestJMXAuthenticatorCallCount(); 51 setTestJMXAuthenticatorPrincipal(Principal principal)52 public void setTestJMXAuthenticatorPrincipal(Principal principal); getTestJMXAuthenticatorPrincipalString()53 public String getTestJMXAuthenticatorPrincipalString(); 54 createStandardMBean( String implementationClassName, String interfaceClassName, boolean isMXBean, ObjectName name)55 public void createStandardMBean( 56 String implementationClassName, 57 String interfaceClassName, 58 boolean isMXBean, 59 ObjectName name) 60 throws Exception; 61 createStandardMBean( String implementationClassName, boolean isMXBean, ObjectName name)62 public void createStandardMBean( 63 String implementationClassName, 64 boolean isMXBean, 65 ObjectName name) 66 throws Exception; 67 } 68