Examples of updateResource()


Examples of com.drakulo.games.ais.core.Colony.updateResource()

                for (Resource r : Resource.values()) {
                  BigDecimal d = sa.getCostMap().get(r);
                  if (d == null) {
                    continue;
                  }
                  cc.updateResource(r, d.negate());
                }
                GameData.getSelectedColony().addSpecialAction(
                    sa);
              } else {
                // TODO Play error sound
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.definition.DeploymentPersistence.updateResource()

    }
   
   
    if (updateStatement.equals("updateResource")) {
      ResourcePersistence resourceManager = ProcessObjectFactory.FACTORYINSTANCE.createResourcePersistence(connection);
      resourceManager.updateResource(persistentObject);
      return;
    }
   
   
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.definition.ResourcePersistence.updateResource()

    }
   
   
    if (updateStatement.equals("updateResource")) {
      ResourcePersistence resourceManager = ProcessObjectFactory.FACTORYINSTANCE.createResourcePersistence(connection);
      resourceManager.updateResource(persistentObject);
      return;
    }
   
   
  }
View Full Code Here

Examples of edu.ubb.warp.dao.ResourceDAO.updateResource()

          try {
            Resource changedResource = resDao
                .getResourceOfUser(changedUser);

            changedResource.setActive(!changedResource.isActive());
            resDao.updateResource(changedResource);
          } catch (ResourceHasActiveProjectException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();

          } catch (ResourceNotFoundException e) {
View Full Code Here

Examples of juzu.impl.fs.spi.ram.RAMFileSystem.updateResource()

    snapshot = snapshot.scan();
    assertEquals(Collections.<String, Change>emptyMap(), snapshot.getChanges());

    //
    String[] bar = fs.makePath(foo, "bar.txt");
    fs.updateResource(bar, new Resource(""));
    waitForOneMillis();
    snapshot = snapshot.scan();
    assertEquals(Collections.singletonMap("/foo/bar.txt", Change.ADD), snapshot.getChanges());
    waitForOneMillis();
    snapshot = snapshot.scan();
View Full Code Here

Examples of org.apache.helix.api.accessor.ClusterAccessor.updateResource()

    Map<String, String> mapField = Maps.newHashMap();
    mapField.put("k1", "v1");
    mapField.put("k2", "v2");
    userConfig.setMapField("sampleMap", mapField);
    ResourceConfig.Delta delta = new ResourceConfig.Delta(resource.getId()).addUserConfig(userConfig);
    accessor.updateResource(resource.getId(), delta);
  }

  private static void createCluster(ClusterConfig cluster, HelixConnection connection) {
    ClusterAccessor accessor = connection.createClusterAccessor(cluster.getId());
    accessor.createCluster(cluster);
View Full Code Here

Examples of org.apache.helix.api.accessor.ClusterAccessor.updateResource()

    ResourceConfig.Delta delta = new ResourceConfig.Delta(resourceId);
    YarnProvisionerConfig config = new YarnProvisionerConfig(resourceId);
    config.setNumContainers(numContainers);
    delta.setProvisionerConfig(config);
    delta.setIdealState(resource.getIdealState());
    ResourceConfig updatedResourceConfig = clusterAccessor.updateResource(resourceId, delta);
    LOG.info("Update provisioner config:" + updatedResourceConfig.getProvisionerConfig());

  }

  @SuppressWarnings("static-access")
View Full Code Here

Examples of org.apache.helix.api.accessor.ResourceAccessor.updateResource()

    mapField.put("k1", "v1");
    mapField.put("k2", "v2");
    userConfig.setMapField("sampleMap", mapField);
    ResourceConfig.Delta delta =
        new ResourceConfig.Delta(resource.getId()).setUserConfig(userConfig);
    accessor.updateResource(resource.getId(), delta);
  }

  private static void createCluster(ClusterConfig cluster, HelixConnection connection) {
    ClusterAccessor accessor = connection.createClusterAccessor(cluster.getId());
    accessor.createCluster(cluster);
View Full Code Here

Examples of org.apache.synapse.registry.Registry.updateResource()

                if (registry != null) {
                    if (registry.getRegistryEntry(key).getType() == null) {
                        handleFault("No resource exists by the key '" + key + "'", null);
                    }

                    registry.updateResource(key, endpointElement);

                    if (log.isDebugEnabled()) {
                        log.debug("Updated endpoint : " + endpointName + " in the Synapse registry");
                    }
                    return true;
View Full Code Here

Examples of org.apache.synapse.registry.Registry.updateResource()

            if (registry != null) {
                if (registry.getRegistryEntry(key).getType() == null) {
                    handleException("Unable to save the sequence. No resource is available " +
                            "by the key '" + key + "'");
                }
                registry.updateResource(key, sequence);
            } else {
                handleException("Unable to access the registry instance for the ESB");
            }
        } finally {
            lock.unlock();
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.