Examples of shutdown()


Examples of org.modeshape.jcr.spi.index.provider.IndexProvider.shutdown()

        IndexProvider provider = providers.remove(providerName);
        if (provider == null) {
            throw new NoSuchProviderException(JcrI18n.indexProviderDoesNotExist.text(providerName, repository.name()));
        }
        if (initialized.get()) {
            provider.shutdown();
        }

        // Re-read the index definitions in case there were disabled index definitions that used the now-available provider ...
        readIndexDefinitions();
View Full Code Here

Examples of org.mokai.impl.camel.CamelRoutingEngine.shutdown()

    CamelRoutingEngine routingEngine = new CamelRoutingEngine();

    try {
      routingEngine.removeConnection("test");
    } finally {
      routingEngine.shutdown();
    }
  }

  @Test(expectedExceptions=ObjectAlreadyExistsException.class)
  public void shouldFailToAddExistingConnection() throws Exception {
View Full Code Here

Examples of org.mule.registry.Assembly.shutDown()

  public String shutDown(String serviceAssemblyName) throws Exception {
    Assembly assembly = this.registry.getAssembly(serviceAssemblyName);
    if (assembly == null) {
      throw new JBIException("Assembly not deployed: " + serviceAssemblyName);
    }
    return assembly.shutDown();
  }

  public String getState(String serviceAssemblyName) throws Exception {
    Assembly assembly = this.registry.getAssembly(serviceAssemblyName);
    if (assembly == null) {
View Full Code Here

Examples of org.mule.transport.udp.util.UdpClient.shutdown()

        }
        finally
        {
            if (client != null)
            {
                client.shutdown();
            }
        }
    }
}
View Full Code Here

Examples of org.nasutekds.server.replication.plugin.LDAPReplicationDomain.shutdown()

        delOp.run();
        waitOpResult(delOp, ResultCode.SUCCESS);

        // Cleaning
        if (domain21 != null)
          domain21.shutdown();

        if (domain2 != null)
          MultimasterReplication.deleteDomain(baseDn2);
        removeTestBackend2(backend2);
View Full Code Here

Examples of org.nebulaframework.grid.cluster.node.GridNode.shutdown()

    mflops_sum += result.getMflops();
   
   
    System.err.println("Composite Result : " + mflops_sum / 5);
   
    node.shutdown();
    System.exit(0);
  }
}
View Full Code Here

Examples of org.neo4j.graphdb.GraphDatabaseService.shutdown()

  public void testEmbeddedIsTheDefaultGraphDatabaseService() throws Exception {
    Properties properties = new Properties();
    properties.put( Neo4jProperties.DATABASE_PATH, Neo4jTestHelper.dbLocation() );
    Neo4jGraphDatabaseServiceFactoryProvider graphService = new Neo4jGraphDatabaseServiceFactoryProvider();
    GraphDatabaseService db = graphService.load( properties, new ClassLoaderServiceImpl() ).create();
    db.shutdown();
    assertThat( db.getClass() ). isEqualTo( EmbeddedGraphDatabase.class );
  }

  @Test
  public void testSelectedGraphDatabaseServiceIsLoaded() throws Exception {
View Full Code Here

Examples of org.neo4j.graphdb.index.BatchInserterIndexProvider.shutdown()

        Map<String, Object> properties = MapUtil.map( "name", "Keanu Reeves" );
        long node = inserter.createNode( properties );
        actors.add( node, properties );

        // Make sure to shut down the index provider
        indexProvider.shutdown();
        inserter.shutdown();
        // END SNIPPET: batchInsert
    }
}
View Full Code Here

Examples of org.neo4j.index.impl.lucene.LuceneBatchInserterIndexProvider.shutdown()

        Map<String, Object> properties = MapUtil.map( "name", "Keanu Reeves" );
        long node = inserter.createNode( properties );
        actors.add( node, properties );

        // Make sure to shut down the index provider
        indexProvider.shutdown();
        inserter.shutdown();
        // END SNIPPET: batchInsert
    }
}
View Full Code Here

Examples of org.neo4j.kernel.AbstractGraphDatabase.shutdown()

        AbstractGraphDatabase graph = database.graph;
        String storeDir = graph.getStoreDir();
        if (storeDir == null) {
            storeDir = config.getString(DATABASE_LOCATION_PROPERTY_KEY);
        }
        graph.shutdown();
        Map<String, Object> result = removeDirectory(storeDir);

        // TODO wtf?
        // database.graph = new EmbeddedGraphDatabase(storeDir, graph.getKernelData().getConfigParams());
        database.start();
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.