Examples of execute()


Examples of com.samskivert.mustache.Template.execute()

    public void render(Writer out, String view, Object context) throws IOException {
        Reader source = null;
        try {
            source = load(view);
            Template template = mustache.compile(source);
            template.execute(context, out);
        } finally {
            Streams.close(source);
        }
    }
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.processor.DataProcessor.execute()

        OmniDTO returnTO = null;

        try {
            DataProcessor dp = DataProcessorFactory.getInstance().getDataProcessor(udc, processorType, processorName);
            returnTO = dp.execute(udc, convertKeyCase(inputs), outputFilters);
            if (returnTO != null) {
                returnTO.setProcessorType(processorType);
                returnTO.setProcessorName(processorName);
            }
        }
View Full Code Here

Examples of com.scratchdisk.script.Script.execute()

     * @throws IOException
     */
    public boolean evaluate(File file) {
      try {
        Script script = compileScript(file);
        script.execute(createScope());
        return true;
      } catch (ScriptException e) {
        System.err.println(e.getFullMessage());
        e.printStackTrace();
      } catch (IOException e) {
View Full Code Here

Examples of com.serotonin.m2m2.rt.script.ScriptExecutor.execute()

            Map<String, IDataPointValueSource> context = new HashMap<String, IDataPointValueSource>();
            context.put(PointLinkRT.CONTEXT_VAR_NAME, point);
            int targetDataType = new DataPointDao().getDataPoint(targetPointId).getPointLocator().getDataTypeId();

            try {
                PointValueTime pvt = scriptExecutor.execute(script, context, System.currentTimeMillis(),
                        targetDataType, -1);
                if (pvt.getValue() == null)
                    message = new TranslatableMessage("event.pointLink.nullResult");
                else if (pvt.getTime() == -1)
                    message = new TranslatableMessage("pointLinks.validate.success", pvt.getValue());
View Full Code Here

Examples of com.simoncat.net.HttpClient.execute()

    if(lb){
      // autenticar y undeploy la aplicacion en el tomcat.
      ////http://localhost:8080/manager/undeploy?path=/Binary
      String undeploy = "http://localhost:8080/manager/undeploy?path=/Binary";
           HttpClient hc2 = new HttpClient("localhost",8080,"tomcat","admin",undeploy);
       ub=hc2.execute();
    }
        //Copy WAR
    //confirmar upload 
   
    if((lb && ub) || (!lb) ){
View Full Code Here

Examples of com.sk89q.skmcl.util.HttpRequest.execute()

    private static BufferedImage readSkin(String username) throws IOException {
        URL url = HttpRequest.url(String.format(SKINS_URL, username));
        HttpRequest request = HttpRequest.get(url);

        try {
            request.execute();
            return ImageIO.read(request.getInputStream());
        } finally {
            try {
                request.close();
            } catch (IOException e) {
View Full Code Here

Examples of com.skyline.energy.executor.DataAccessExecutor.execute()

  }

  public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
    DataAccessExecutor executor = ExecutorFactory.getExecutor(cacheManager, dataAccessor, method);
    if (executor != null) {
      return executor.execute(obj, args);
    }
    return null;
  }

}
View Full Code Here

Examples of com.sleepycat.dbxml.XmlQueryExpression.execute()

            }

            // execute the query
            a = System.nanoTime();

            XmlResults results = qe.execute(context);

            b = System.nanoTime();
            total += b - a;
            if (log.isDebugEnabled()) {
                log.debug("Query exec. time: " + (b - a) + "ns");
View Full Code Here

Examples of com.sleepycat.je.rep.NetworkRestore.execute()

        {
            LOGGER.info("InsufficientLogException thrown and so full network restore required", ile);
            NetworkRestore restore = new NetworkRestore();
            NetworkRestoreConfig config = new NetworkRestoreConfig();
            config.setRetainLogFiles(false);
            restore.execute(ile, config);
            replicatedEnvironment = new ReplicatedEnvironment(environmentPath, replicationConfig, envConfig);
        }

        return replicatedEnvironment;
    }
View Full Code Here

Examples of com.sleepycat.je.rep.stream.FeederReplicaHandshake.execute()

            try {
                FeederReplicaHandshake handshake =
                    new FeederReplicaHandshake(repNode,
                                               Feeder.this,
                                               feederReplicaChannel);
                protocol = handshake.execute();
                protocolVersion = protocol.getVersion();
                replicaNameIdPair = handshake.getReplicaNameIdPair();

                /*
                 * Rename the thread when we get the replica name in, so that
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.