Examples of shutdown()


Examples of com.google.enterprise.connector.manager.Context.shutdown()

    context.setConnectorManagerConfig("", "shme", 14,
        Context.GSA_FEED_SECURE_PORT_INVALID, null);
    assertEquals("shme", connector.googleFeedHost);

    removeConnector(instance);
    context.shutdown(true);
    ConnectorTestUtils.deleteAllFiles(baseDirectory);
  }

  private ConnectorCoordinatorImpl createGDataPropsConnector(String name)
      throws JSONException, InstantiatorException, ConnectorNotFoundException,
View Full Code Here

Examples of com.google.enterprise.connector.notes.NotesConnector.shutdown()

        // Expected result
      } catch (Throwable t) {
        assertTrue("Unexpected exception on login: " + t, false);
      }
    } finally {
      connector.shutdown();
    }
  }

  /**
   * Tests a missing server parameter on login.
View Full Code Here

Examples of com.google.enterprise.connector.spi.ConnectorShutdownAware.shutdown()

        && instanceInfo.getConnector() instanceof ConnectorShutdownAware) {
      ConnectorShutdownAware csa =
          (ConnectorShutdownAware)(instanceInfo.getConnector());
      try {
        LOGGER.fine("Shutting down connector " + name);
        csa.shutdown();
      } catch (Exception e) {
        LOGGER.log(Level.WARNING, "Problem shutting down connector " + name
            + " during configuration update.", e);
      }
View Full Code Here

Examples of com.google.mockwebserver.MockWebServer.shutdown()

         RecordedRequest manifest = server.takeRequest();
         assertEquals(manifest.getRequestLine(), "PUT /container/foo HTTP/1.1");
         assertEquals(manifest.getHeader("X-Auth-Token"), token);
         assertEquals(manifest.getHeader("Content-Length"), "0");

         server.shutdown();
      }
   }

   private static final Set<Module> modules = ImmutableSet.<Module> of(new ExecutorServiceModule(sameThreadExecutor(),
         sameThreadExecutor()));
View Full Code Here

Examples of com.googlecode.hibernate.memcached.Memcache.shutdown()

        this.properties);
    XmemcachedClientFactory clientFactory = new XmemcachedClientFactory(
        propertiesHelper);
    Memcache cache = clientFactory.createMemcacheClient();
    testCache(cache);
    cache.shutdown();
  }

  private void testCache(Memcache cache) {
    cache.set("a", 0, 1);
    assertEquals(1, cache.get("a"));
View Full Code Here

Examples of com.hazelcast.client.connection.ClientConnectionManager.shutdown()

        private static void closeSockets(HazelcastClient client) {
            final ClientConnectionManager connectionManager = client.getConnectionManager();
            if (connectionManager != null) {
                try {
                    connectionManager.shutdown();
                } catch (Throwable ignored) {
                }
            }
        }
View Full Code Here

Examples of com.hazelcast.core.HazelcastInstance.shutdown()

        removed.setExpectedMessageCount(1);

        HazelcastInstance h1 = Hazelcast.newHazelcastInstance(null);

        // TODO --> check how an instance can be killed...
        h1.shutdown();

        assertMockEndpointsSatisfied(5000, TimeUnit.MILLISECONDS);

        // check headers
        Exchange ex = removed.getExchanges().get(0);
View Full Code Here

Examples of com.hazelcast.core.IExecutorService.shutdown()

    @Test
    public void testShutdownMultipleTimes() throws InterruptedException, ExecutionException, TimeoutException {
        final IExecutorService service = client.getExecutorService(randomString());
        service.shutdownNow();
        service.shutdown();

        assertTrueEventually(new AssertTask() {
            public void run() throws Exception {
                assertTrue(service.isShutdown());
            }
View Full Code Here

Examples of com.hazelcast.instance.Node.shutdown()

    public void run() {
        final NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();
        final Node node = nodeEngine.getNode();
        final ILogger logger = nodeEngine.getLogger("com.hazelcast.security");
        logger.severe("Authentication failed on master node! Node is going to shutdown now!");
        node.shutdown(true);
    }
}
View Full Code Here

Examples of com.hazelcast.util.executor.StripedExecutor.shutdown()

                    }
                }
            }
            StripedExecutor ex = executor;
            if (ex != null) {
                ex.shutdown();
            }
            wanReplications.clear();
        }
    }
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.