Examples of RMIExporter


Examples of com.sun.jmx.remote.internal.RMIExporter

    protected void export() throws IOException {
        export(this);
    }

    private void export(Remote obj) throws RemoteException {
        final RMIExporter exporter =
            (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
        final boolean daemon = EnvHelp.isServerDaemon(env);

        if (daemon && exporter != null) {
            throw new IllegalArgumentException("If "+EnvHelp.JMX_SERVER_DAEMON+
                    " is specified as true, "+RMIExporter.EXPORTER_ATTRIBUTE+
                    " cannot be used to specify an exporter!");
        }

        if (daemon) {
            if (csf == null && ssf == null) {
                new UnicastServerRef(port).exportObject(obj, null, true);
            } else {
                new UnicastServerRef2(port, csf, ssf).exportObject(obj, null, true);
            }
        } else if (exporter != null) {
            exporter.exportObject(obj, port, csf, ssf);
        } else {
            UnicastRemoteObject.exportObject(obj, port, csf, ssf);
        }
    }
View Full Code Here

Examples of com.sun.jmx.remote.internal.RMIExporter

        }
    }

    private void unexport(Remote obj, boolean force)
            throws NoSuchObjectException {
        RMIExporter exporter =
            (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
        if (exporter == null)
            UnicastRemoteObject.unexportObject(obj, force);
        else
            exporter.unexportObject(obj, force);
    }
View Full Code Here

Examples of com.sun.jmx.remote.internal.RMIExporter

    protected void export() throws IOException {
  export(this);
    }

    private void export(Remote obj) throws RemoteException {
  RMIExporter exporter =
      (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
  if (exporter == null)
      UnicastRemoteObject.exportObject(obj, port, csf, ssf);
  else
      exporter.exportObject(obj, port, csf, ssf);
    }
View Full Code Here

Examples of com.sun.jmx.remote.internal.RMIExporter

      exporter.exportObject(obj, port, csf, ssf);
    }

    private void unexport(Remote obj, boolean force)
      throws NoSuchObjectException {
  RMIExporter exporter =
      (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
  if (exporter == null)
      UnicastRemoteObject.unexportObject(obj, force);
  else
      exporter.unexportObject(obj, force);
    }
View Full Code Here

Examples of com.sun.jmx.remote.internal.RMIExporter

    protected void export() throws IOException {
        export(this);
    }

    private void export(Remote obj) throws RemoteException {
        final RMIExporter exporter =
            (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
        final boolean daemon = EnvHelp.isServerDaemon(env);

        if (daemon && exporter != null) {
            throw new IllegalArgumentException("If "+EnvHelp.JMX_SERVER_DAEMON+
                    " is specified as true, "+RMIExporter.EXPORTER_ATTRIBUTE+
                    " cannot be used to specify an exporter!");
        }

        if (daemon) {
            if (csf == null && ssf == null) {
                new UnicastServerRef(port).exportObject(obj, null, true);
            } else {
                new UnicastServerRef2(port, csf, ssf).exportObject(obj, null, true);
            }
        } else if (exporter != null) {
            exporter.exportObject(obj, port, csf, ssf);
        } else {
            UnicastRemoteObject.exportObject(obj, port, csf, ssf);
        }
    }
View Full Code Here

Examples of com.sun.jmx.remote.internal.RMIExporter

        }
    }

    private void unexport(Remote obj, boolean force)
            throws NoSuchObjectException {
        RMIExporter exporter =
            (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
        if (exporter == null)
            UnicastRemoteObject.unexportObject(obj, force);
        else
            exporter.unexportObject(obj, force);
    }
View Full Code Here

Examples of com.sun.jmx.remote.internal.RMIExporter

    protected void export() throws IOException {
        export(this);
    }

    private void export(Remote obj) throws RemoteException {
        RMIExporter exporter =
            (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
        if (exporter == null)
            UnicastRemoteObject.exportObject(obj, port, csf, ssf);
        else
            exporter.exportObject(obj, port, csf, ssf);
    }
View Full Code Here

Examples of com.sun.jmx.remote.internal.RMIExporter

            exporter.exportObject(obj, port, csf, ssf);
    }

    private void unexport(Remote obj, boolean force)
            throws NoSuchObjectException {
        RMIExporter exporter =
            (RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE);
        if (exporter == null)
            UnicastRemoteObject.unexportObject(obj, force);
        else
            exporter.unexportObject(obj, force);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.