Package org.gridgain.grid.ggfs

Examples of org.gridgain.grid.ggfs.GridGgfsConfiguration


     *
     * @param endpointCfg Optional REST endpoint configuration.
     * @return test-purposed GridGgfsConfiguration.
     */
    protected GridGgfsConfiguration gridGgfsConfiguration(@Nullable String endpointCfg) throws GridException {
        GridGgfsConfiguration ggfsConfiguration = new GridGgfsConfiguration();

        ggfsConfiguration.setDataCacheName("partitioned");
        ggfsConfiguration.setMetaCacheName("replicated");
        ggfsConfiguration.setName("ggfs" + UUID.randomUUID());
        ggfsConfiguration.setManagementPort(mgmtPort.getAndIncrement());

        if (endpointCfg != null)
            ggfsConfiguration.setIpcEndpointConfiguration(GridGgfsTestUtils.jsonToMap(endpointCfg));

        return ggfsConfiguration;
    }
View Full Code Here


    /** Kernal start latch. */
    private CountDownLatch kernalStartLatch = new CountDownLatch(1);

    /** {@inheritDoc} */
    @Override protected void start0() throws GridException {
        GridGgfsConfiguration ggfsCfg = ggfsCtx.configuration();
        Map<String,String> cfg = ggfsCfg.getIpcEndpointConfiguration();

        if (F.isEmpty(cfg)) {
            // Set default configuration.
            cfg = new HashMap<>();

            cfg.put("type", U.isWindows() ? "tcp" : "shmem");
            cfg.put("port", String.valueOf(DFLT_IPC_PORT));
        }

        if (ggfsCfg.isIpcEndpointEnabled())
            bind(cfg, /*management*/false);

        if (ggfsCfg.getManagementPort() >= 0) {
            cfg = new HashMap<>();

            cfg.put("type", "tcp");
            cfg.put("port", String.valueOf(ggfsCfg.getManagementPort()));

            bind(cfg, /*management*/true);
        }

        if (bindWorker != null)
View Full Code Here

TOP

Related Classes of org.gridgain.grid.ggfs.GridGgfsConfiguration

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.