Package com.sun.sgs.impl.service.data.store

Examples of com.sun.sgs.impl.service.data.store.DataStoreProfileProducer


    baseStore = new DataStoreClient(properties, accessCoordinator);
      }
            storeToShutdown = baseStore;
            ProfileCollector collector =
    systemRegistry.getComponent(ProfileCollector.class);
      store = new DataStoreProfileProducer(baseStore, collector);
           
            // create our service profiling info and register our MBean
            serviceStats = new DataServiceStats(collector);
            try {
                collector.registerMBean(serviceStats,
View Full Code Here


        properties, systemRegistry, txnProxy);
      }
            storeToShutdown = baseStore;
            ProfileCollector collector =
    systemRegistry.getComponent(ProfileCollector.class);
      store = new DataStoreProfileProducer(baseStore, collector);
      nodeId = store.getLocalNodeId();
           
            // create our service profiling info and register our MBean
            serviceStats = new DataServiceStats(collector);
            try {
View Full Code Here

    /* -- Other methods -- */

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

    }

    /** Create a DataStoreClient. */
    @Override
    protected DataStore createDataStore(Properties props) throws Exception {
  DataStore store = new DataStoreProfileProducer(
      new DataStoreClient(props, systemRegistry, txnProxy),
      DummyProfileCoordinator.getCollector());
  DummyProfileCoordinator.startProfiling();
  return store;
    }
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

    public static int getDataServerPort(DataServiceImpl service)
        throws Exception
    {
        Field storeField = DataServiceImpl.class.getDeclaredField("store");
        storeField.setAccessible(true);
  DataStoreProfileProducer profileWrapper =
      (DataStoreProfileProducer) storeField.get(service);
        DataStoreClient dsClient =
      (DataStoreClient) profileWrapper.getDataStore();
        Field serverPortField =
      DataStoreClient.class.getDeclaredField("serverPort");
        serverPortField.setAccessible(true);
        return (Integer) serverPortField.get(dsClient);
    }
View Full Code Here

  }
        props.setProperty(StandardProperties.NODE_TYPE, nodeType);
  props.setProperty(DataStoreNetPackage + ".server.host", host);
  props.setProperty(DataStoreNetPackage + ".server.port",
        String.valueOf(port));
  DataStore store = new DataStoreProfileProducer(
      new DataStoreClient(props, env.systemRegistry, txnProxy),
      DummyProfileCoordinator.getCollector());
  DummyProfileCoordinator.startProfiling();
  return store;
    }
View Full Code Here

        properties, systemRegistry, txnProxy);
      }
            storeToShutdown = baseStore;
            ProfileCollector collector =
    systemRegistry.getComponent(ProfileCollector.class);
      store = new DataStoreProfileProducer(baseStore, collector);
      nodeId = store.getLocalNodeId();
           
            // create our service profiling info and register our MBean
            serviceStats = new DataServiceStats(collector);
            try {
View Full Code Here

    public static int getDataServerPort(DataServiceImpl service)
        throws Exception
    {
        Field storeField = DataServiceImpl.class.getDeclaredField("store");
        storeField.setAccessible(true);
  DataStoreProfileProducer profileWrapper =
      (DataStoreProfileProducer) storeField.get(service);
  DataStore dataStore = profileWrapper.getDataStore();
  if (dataStore instanceof DataStoreClient) {
      DataStoreClient dsClient = (DataStoreClient) dataStore;
      Field serverPortField =
    DataStoreClient.class.getDeclaredField("serverPort");
      serverPortField.setAccessible(true);
View Full Code Here

    }

    /** Create a {@link CachingDataStore}. */
    @Override
    protected DataStore createDataStore(Properties props) throws Exception {
  DataStore store = new DataStoreProfileProducer(
      new CachingDataStore(props, systemRegistry, txnProxy),
      DummyProfileCoordinator.getCollector());
  DummyProfileCoordinator.startProfiling();
  store.ready();
  return store;
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.data.store.DataStoreProfileProducer

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.