Examples of EvalResult


Examples of com.adahas.tools.jmxeval.response.EvalResult

   
    final String outputMessage = replaceWithVars(context, message);
   
    // set results to context
    final String evalName = ((Eval) getParentElement()).getName();
    context.getResponse().addEvalResult(new EvalResult(evalName, status, outputMessage));
   
    // process child elements
    super.process(context);
  }
View Full Code Here

Examples of com.adahas.tools.jmxeval.response.EvalResult

        // process child elements
        super.process(context);
      }
     
    } catch (EvalException e) {
      context.getResponse().addEvalResult(new EvalResult(name, e.getStatus(), e.getMessage()));
     
    } catch (RuntimeException e) {
      context.getResponse().addEvalResult(new EvalResult(
          name, Status.UNKNOWN, e.getMessage() + " [" + e.getClass().getName() + "]"));
    } catch (UnknownHostException e) {
      context.getResponse().addEvalResult(new EvalResult(
          name, Status.UNKNOWN, e.getMessage() + " [" + e.getClass().getName() + "]"));
    }
  }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult

    if (response == null) {
      throw new ScopeException("Internal error while executing script");
    }

    EvalResult result = parseEvalData(response);

    Object parsed = parseEvalReply(result);
    if (parsed instanceof EcmascriptProtos.Object) {
      EcmascriptProtos.Object data = (EcmascriptProtos.Object) parsed;
      return new ScriptResult(data.getObjectID(), data.getClassName());
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult

  public Object executeScript(String using, boolean responseExpected) {
    return executeScript(using, responseExpected, getRuntimeId());
  }

  private Object executeScript(String using, boolean responseExpected, int runtimeId) {
    EvalResult reply = eval(using, runtimeId);
    return responseExpected ? parseEvalReply(reply) : null;
  }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult

    EvalResult reply = eval(using, runtimeId);
    return responseExpected ? parseEvalReply(reply) : null;
  }

  public Integer getObject(String using) {
    EvalResult reply = eval(using);
    return (reply.getValue().getType().equals(Type.OBJECT)) ? reply.getValue().getObject()
        .getObjectID() : null;
  }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult

  }

  public Object callFunctionOnObject(String using, int objectId, boolean responseExpected) {
    Variable variable = buildVariable("locator", objectId);

    EvalResult reply = eval(using, variable);
    return responseExpected ? parseEvalReply(reply) : null;
  }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult

    return responseExpected ? parseEvalReply(reply) : null;
  }

  public Integer executeScriptOnObject(String using, int objectId) {
    Variable variable = buildVariable("locator", objectId);
    EvalResult reply = eval(using, variable);
    Object object = parseEvalReply(reply);

    if (object == null || !(object instanceof EcmascriptProtos.Object)) {
      return null;
    }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.Esdbg6Protos.EvalResult

    return (reply.getType().equals("object")) ? reply.getObjectValue().getObjectID() : null;
  }

  @Override
  public Integer getObject(String using, int runtimeId) {
    EvalResult reply = parseEvalData(eval(using, runtimeId));
    return (reply.getType().equals("object")) ? reply.getObjectValue().getObjectID() : null;
  }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.Esdbg6Protos.EvalResult

  @Override
  public String callFunctionOnObject(String using, int objectId) {
    Variable variable = buildVariable("locator", objectId);

    EvalResult reply = parseEvalData(eval(using, variable));
    return reply.getType().equals("null") ? null : reply.getValue();
  }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.Esdbg6Protos.EvalResult

  @Override
  public Integer executeScriptOnObject(String using, int objectId) {
    Variable variable = buildVariable("locator", objectId);

    EvalResult reply = parseEvalData(eval(using, variable));
    Object object = parseEvalReply(reply);
    if (object == null || !(object instanceof ObjectValue)) {
      return null;
    }
    return ((ObjectValue) object).getObjectID();
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.