0N/A/*
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
553N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
553N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
0N/A */
0N/A
0N/Apackage com.sun.jmx.remote.internal;
0N/A
340N/Aimport java.util.Properties;
0N/Aimport java.rmi.Remote;
0N/Aimport java.rmi.RemoteException;
0N/Aimport java.rmi.NoSuchObjectException;
0N/A
0N/A/**
0N/A * An interface to a subset of the RMI-IIOP and CORBA APIs to avoid a
656N/A * static dependencies on the types defined by these APIs.
794N/A */
0N/A
0N/Apublic interface IIOPProxy {
0N/A
0N/A /**
0N/A * Returns true if the given object is a Stub.
0N/A */
0N/A boolean isStub(Object obj);
0N/A
0N/A /**
0N/A * Returns the Delegate to which the given Stub delegates.
0N/A */
0N/A Object getDelegate(Object stub);
0N/A
0N/A /**
0N/A * Sets the Delegate for a given Stub.
0N/A */
0N/A void setDelegate(Object stub, Object delegate);
0N/A
0N/A /**
0N/A * Returns the ORB associated with the given stub
0N/A *
0N/A * @throws UnsupportedOperationException
0N/A * if the object does not support the operation that
0N/A * was invoked
0N/A */
0N/A Object getOrb(Object stub);
580N/A
0N/A /**
0N/A * Connects the Stub to the given ORB.
0N/A */
0N/A void connect(Object stub, Object orb) throws RemoteException;
0N/A
0N/A /**
0N/A * Returns true if the given object is an ORB.
0N/A */
0N/A boolean isOrb(Object obj);
687N/A
135N/A /**
112N/A * Creates, and returns, a new ORB instance.
0N/A */
0N/A Object createOrb(String[] args, Properties props);
0N/A
0N/A /**
0N/A * Converts a string, produced by the object_to_string method, back
0N/A * to a CORBA object reference.
0N/A */
0N/A Object stringToObject(Object orb, String str);
0N/A
0N/A /**
0N/A * Converts the given CORBA object reference to a string.
0N/A */
0N/A String objectToString(Object orb, Object obj);
0N/A
0N/A /**
0N/A * Checks to ensure that an object of a remote or abstract interface
0N/A * type can be cast to a desired type.
0N/A */
687N/A <T> T narrow(Object narrowFrom, Class<T> narrowTo);
112N/A
0N/A /**
0N/A * Makes a server object ready to receive remote calls
0N/A */
0N/A void exportObject(Remote obj) throws RemoteException;
0N/A
135N/A /**
0N/A * Deregisters a server object from the runtime.
0N/A */
0N/A void unexportObject(Remote obj) throws NoSuchObjectException;
0N/A
0N/A /**
0N/A * Returns a stub for the given server object.
0N/A */
0N/A Remote toStub(Remote obj) throws NoSuchObjectException;
0N/A}
0N/A