Examples of ExecResult


Examples of org.apache.hadoop.hbase.client.coprocessor.ExecResult

            mutations.add(a);
          } else if (action instanceof Get) {
            response.add(regionName, originalIndex,
                get(regionName, (Get)action));
          } else if (action instanceof Exec) {
            ExecResult result = execCoprocessor(regionName, (Exec)action);
            response.add(regionName, new Pair<Integer, Object>(
                a.getOriginalIndex(), result.getValue()
            ));
          } else if (action instanceof Increment) {
            response.add(regionName, originalIndex,
                increment(regionName, (Increment)action));
          } else if (action instanceof Append) {
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.ExecResult

      IOException ioe = new IOException(e.toString());
      ioe.setStackTrace(e.getStackTrace());
      throw ioe;
    }

    return new ExecResult(value);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.ExecResult

      IOException ioe = new IOException(e.toString());
      ioe.setStackTrace(e.getStackTrace());
      throw ioe;
    }

    return new ExecResult(getRegionName(), value);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.ExecResult

      IOException ioe = new IOException(e.toString());
      ioe.setStackTrace(e.getStackTrace());
      throw ioe;
    }

    return new ExecResult(value);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.ExecResult

      IOException ioe = new IOException(e.toString());
      ioe.setStackTrace(e.getStackTrace());
      throw ioe;
    }

    return new ExecResult(getRegionName(), value);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.ExecResult

            mutations.add(a);
          } else if (action instanceof Get) {
            response.add(regionName, originalIndex,
                get(regionName, (Get)action));
          } else if (action instanceof Exec) {
            ExecResult result = execCoprocessor(regionName, (Exec)action);
            response.add(regionName, new Pair<Integer, Object>(
                a.getOriginalIndex(), result.getValue()
            ));
          } else if (action instanceof Increment) {
            response.add(regionName, originalIndex,
                increment(regionName, (Increment)action));
          } else if (action instanceof Append) {
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.ExecResult

            response.add(regionName, originalIndex,
                get(regionName, (Get)action));
          } else if (action instanceof Put) {
            puts.add(a)// wont throw.
          } else if (action instanceof Exec) {
            ExecResult result = execCoprocessor(regionName, (Exec)action);
            response.add(regionName, new Pair<Integer, Object>(
                a.getOriginalIndex(), result.getValue()
            ));
          } else if (action instanceof Increment) {
            response.add(regionName, originalIndex,
                increment(regionName, (Increment)action));
          } else if (action instanceof Append) {
View Full Code Here

Examples of org.gradle.process.ExecResult

                System.err,
                new ByteArrayInputStream(new byte[0]),
                Collections.<ExecHandleListener>emptyList()
        );

        ExecResult result = execHandle.start().waitForFinish();
        assertEquals(ExecHandleState.SUCCEEDED, execHandle.getState());
        assertEquals(0, result.getExitValue());
        assertEquals("args: [arg1, arg2]", out.toString());
        result.assertNormalExitValue();
    }
View Full Code Here

Examples of org.gradle.process.ExecResult

                System.err,
                new ByteArrayInputStream(new byte[0]),
                Collections.<ExecHandleListener>emptyList()
        );

        ExecResult result = execHandle.start().waitForFinish();
        assertEquals(ExecHandleState.FAILED, execHandle.getState());
        assertEquals(72, result.getExitValue());
        try {
            result.assertNormalExitValue();
            fail();
        } catch (ExecException e) {
            assertEquals("Display-name finished with non-zero exit value.", e.getMessage());
        }
    }
View Full Code Here

Examples of org.gradle.process.ExecResult

        );

        execHandle.start();
        execHandle.abort();

        ExecResult result = execHandle.waitForFinish();
        assertEquals(ExecHandleState.ABORTED, execHandle.getState());
        assertThat(result.getExitValue(), not(equalTo(0)));
    }
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.