Examples of create()


Examples of simulator.devs.flatsequential.eventforwarding.plugintype.ExternalEventForwardingHandlerFactory.create()

    // .getEventforwarding());

    ExternalEventForwardingHandlerFactory f =
        SimSystem.getRegistry().getFactory(
            AbstractExternalEventForwardingHandlerFactory.class, ef);
    ExternalEventForwardingHandler eefh = f.create(null, SimSystem.getRegistry().createContext());

    SimSystem.report(Level.CONFIG, "Using " + eefh.getClass().getName()
        + " as external event forwarding mechanism.");

    ParameterBlock eqfp = parameters.getSubBlock("eventqueue");

Examples of speculoos.jndi.JNDISource.create()

    smi.setTypeHelper(new TypeHelper());
    src.add("search1", smi);
    /* start source */
    src.start(env);
    /* create mapper */
    SearchMapper sm = (SearchMapper) src.create("search1", new HashMap());
    /* ensure mapper is new */
    assertNotSame(sm, smi);
    /* close */
    src.release(sm);
    src.stop();
 

Examples of speculoos.jndi.pool.JNDIPooledSource.create()

    smi.getInputChain().addMapper(new StringVariable("filter", filter));
    smi.setTypeHelper(new TypeHelper());
    src.add("search1", smi);
    /* create mapper */
    try {
      SearchMapper sm = (SearchMapper) src.create("search1",
          new HashMap());
      fail("Not started; Should have thrown exception.");
    } catch (IllegalStateException e) {
      // / OK
    }

Examples of speculoos.spi.Source.create()

        Source src = (Source) mapperToSource.get(mapper.getName());
        if (src == null)
            throw new MapperConfigurationException(
                    "No source is associated with mapper " + name);
        /* delegate preparation */
        Mapper niou = src.create(name, environment);
        return niou;
    }

    /**
     * Releases a mapper object which allows clean up and reuse of its

Examples of sql.optimizers.name.NameCompGenFactory.create()

        ParserMain pm = new ParserMain();
        _map = pm.createConfig(parserConfPath);
        _pq = ParserUtil.parseQuery(_map);
       
        NameCompGenFactory factory = new NameCompGenFactory(_map, _pq.getTan(), 20);
        return factory.create();
    }   

   
    private NameCompGen createCG(String parserConfPath, int parallelism) {
        ParserMain pm = new ParserMain();

Examples of sql.optimizers.name.ProjSchemaCreator.create()

        inputTupleSchema.add(new ColumnNameType("EXTRACT_YEAR(LINEITEM.SHIPDATE)", _ic));
       
        EquiJoinComponent L_S_Njoin = createTPCH7_LSNSubplan();

        ProjSchemaCreator psc = new ProjSchemaCreator(_globalProject, new TupleSchema(inputTupleSchema), L_S_Njoin, _parsedQuery, _schema);
        psc.create();
       
        List<ColumnNameType> outputTupleSchema = psc.getOutputSchema().getSchema();
        ProjectOperator projectOperator = psc.getProjectOperator();
        
        //expected results

Examples of storm.trident.tuple.TridentTupleView.ProjectionFactory.create()

    public void execute(Map<TridentTuple, Object> state, int streamIndex, TridentTuple full, TridentCollector collector) {
        ProjectionFactory groupFactory = _groupFactories.get(streamIndex);
        ProjectionFactory inputFactory = _inputFactories.get(streamIndex);
       
        TridentTuple group = groupFactory.create(full);
        TridentTuple input = inputFactory.create(full);
       
        Object curr;
        if(!state.containsKey(group)) {
            curr = _reducer.init(collector, group);
            state.put(group, curr);

Examples of stream.runtime.setup.factory.ObjectFactory.create()

          if (params.get("priority") != null)
            priority = new Double(params.get("priority"));

          log.info("Found priority {}", priority);

          Object o = of.create((Element) node);

          if (o instanceof EventProcessor) {
            @SuppressWarnings({ "unchecked" })
            EventProcessor<AuditEvent> eventProcessor = (EventProcessor<AuditEvent>) o;
            log.info(

Examples of tachyon.UnderFileSystem.create()

  @Test
  public void createFileWithUfsFileTest() throws IOException {
    String tempFolder = mLocalTachyonCluster.getTempFolderInUnderFs();
    UnderFileSystem underFs = UnderFileSystem.get(tempFolder);
    OutputStream os = underFs.create(tempFolder + "/temp", 100);
    os.close();
    TachyonURI uri = new TachyonURI("/abc");
    mTfs.createFile(uri, new TachyonURI(tempFolder + "/temp"));
    Assert.assertTrue(mTfs.exist(uri));
    Assert.assertEquals(tempFolder + "/temp", mTfs.getFile(uri).getUfsPath());

Examples of test.crud.CRUD.create()

    public void testStart() throws Exception {
        ServiceReference<CRUD> serviceReference = domain.getServiceReference(CRUD.class, "CRUDServiceComponent");
        assertNotNull(serviceReference);
        CRUD service = serviceReference.getService();
        String id = service.create("ABC");
        Object result = service.retrieve(id);
        assertEquals("ABC", result);
        service.update(id, "EFG");
        result = service.retrieve(id);
        assertEquals("EFG", result);
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.