1 /* 2 * Copyright (c) 2002, 2020, 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. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 // Stub class generated by rmic, do not edit. 26 // Contents subject to change without notice. 27 28 package javax.management.remote.rmi; 29 30 /** 31 * RMIServerImpl Stub. 32 */ 33 @SuppressWarnings({"deprecation", "rawtypes", "unchecked"}) 34 public final class RMIServerImpl_Stub 35 extends java.rmi.server.RemoteStub 36 implements javax.management.remote.rmi.RMIServer { 37 private static final long serialVersionUID = 2; 38 39 private static java.lang.reflect.Method $method_getVersion_0; 40 private static java.lang.reflect.Method $method_newClient_1; 41 42 static { 43 try { 44 $method_getVersion_0 = javax.management.remote.rmi.RMIServer.class.getMethod("getVersion", new java.lang.Class[]{}); 45 $method_newClient_1 = javax.management.remote.rmi.RMIServer.class.getMethod("newClient", new java.lang.Class[]{java.lang.Object.class}); 46 } catch (java.lang.NoSuchMethodException e) { 47 throw new java.lang.NoSuchMethodError( 48 "stub class initialization failed"); 49 } 50 } 51 52 /** 53 * Constructor. 54 * 55 * @param ref ref 56 */ 57 public RMIServerImpl_Stub(java.rmi.server.RemoteRef ref) { 58 super(ref); 59 } 60 61 // methods from remote interfaces 62 63 // Implementationn of getVersion() 64 public java.lang.String getVersion() 65 throws java.rmi.RemoteException { 66 try { 67 Object $result = ref.invoke(this, $method_getVersion_0, null, -8081107751519807347L); 68 return ((java.lang.String) $result); 69 } catch (java.lang.RuntimeException e) { 70 throw e; 71 } catch (java.rmi.RemoteException e) { 72 throw e; 73 } catch (java.lang.Exception e) { 74 throw new java.rmi.UnexpectedException("undeclared checked exception", e); 75 } 76 } 77 78 // Implementationn of newClient(Object) 79 public javax.management.remote.rmi.RMIConnection newClient(java.lang.Object $param_Object_1) 80 throws java.io.IOException { 81 try { 82 Object $result = ref.invoke(this, $method_newClient_1, new java.lang.Object[]{$param_Object_1}, -1089742558549201240L); 83 return ((javax.management.remote.rmi.RMIConnection) $result); 84 } catch (java.lang.RuntimeException e) { 85 throw e; 86 } catch (java.io.IOException e) { 87 throw e; 88 } catch (java.lang.Exception e) { 89 throw new java.rmi.UnexpectedException("undeclared checked exception", e); 90 } 91 } 92 }