Package java.rmi.server

Examples of java.rmi.server.RMIClientSocketFactory


        if (readCsf) {
            inCsf = in.readUnsignedByte();
        }
        String host = (String) in.readUTF();
        int port = in.readInt();
        RMIClientSocketFactory csf = null;

        if (readCsf && inCsf == NONNULL_CSF) {
            csf = (RMIClientSocketFactory) in.readObject();
        }
        return new Endpoint(host, port, csf, null);
View Full Code Here


     *
     * @return non-null RMIClientSocketFactory
     */
    public static RMIClientSocketFactory getNonNullClientFactory(
            RMIClientSocketFactory csf) {
        RMIClientSocketFactory factory =
                (csf == null) ? getSocketFactory() : csf;
        return (factory == null) ? getDefaultSocketFactory() : factory;
    }
View Full Code Here

      {
         clientConnectHost = bindHost;
      }

      RMIServerSocketFactory ssf = new RemotingRMIServerSocketFactory(getServerSocketFactory(), BACKLOG_DEFAULT, bindHost, getTimeout());
      RMIClientSocketFactory csf = getRMIClientSocketFactory(clientConnectHost);
      stub = UnicastRemoteObject.exportObject(this, bindPort, csf, ssf);

      log.debug("Binding registry to " + "remoting/RMIServerInvoker/" + bindPort);
      registry.rebind("remoting/RMIServerInvoker/" + bindPort, this);
View Full Code Here

            System.setProperty("java.rmi.server.randomIDs", "true");

            // Create the environment
            HashMap<String,Object> env = new HashMap<>();

            RMIClientSocketFactory csf = null;
            RMIServerSocketFactory ssf = null;

            // Configure SSL for RMI connection if required
            if (rmiSSL) {
                if (rmiBindAddress != null) {
View Full Code Here

              + ",passwordFile:" + passwordFile + ",accessFile:" + accessFile);

    // Environment map
    HashMap<String, Object> jmxEnv = new HashMap<String, Object>();

    RMIClientSocketFactory csf = null;
    RMIServerSocketFactory ssf = null;

    if (rmiSSL) {
      if (rmiRegistryPort == rmiConnectorPort) {
        throw new IOException("SSL is enabled. " +
View Full Code Here

        PrincipalDatabase db = map.get(jmxDatabaseName);

        HashMap<String,Object> env = new HashMap<String,Object>();

        //Socket factories for the RMIConnectorServer, either default or SLL depending on configuration
        RMIClientSocketFactory csf;
        RMIServerSocketFactory ssf;

        //check ssl enabled option in config, default to true if option is not set
        boolean sslEnabled = appRegistry.getConfiguration().getManagementSSLEnabled();
View Full Code Here

  private static int port;

  public static void startServer(Searchable searchable) throws Exception {
    // publish it
    // use our own factories for testing, so we can bind to an ephemeral port.
    RMIClientSocketFactory clientFactory = new RMIClientSocketFactory() {
      public Socket createSocket(String host, int port) throws IOException {
        return new Socket(host, port);
      }};

    class TestRMIServerSocketFactory implements RMIServerSocketFactory {
View Full Code Here

     * This method performs all actions mentioned in class description.
     *
     */
    public void run() throws Exception {
        JrmpExporter je = createJrmpExporter();
        RMIClientSocketFactory resCsf = je.getClientSocketFactory();

        if (cType == SOCKS_FACTORY || cType == ID_SOCKS_FACTORY) {
            if (!resCsf.equals(cCsf)) {
                // FAIL
                throw new TestException(
                        "getClientSocketFactory method of JrmpExporter "
                        + "with " + cCsf + " returns " + resCsf
                        + " as a result while " + cCsf + " is expected.");
View Full Code Here

            System.setProperty("java.rmi.server.randomIDs", "true");

            // Create the environment
            HashMap<String,Object> env = new HashMap<String,Object>();

            RMIClientSocketFactory csf = null;
            RMIServerSocketFactory ssf = null;

            // Configure SSL for RMI connection if required
            if (rmiSSL) {
                csf = new SslRMIClientSocketFactory();
View Full Code Here

        IApplicationRegistry appRegistry = ApplicationRegistry.getInstance();


        //Socket factories for the RMIConnectorServer, either default or SLL depending on configuration
        RMIClientSocketFactory csf;
        RMIServerSocketFactory ssf;

        //check ssl enabled option in config, default to true if option is not set
        boolean sslEnabled = appRegistry.getConfiguration().getManagementSSLEnabled();
View Full Code Here

TOP

Related Classes of java.rmi.server.RMIClientSocketFactory

Copyright © 2018 www.massapicom. 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.