Examples of DataStore


Examples of org.jboss.aerogear.simplepush.server.datastore.DataStore

    public static final int DEFAULT_PORT = 7777;

    @Override
    public void start() {
        final SimplePushServerConfig config = fromConfig(container.config());
        final DataStore datastore = new InMemoryDataStore();
        final byte[] privateKey = DefaultSimplePushServer.generateAndStorePrivateKey(datastore, config);
        final SimplePushServer simplePushServer = new DefaultSimplePushServer(datastore, config, privateKey);
        final HttpServer httpServer = vertx.createHttpServer();
        setupHttpNotificationHandler(httpServer, simplePushServer);
        setupSimplePushSockJSServer(httpServer, simplePushServer);
View Full Code Here

Examples of org.jbpm.bpmn2.core.DataStore

 
  public Object start(final String uri, final String localName,
      final Attributes attrs, final ExtensibleXmlParser parser)
      throws SAXException {
    parser.startElementBuilder(localName, attrs);
    DataStore store = new DataStore();
    store.setId(attrs.getValue("id"));
    store.setName(attrs.getValue("name"));
    final String itemSubjectRef = attrs.getValue("itemSubjectRef");
    store.setItemSubjectRef(itemSubjectRef);
    Map<String, ItemDefinition> itemDefinitions = (Map<String, ItemDefinition>)
      ((ProcessBuildData) parser.getData()).getMetaData("ItemDefinitions");
    // retrieve type from item definition
    //FIXME we bypass namespace resolving here. That's not a good idea
    // when we start having several documents, with imports.
    String localItemSubjectRef = itemSubjectRef.substring(
        itemSubjectRef.indexOf(":") +1);
    DataType dataType = new ObjectDataType();
    if (itemDefinitions != null) {
      ItemDefinition itemDefinition = itemDefinitions.get(localItemSubjectRef);
      if (itemDefinition != null) {
        dataType = new ObjectDataType(itemDefinition.getStructureRef());
      }
    }
    store.setType(dataType);
   
    Definitions parent = (Definitions) parser.getParent();
    List<DataStore> dataStores = parent.getDataStores();
    if (dataStores == null) {
      dataStores = new ArrayList<DataStore>();
View Full Code Here

Examples of org.jbpm.bpmn2.core.DataStore

    StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
        ProcessInstance processInstance = ksession.startProcess("Evaluation");
        Definitions def = (Definitions) processInstance.getProcess().getMetaData().get("Definitions");
        assertNotNull(def.getDataStores());
        assertTrue(def.getDataStores().size() == 1);
        DataStore dataStore = def.getDataStores().get(0);
        assertEquals("employee", dataStore.getId());
        assertEquals("employeeStore", dataStore.getName());
        assertEquals(String.class.getCanonicalName(), ((ObjectDataType) dataStore.getType()).getClassName());
    }
View Full Code Here

Examples of org.jclouds.abiquo.domain.infrastructure.Datastore

            return input.getName().equals(vswitchName);
         }
      });
      vswitch.setNetworkServiceType(nst);

      Datastore datastore = find(machine.getDatastores(), new Predicate<Datastore>() {
         @Override
         public boolean apply(Datastore input) {
            return input.getName().equals(datastoreName);
         }
      });
      datastore.setEnabled(true);

      machine.setRack(rack);
      machine.save();
      assertNotNull(machine.getId());
   }
View Full Code Here

Examples of org.mongodb.morphia.Datastore

        return morphia;
    }

    @Provides
    Datastore createDatastore(Mongo mongo, Morphia morphia, final Application application) {
        Datastore datastore = morphia.createDatastore(
                mongo,
                application.configuration().getString("mongodb.db"),
                application.configuration().getString("mongodb.username"),
                application.configuration().getString("mongodb.password").toCharArray());

        datastore.ensureIndexes();

        Logger.info("Connected to MongoDB [" + mongo.debugString() + "] database [" + datastore.getDB().getName() + "]");
        return datastore;
    }
View Full Code Here

Examples of org.opennebula.client.datastore.Datastore

        res = Host.allocate(client, "host_B",
                            "dummy", "dummy", "dummy");
        hid_B = Integer.parseInt( res.getMessage() );

        Datastore systemDs = new Datastore(0, client);
        systemDs.update("TM_MAD = dummy");
    }
View Full Code Here

Examples of org.openrdf.sail.nativerdf.datastore.DataStore

  public ValueStore(File dataDir, boolean forceSync)
    throws IOException
  {
    super();
    dataStore = new DataStore(dataDir, FILENAME_PREFIX, forceSync);

    valueCache = new LRUCache<Integer, NativeValue>(VALUE_CACHE_SIZE);
    valueIDCache = new LRUCache<Value, Integer>(VALUE_ID_CACHE_SIZE);
    namespaceCache = new LRUCache<Integer, String>(NAMESPACE_CACHE_SIZE);
    namespaceIDCache = new LRUCache<String, Integer>(NAMESPACE_ID_CACHE_SIZE);
View Full Code Here

Examples of org.sumus.dwh.datastore.DataStore

        createParser(args);
    }

    private static DataStore createDataStore(File folder) {
        DataStoreFactory factory = new DataStoreFactory(folder);
        DataStore dataStore = factory.createDataStore();
        return dataStore;
    }
View Full Code Here

Examples of tcg.scada.sim.iecsim.datastore.DataStore

  /**
   * Show general log.
   */
  public void showGeneralLog()
  {
    DataStore ds = getActiveDataStore();
    if (ds == null)
    {
      //TODO: print out some log
      return;
    }
   
    ds.showGeneralLog();
  }
View Full Code Here

Examples of uk.ac.open.kmi.smartproducts.sesame.sail.datastore.DataStore

  public ValueStore(File dataDir, boolean forceSync, int valueCacheSize, int valueIDCacheSize,
      int namespaceCacheSize, int namespaceIDCacheSize)
    throws IOException
  {
    super();
    dataStore = new DataStore(dataDir, FILENAME_PREFIX, forceSync);

    valueCache = new LRUCache<Integer, NativeValue>(valueCacheSize);
    valueIDCache = new LRUCache<NativeValue, Integer>(valueIDCacheSize);
    namespaceCache = new LRUCache<Integer, String>(namespaceCacheSize);
    namespaceIDCache = new LRUCache<String, Integer>(namespaceIDCacheSize);
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.