Examples of Result


Examples of com.alibaba.dubbo.rpc.Result

    }

    @Override
    protected Result doInvoke(Invocation invocation) throws Throwable {
        try {
            Result result = invoker.invoke(invocation);
            Throwable e = result.getException();
            if (e != null) {
                String name = e.getClass().getName();
                if (name.startsWith(HESSIAN_EXCEPTION_PREFIX)) {
                    RpcException re = new RpcException("Failed to invoke remote service: " + getInterface() + ", method: "
                            + invocation.getMethodName() + ", cause: " + e.getMessage(), e);
View Full Code Here

Examples of com.alibaba.otter.shared.common.utils.cmd.Exec.Result

public class ExecIntegration extends BaseOtterTest {

    @Test
    public void testSample() {
        try {
            Result result = Exec.execute("dir");// liunx和windows度支持的命令
            want.object(result).notNull();
            want.string(result.getStdout()).notBlank();
        } catch (Exception e) {
            want.fail();
        }

    }
View Full Code Here

Examples of com.android.ide.common.rendering.api.Result

     * @return a {@link Result} indicating the status of the action, and if success, the parent
     *      object in {@link Result#getData()}
     */
    public Result getViewParent(Object viewObject) {
        if (mBridge != null) {
            Result r = mBridge.getViewParent(viewObject);
            if (r.isSuccess()) {
                return r;
            }
        }

        return getViewParentWithReflection(viewObject);
View Full Code Here

Examples of com.asakusafw.runtime.stage.temporary.TemporaryFileInputHelper.Result

            helper.releaseBuffer(buffer);
            buffer = null;
        }
        if (buffer == null) {
            try {
                Result result = helper.getNextPage();
                this.buffer = result.buffer;
                this.sawEof = result.sawEof;
                this.positionInBlock = result.positionInBlock;
                this.currentBlock = result.currentBlock;
                if (result.dataTypeName != null) {
View Full Code Here

Examples of com.cawring.simple.result.Result

    catch (TemplateException e)
    {
      log.severe(ftlPath+" 해당 파일에 문제가 발생했습니다.");
    }
   
    return new Result();
  }
View Full Code Here

Examples of com.cedarsoft.codegen.parser.Result

  public abstract static class AbstractGeneratorRunner<T extends DecisionCallback> implements Runner {
    @Override
    public void generate( @Nonnull GeneratorConfiguration configuration ) throws IOException, JClassAlreadyExistsException {
      PrintStream statusPrinter = new PrintStream( new WriterOutputStream( configuration.getLogOut() ) );

      Result result = Parser.parse( configuration.getClasspath(), configuration.getDomainSourceFiles() );

      if ( result.getClassDeclarations().isEmpty() ) {
        throw new IllegalStateException( "No class declarations found" );
      }

      for ( ClassDeclaration classDeclaration : result.getClassDeclarations() ) {
        if ( TypeUtils.isInner( classDeclaration ) ) {
          continue;
        }

        DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( classDeclaration ).create();
View Full Code Here

Examples of com.cj.jshintmojo.cache.Result

      JSHint jshint = new JSHint();

      final Map<String, Result> currentResults = new HashMap<String, Result>();
      for(File file : matches){
        Result previousResult = cache.previousResults.get(file.getAbsolutePath());
        Result theResult;
        if(previousResult==null || (previousResult.lastModified.longValue()!=file.lastModified())){
          getLog().info("  " + file );
          List<Error> errors = jshint.run(new FileInputStream(file), options, globals);
          theResult = new Result(file.getAbsolutePath(), file.lastModified(), errors);
        }else{
          getLog().info("  " + file + " [no change]");
          theResult = previousResult;
        }
       
        if(theResult!=null){
          currentResults.put(theResult.path, theResult);
          Result r = theResult;
          currentResults.put(r.path, r);
          for(Error error: r.errors){
            getLog().error("   " + error.line.intValue() + "," + error.character.intValue() + ": " + error.reason);
          }
        }
View Full Code Here

Examples of com.codahale.metrics.health.HealthCheck.Result

     * @return a map of the health check results
     */
    public SortedMap<String, HealthCheck.Result> runHealthChecks() {
        final SortedMap<String, HealthCheck.Result> results = new TreeMap<String, HealthCheck.Result>();
        for (Map.Entry<String, HealthCheck> entry : healthChecks.entrySet()) {
            final Result result = entry.getValue().execute();
            results.put(entry.getKey(), result);
        }
        return Collections.unmodifiableSortedMap(results);
    }
View Full Code Here

Examples of com.codename1.processing.Result

   * @see
   * com.codename1.io.services.TwitterRESTService#readResponse(java.io.InputStream
   * )
   */
  protected void readResponse(InputStream input) throws IOException {
    Result result = Result.fromContent(input, Result.JSON);
    Vector tweets = result.getAsArray("/root");
    if (tweets.size() > 0) {
      final Comparator cmp = new StringComparator();
      for (Enumeration e = tweets.elements(); e.hasMoreElements(); ) {
        Result tweet = Result.fromContent((Hashtable)e.nextElement());
        String id = tweet.getAsString("id_str");
        if ((since_id == null) || cmp.compare(id, since_id) > 0) {
          // this is currently causing twitter to response with no tweets.
          //setSinceId(id);
        }
        if ((max_id == null) || cmp.compare(id, max_id) < 0) {
View Full Code Here

Examples of com.cxy.redisclient.integration.protocol.Result

public class TestClient extends TestCase {
  public void testSet() throws IOException {
    RedisSession client = new RedisSession("localhost", 80);
    client.connect();
    Result result = client.execute("multi\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result);
    Result result1 = client.execute("exec\r\n");
    System.out.println(result1.getResult());
    client.disconnect();
  }
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.