Package com.sun.sgs.service.store

Examples of com.sun.sgs.service.store.DataStore


    reportFailure(nodeId, component);
      }
  }
  @Override
  public void reportFailure(long nodeId, String className) {
      DataStore s = store;
      if (s != null) {
    s.shutdown();
      }
  }
View Full Code Here


  }
  props.setProperty(NODE_TYPE, nodeType);
  props.setProperty(SERVER_HOST_PROPERTY, host);
  props.setProperty(SERVER_PORT_PROPERTY, String.valueOf(port));
  props.setProperty(DIRECTORY_PROPERTY, directory);
  DataStore store = new DataStoreProfileProducer(
      new CachingDataStore(props, env.systemRegistry, txnProxy),
      DummyProfileCoordinator.getCollector());
  DummyProfileCoordinator.startProfiling();
  return store;
    }
View Full Code Here

            throw new RuntimeException("Failed to create sub-dir: " + dataDir);
        }
        Properties props = createProperties(
            StandardProperties.APP_NAME, "Foo",
            StandardProperties.APP_ROOT, rootDir);
        DataStore testStore = createDataStore(props);
        testStore.shutdown();
    }
View Full Code Here

  return createDataStore(props);
    }

    /** Creates a DataStore using the specified properties. */
    protected DataStore createDataStore(Properties props) throws Exception {
  DataStore store = new DataStoreProfileProducer(
      new DataStoreImpl(props, systemRegistry, txnProxy),
      DummyProfileCoordinator.getCollector());
  DummyProfileCoordinator.startProfiling();
  return store;
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.service.store.DataStore

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.