Examples of update()


Examples of org.apache.falcon.client.FalconClient.update()

            result = client.submit(entityType, filePath);
        } else if (optionsList.contains(UPDATE_OPT)) {
            validateFilePath(filePath);
            validateColo(optionsList);
            validateEntityName(entityName);
            result = client.update(entityType, entityName, filePath);
        } else if (optionsList.contains(SUBMIT_AND_SCHEDULE_OPT)) {
            validateFilePath(filePath);
            validateColo(optionsList);
            result = client.submitAndSchedule(entityType, filePath);
        } else if (optionsList.contains(VALIDATE_OPT)) {
View Full Code Here

Examples of org.apache.falcon.workflow.engine.OozieWorkflowEngine.update()

        DeploymentProperties.get().setProperty("deploy.mode", "standalone");
        StartupProperties.get().setProperty("current.colo", "ua1");
        OozieWorkflowEngine engine = new OozieWorkflowEngine();
        ConfigurationStore.get().initiateUpdate(newEntity);
        engine.update(obj, newEntity, newEntity.getClusters().getClusters().get(0).getName());
        engine.delete(newEntity);
        System.exit(0);
    }

    private static void store(EntityType eType, String xml) throws JAXBException, FalconException {
View Full Code Here

Examples of org.apache.felix.scr.integration.components.SimpleServiceImpl.update()

        TestCase.assertTrue( comp10.m_multiRef.isEmpty() );
        TestCase.assertEquals( 1, comp10.m_singleRefBind );
        TestCase.assertEquals( 0, comp10.m_singleRefUnbind);

        // update a service property
        srv1.update( "srv1-modified" );

        // no changes in bindings expected
        TestCase.assertEquals( srv1, comp10.m_singleRef );
        TestCase.assertTrue( comp10.m_multiRef.isEmpty() );
        TestCase.assertEquals( 1, comp10.m_singleRefBind );
View Full Code Here

Examples of org.apache.felix.tool.mangen.BundleJar.update()

        {
            BundleJar bund = (BundleJar) i.next();
            try
            {
                rptOut.println("Updating bundle: " + bund.getName() + " :");
                bund.update(overwrite);
            }
            catch (IOException ioe)
            {
                MangenMain.error(rptOut, "IO Exception occured during update: " + ioe);               
            }
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.GFileDAO.update()

            }
        }
       
        // Update
        props.put("name3", "value3");
        fileDAO.update(fileTO);
        fileTO = fileDAO.read(path);
        props = fileTO.getProperties();
        assertEquals("Wrong # of properties", 3, props.size());
       
        // Delete
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.local.LocalGFileDAO.update()

            }
        }
       
        // Update
        props.put("name3", "value3");
        fileDAO.update(fileTO);
        fileTO = fileDAO.read(path);
        props = fileTO.getProperties();
        assertEquals("Wrong # of properties", 3, props.size());
       
        // Delete
View Full Code Here

Examples of org.apache.hadoop.hbase.master.AssignmentManager.RegionState.update()

        regionsInTransition.put(encodedName, state);
      } else if (force && (state.isPendingClose() || state.isClosing())) {
        LOG.debug("Attempting to unassign region " + region.getRegionNameAsString() +
          " which is already " + state.getState()  +
          " but forcing to send a CLOSE RPC again ");
        state.update(state.getState());
      } else {
        LOG.debug("Attempting to unassign region " +
          region.getRegionNameAsString() + " but it is " +
          "already in transition (" + state.getState() + ", force=" + force + ")");
        return;
View Full Code Here

Examples of org.apache.hadoop.hbase.metrics.histogram.ExponentiallyDecayingSample.update()

  public void testBasic() {
      final ExponentiallyDecayingSample sample =
          new ExponentiallyDecayingSample(100, 0.99);
     
      for (int i = 0; i < 1000; i++) {
          sample.update(i);
      }
      Assert.assertEquals(100, sample.size());
     
      final Snapshot snapshot = sample.getSnapshot();
      Assert.assertEquals(100, snapshot.size());
View Full Code Here

Examples of org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram.update()

  @Test
  public void testBasicUniform() {
    MetricsHistogram h = new MetricsHistogram("testHistogram", null);

    for (int i = 0; i < 100; i++) {
      h.update(i);
    }

    Assert.assertEquals(100, h.getCount());
    Assert.assertEquals(0, h.getMin());
    Assert.assertEquals(99, h.getMax());
View Full Code Here

Examples of org.apache.hadoop.hive.common.type.Decimal128.update()

    }

    private void doTestFastStreamForHiveDecimal(String valueString) {
      BigDecimal value = new BigDecimal(valueString);
      Decimal128 dec = new Decimal128();
      dec.update(value);

      HiveDecimalWritable witness = new HiveDecimalWritable();
      witness.set(HiveDecimal.create(value));

      int bufferUsed = dec.fastSerializeForHiveDecimal(scratch);
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.