Ejemplo n.º 1
1
  public static final void current(IData pipeline) throws ServiceException {
    // --- <<IS-START(current)>> ---
    // @subtype unknown
    // @sigtype java 3.5
    // [o] field:0:required $thread
    IDataCursor cursor = pipeline.getCursor();

    try {
      Thread thread = Thread.currentThread();
      String description =
          thread.getClass().getName() + " ID#" + thread.getId() + " " + thread.getName();
      IDataUtil.put(cursor, "$thread", description);
    } finally {
      cursor.destroy();
    }
    // --- <<IS-END>> ---

  }