コード例 #1
0
  /** From the operator we can get all the information we need */
  @Override
  public void initHook(Operator op) {
    this.opCanName = op.getClass().getCanonicalName();
    this.opName = op.getObjectLabel();
    this.ipAddress = op.getAttribute("ipAddress");

    // Where to we get the Operator Job ID?
    String strJobID = op.getAttribute("jobID");
    if (strJobID != null) {
      this.jobID = Integer.parseInt(strJobID);
    }
  }