Examples of execute()


Examples of it.geosolutions.unredd.stats.impl.RasterClassifiedStatistics.execute()

       
        RasterClassifiedStatistics rcs = new RasterClassifiedStatistics();
        try {
            File dataFile = new File(getClass().getResource("landcover_2000.tiff").toURI());
            File classificatorFile = new File(getClass().getResource("zambia_provinces_canvas.tiff").toURI());
            Map<MultiKey, List<Result>> result = rcs.execute(true, new DataFile(dataFile), Arrays.asList(new DataFile[] { new DataFile(classificatorFile) }), Arrays
                    .asList(new Statistic[] { Statistic.SUM }));
            LOGGER.info("Stat System test: OK");
        } catch (IOException e) {
            if("true".equals(System.getenv("forceExecution"))){
                LOGGER.warn("The preliminary tests for executing stats are failed but has been configured the forceExecution, so move on with ingestion action expecting a failure when computing stats (just if they are defined of course)");
View Full Code Here

Examples of it.itc.irst.nusmv.cli.ExecuteNuSMV.execute()

        InputStream ruleStream = rule.getVerificationRule();
        monitor.worked(1);
             
        monitor.subTask("Passing to SMV verification");
        ExecuteNuSMV exec = new ExecuteNuSMV();
        List<String> output = exec.execute( new SequenceInputStream(modelStream, ruleStream) );
        monitor.worked(1);
       
        // add to log?
        if (shouldLog) {
          log.add("Executing rule " + rule + "...");
View Full Code Here

Examples of java.beans.Expression.execute()

     * @return
     */
    public static Object getAttributeValue(String propName, Object owner){
        try {
            Expression expr = new Expression(owner, "get" + propName, new Object[0]); //$NON-NLS-1$
            expr.execute();
            return expr.getValue();
        } catch (Exception e) {
            return null;
        }
    }
View Full Code Here

Examples of java.beans.Statement.execute()

        final Statement statement = new Statement( component, writeMethod.getName(), params );

        try
        {
            statement.execute();
        }
        catch ( Exception e )
        {          
            reportErrorCannotAssignRequiredComponent( descriptor, requirement, e );
        }
View Full Code Here

Examples of java.sql.CallableStatement.execute()

      assertEquals(2011, rs.getInt(1));
    }
   
    @Test public void testSetProperty() throws Exception {
      CallableStatement s = connection.prepareCall("{? = call sysadmin.setProperty((select uid from tables where name='vw'), 'foo', 'bar')}");
      assertFalse(s.execute());
      assertNull(s.getClob(1));
     
      Statement stmt = connection.createStatement();
      ResultSet rs = stmt.executeQuery("select name, \"value\" from properties where uid = (select uid from tables where name='vw')");
      rs.next();
View Full Code Here

Examples of java.sql.PreparedStatement.execute()

        PreparedStatement prep = conn.prepareStatement("INSERT INTO TEST VALUES(?, 'Hello World')");
        printTimeMemory("start", 0);
        time = System.currentTimeMillis();
        for (int i = 0; i < len; i++) {
            prep.setInt(1, i);
            prep.execute();
            if (i % 50000 == 0) {
                trace("  " + (100 * i / len) + "%");
            }
        }
        printTimeMemory("insert", System.currentTimeMillis() - time);
View Full Code Here

Examples of java.sql.Statement.execute()

      // We create the table.
//         s.execute("create cached table JoramDB(name VARCHAR PRIMARY KEY, content VARBINARY(256))");
      /*
      s.execute("CREATE TABLE JoramDB (name VARCHAR(256), content LONG VARCHAR FOR BIT DATA, PRIMARY KEY(name))");
      */
      s.execute("CREATE TABLE JoramDB (name VARCHAR(256), content longblob, primary key(name))"); // MySQL
      s.close();
      conn.commit();
    } catch (SQLException sqle) {
        String exceptionString = sqle.toString();
        if (exceptionString.indexOf("CREATE command denied") == -1)
View Full Code Here

Examples of java.util.concurrent.Executor.execute()

                    if(log.isTraceEnabled()) log.trace(new StringBuilder("looping back message ").append(msg));
                    if(msg.getSrc() == null)
                        msg.setSrc(local_addr);

                    Executor pool=msg.isFlagSet(Message.OOB)? oob_pool : default_pool;
                    pool.execute(new Runnable() {
                        public void run() {
                            up_prot.up(evt);
                        }
                    });
                }
View Full Code Here

Examples of java.util.concurrent.ExecutorService.execute()

            changeViewBundling(channels[i]);
            replaceDiscoveryProtocol(channels[i]);
        }

        for(final Task t:tasks) {
            executor.execute(t);
        }

        int timeoutToConverge=120;
        boolean successConnecting  = false;
        try {
View Full Code Here

Examples of java.util.concurrent.ForkJoinPool.execute()

   
    // Create a Task to process the array
    SearchNumberTask task=new SearchNumberTask(array,0,1000,5,manager);
   
    // Execute the task
    pool.execute(task);

    // Shutdown the pool
    pool.shutdown();
   
   
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.