Examples of Writable


Examples of org.apache.hadoop.io.Writable

            "Call queue is full, is ipc.server.max.callqueue.size too small?");
        responder.doRespond(callTooBig);
        return;
      }

      Writable param;
      try {
        param = ReflectionUtils.newInstance(paramClass, conf);//read param
        param.readFields(dis);
      } catch (Throwable t) {
        LOG.warn("Unable to read call parameters for client " +
                 getHostAddress(), t);
        final Call readParamsFailedCall =
          new Call(id, null, this, responder, callSize);
View Full Code Here

Examples of org.apache.hadoop.io.Writable

            LOG.debug(getName() + ": has #" + call.id + " from " +
                      call.connection);

          String errorClass = null;
          String error = null;
          Writable value = null;

          CurCall.set(call);
          try {
            if (!started)
              throw new ServerNotRunningYetException("Server is not running yet");
View Full Code Here

Examples of org.apache.nutch.io.Writable

  /** Called for each call. */
  public abstract Writable call(Writable param) throws IOException;

 
  private Writable makeParam() {
    Writable param;                               // construct param
    try {
      param = (Writable)paramClass.newInstance();
    } catch (InstantiationException e) {
      throw new RuntimeException(e.toString());
    } catch (IllegalAccessException e) {
View Full Code Here

Examples of org.jakstab.rtl.expressions.Writable

    RTLVariable reg16 = ExpressionFactory.createVariable("reg16");
    RTLVariable reg32 = ExpressionFactory.createVariable("reg32");
    RTLVariable i8 = ExpressionFactory.createVariable("i8");
    RTLVariable i16 = ExpressionFactory.createVariable("i16");
    RTLVariable i32 = ExpressionFactory.createVariable("i32");
    Writable modrm = ExpressionFactory.createVariable("modrm");
    allocPrototype = makePrototype(
        "ALLOC",
        new RTLAlloc(reg32),
        reg32.toString()
        );
    deallocPrototype = makePrototype(
        "DEALLOC",
        new RTLDealloc(ExpressionFactory.createVariable("modrm")),
        modrm.toString()
        );
    nondet8Prototype = makePrototype(
        "NONDET8",
        new AssignmentTemplate(8, reg8, ExpressionFactory.nondet(8)),
        reg8.toString(),
        i8.toString()
        );
    nondet16Prototype = makePrototype(
        "NONDET16",
        new AssignmentTemplate(16, reg16, ExpressionFactory.nondet(16)),
        reg16.toString(),
        i16.toString()
        );
    nondet32Prototype = makePrototype(
        "NONDET32",
        new AssignmentTemplate(32, reg32, ExpressionFactory.nondet(32)),
        reg32.toString(),
        i32.toString()
        );
    havoc8leqPrototype = makePrototype(
        "HAVOC8ULEQ",
        new RTLHavoc(reg8, i8),
        reg8.toString(),
        i8.toString()
        );
    havoc16leqPrototype = makePrototype(
        "HAVOC16ULEQ",
        new RTLHavoc(reg16, i16),
        reg16.toString(),
        i16.toString()
        );
    havoc32leqPrototype = makePrototype(
        "HAVOC32ULEQ",
        new RTLHavoc(reg32, i32),
        reg32.toString(),
        i32.toString()
        );
    assertGTPrototype = makePrototype(
        "ASSERTGT",
        new RTLAssert(ExpressionFactory.createGreaterThan(
            reg32, ExpressionFactory.createCast(modrm, ExpressionFactory.createNumber(32, 8)))),
        reg32.toString(),
        modrm.toString()
        );
    assertGEPrototype = makePrototype(
        "ASSERTGE",
        new RTLAssert(ExpressionFactory.createGreaterOrEqual(
            reg32, ExpressionFactory.createCast(modrm, ExpressionFactory.createNumber(32, 8)))),
        reg32.toString(),
        modrm.toString()
        );
    assertEQPrototype = makePrototype(
        "ASSERTEQ",
        new RTLAssert(ExpressionFactory.createEqual(
            reg32, ExpressionFactory.createCast(modrm, ExpressionFactory.createNumber(32, 8)))),
        reg32.toString(),
        modrm.toString()
        );
  }
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.