Examples of call()


Examples of com.dotcms.repackage.groovy.lang.Closure.call()

                          Vector arguments) throws BSFException {
          Object object = eval(source, lineNo, columnNo, funcBody);
          if (object instanceof Closure) {
              // lets call the function
              Closure closure = (Closure) object;
              return closure.call(arguments.toArray());
          }
          return object;
      }

      /**
 
View Full Code Here

Examples of com.dotcms.repackage.org.apache.bsf.BSFEngine.call()

   * @throws NoSuchUserException
   */
  public Object callMethod(String language, String filePath, Host host, String methodName, Object[] args) throws BSFException, NoSuchUserException, IOException, DotSecurityException, DotDataException{
    BSFEngine engine = manager.get().loadScriptingEngine(language);
    String source = readFile(filePath, host);
    return engine.call(source, methodName, args);
  }

  /**
   * currently doesn't work with all languages
   * @param language
View Full Code Here

Examples of com.elastisys.scale.cloudadapters.aws.commons.requests.ec2.GetInstances.call()

    List<String> instanceIds = Lists.transform(
        autoScalingGroup.getInstances(),
        AwsAutoScalingFunctions.toAutoScalingInstanceId());
    GetInstances listInstances = new GetInstances(getAwsCredentials(),
        getRegion(), new Filter("instance-id", instanceIds));
    return listInstances.call();
  }
}
View Full Code Here

Examples of com.elastisys.scale.cloudadapters.openstack.requests.CreateServerRequest.call()

        serverName, provisioningDetails.getSize(),
        provisioningDetails.getImage(),
        provisioningDetails.getKeyPair(),
        provisioningDetails.getSecurityGroups(), Optional.of(userData),
        tags);
    return request.call();
  }

  @Override
  public String assignFloatingIp(String serverId) {
    Server server = getServer(serverId);
View Full Code Here

Examples of com.emc.esu.sysmgmt.pox.GetUidRequest.call()

  public GetUidResponse getUidPox(String subTenantName, String uid) throws Exception {
    GetUidRequest req = new GetUidRequest(this);
    req.setUid(uid);
    req.setSubTenantName(subTenantName);
   
    return req.call();
  }

}
View Full Code Here

Examples of com.emc.esu.sysmgmt.pox.ListRmgRequestPox.call()

  public ListRmgResponsePox listRmgsPox() throws Exception {
    if(poxCookie == null) {
      throw new RuntimeException("Not logged in to POX");
    }
    ListRmgRequestPox req = new ListRmgRequestPox(this);
    return req.call();
  }

  /**
   * Lists all of the hosts in the given RMG.
   *
 
View Full Code Here

Examples of com.gamingmesh.jobs.util.UUIDFetcher.call()

                    usernames.add(rs.getString(1));
                }
                UUIDFetcher uuidFetcher = new UUIDFetcher(usernames);
                Map<String, UUID> userMap = null;
                try {
                    userMap = uuidFetcher.call();
                } catch (Exception e) {
                    e.printStackTrace();
                }
               
                if (userMap == null) {
View Full Code Here

Examples of com.github.mustachejava.util.Wrapper.call()

        if (wrapper != null) {
          // We need to dig into a scope when dot notation shows up
          wrappers.add(wrapper);
          try {
            // Pull out the next level
            scope = coerce(wrapper.call(new Object[]{scope}));
          } catch (GuardException e) {
            throw new AssertionError(e);
          }
        } else {
          // Failed to find a wrapper for the next dot
View Full Code Here

Examples of com.google.code.magja.soap.SoapClient.call()

  @Test
  public void testProductType() throws Exception {
    ConnectionMock conn = new ConnectionMock();
    SoapClient client = conn.getClient();
    List<Map<String, Object>> productList = (List<Map<String, Object>>) client.call(ResourcePath.ProductTypeList, "");

    for (Map<String, Object> map : productList) {
      System.out.println(map.toString());
    }
  }
View Full Code Here

Examples of com.google.gerrit.server.changedetail.AbandonChange.call()

      PatchSetInfoNotAvailableException, RepositoryNotFoundException,
      IOException {
    final AbandonChange abandonChange = abandonChangeProvider.get();
    abandonChange.setChangeId(patchSetId.getParentKey());
    abandonChange.setMessage(message);
    final ReviewResult result = abandonChange.call();
    if (result.getErrors().size() > 0) {
      throw new NoSuchChangeException(result.getChangeId());
    }
    return changeDetailFactory.create(result.getChangeId()).call();
  }
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.