Examples of update()


Examples of org.apache.activemq.apollo.broker.Broker.update()

        System.in.read();
        System.out.println("Updating the broker configuration.");
       
        //
        // The configuration update also occurs asnyc.
        broker.update(createUpdate(), new Runnable() {
            public void run() {
                System.out.println("The configuration has been applied.");
                System.out.println("Press enter to stop the broker...");
            }
        });
View Full Code Here

Examples of org.apache.airavata.registry.cpi.Registry.update()

      JobStatus status = new JobStatus();
      status.setJobState(state);
      status.setTimeOfStateChange(Calendar.getInstance()
          .getTimeInMillis());
      details.setJobStatus(status);
      registry.update(
          org.apache.airavata.registry.cpi.RegistryModelType.JOB_DETAIL,
          details, details.getJobID());
    } catch (Exception e) {
      throw new GFacException("Error persisting job status"
          + e.getLocalizedMessage(), e);
View Full Code Here

Examples of org.apache.ambari.server.api.services.PersistKeyValueService.update()

   * @throws SystemException if an unexpected exception occurs
   */
  private void persistInstallStateForUI() throws SystemException {
    PersistKeyValueService persistService = new PersistKeyValueService();
    try {
      persistService.update("{\"CLUSTER_CURRENT_STATUS\": \"{\\\"clusterState\\\":\\\"CLUSTER_STARTED_5\\\"}\"}");
    } catch (Exception e) {
      throw new SystemException("Unable to finalize state of cluster for UI.  " +
          "Cluster creation will not be affected but the cluster may be inaccessible by Ambari UI." );
    }
  }
View Full Code Here

Examples of org.apache.ambari.server.api.services.persistence.PersistenceManager.update()

    expect(request.getQueryPredicate()).andReturn(userPredicate).atLeastOnce();

    expect(resource.getQuery()).andReturn(query).atLeastOnce();
    query.setUserPredicate(userPredicate);

    expect(pm.update(resource, setResourceProperties)).andReturn(status);
    expect(status.getStatus()).andReturn(RequestStatus.Status.Complete);
    expect(status.getAssociatedResources()).andReturn(setResources);
    expect(resource1.getType()).andReturn(Resource.Type.Cluster).anyTimes();
    expect(resource2.getType()).andReturn(Resource.Type.Cluster).anyTimes();
View Full Code Here

Examples of org.apache.aries.application.management.spi.update.UpdateStrategy.update()

          "No UpdateStrategy supports the supplied DeploymentMetadata changes.");

    synchronized (BundleFrameworkManager.SHARED_FRAMEWORK_LOCK) {
      final BundleFramework appFwk = _frameworksByAppScope.get(app.getApplicationMetadata().getApplicationScope());

      strategy.update(new UpdateStrategy.UpdateInfo() {

        public void register(Bundle bundle)
        {
          bundles.add(bundle);
        }
View Full Code Here

Examples of org.apache.batik.bridge.GraphicsNodeBridge.update()

                bme.setAttrNewValue(me.getNewValue());

                GraphicsNodeBridge bridge;
                bridge = (GraphicsNodeBridge)bridgeContext.getBridge(target);

                bridge.update(bme);
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.bcel.generic.ClassGen.update()

/*  77 */       ClassGen clazz = new ClassGen(className, superClass, fileName, modifiers, interfaces);
/*  78 */       ConstantPoolGen cp = clazz.getConstantPool();
/*     */
/*  80 */       clazz.addMethod(createConstructor(cp, className).getMethod());
/*  81 */       clazz.addMethod(createInvoke(cp, info, className, resource.getClass().getName()).getMethod());
/*  82 */       clazz.update();
/*     */
/*  84 */       JavaClass c = clazz.getJavaClass();
/*     */
/*  86 */       ByteArrayOutputStream baos = new ByteArrayOutputStream(2000);
/*  87 */       BufferedOutputStream bos = new BufferedOutputStream(baos);
View Full Code Here

Examples of org.apache.beehive.netui.script.ExpressionEvaluator.update()

                        // trap any bad expressions here
                        if (ee.isExpression(expr))
                        {
                            // common case, make this fast
                            if (!requestHasPopulated)
                                ee.update(expr, updateValue, variableResolver, true);
                            // must check the expression to make sure pageFlow. and globalApp. don't get executed more than once
                            else
                            {
                                Expression pe = ee.parseExpression(expr);
                                String contextName = pe.getContext();
View Full Code Here

Examples of org.apache.beehive.netui.script.el.ParsedExpression.update()

    }

    public static final void update(String exprStr, Object value, NetUIVariableResolver vr) {
        ParsedExpression expr = parse(exprStr);
        assert expr != null;
        expr.update(value, vr);
    }

    public static final Class getPropertyType(Object value, String name, PropertyCache cache) {
        assert value != null;
        assert cache != null;
View Full Code Here

Examples of org.apache.beehive.netui.script.el.tokens.ExpressionToken.update()

        ExpressionToken token = _tokenArray[_tokens.size() - 1];

        if(LOGGER.isDebugEnabled()) LOGGER.debug("Update leaf token: " + token + " on object: " + branch);

        // apply value
        token.update(branch, newValue);
    }

    /* todo: perf. this could be done more effectively / efficiently */
    public String changeContext(String oldContext, String newContext, Object index) {
        String thisExpr = getExpressionString();
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.