// //////////////////////////////////////////////////////
  // Override
  // //////////////////////////////////////////////////////
  public void fillParameter() throws AppException {
    try {
      super.fillParameter();

      // //////////////////////////////////////////////////////
      // Fill extent parameter
      // //////////////////////////////////////////////////////

      deliveryUser = ThreadUtil.getString(this, "deliveryUser", false, "");
      channel = ThreadUtil.getString(this, "channel", false, "");
      serviceAddress = ThreadUtil.getString(this, "serviceAddress", false, "");
      isdn = ThreadUtil.getString(this, "isdn", false, "");
      endIsdn = ThreadUtil.getString(this, "endIsdn", false, "");
      shipTo = ThreadUtil.getString(this, "shipTo", false, "");
      keyword = ThreadUtil.getString(this, "keyword", false, "");
      batchSize = ThreadUtil.getInt(this, "batchSize", 1);
      timeBetweenLoop = ThreadUtil.getInt(this, "timeBetweenLoop", 1);
      orderTimeout = ThreadUtil.getInt(this, "orderTimeout", 60000);
    } catch (AppException e) {
      throw e;
    } catch (Exception e) {
      throw new AppException(e.getMessage());
    }
  }
  // //////////////////////////////////////////////////////
  // Override
  // //////////////////////////////////////////////////////
  @SuppressWarnings({"rawtypes", "unchecked"})
  public Vector getDispatcherDefinition() {
    Vector vtReturn = new Vector();

    vtReturn.addElement(ThreadUtil.createTextParameter("deliveryUser", 30, ""));
    // vtReturn.addElement(ThreadUtil.createTextParameter("channel", 30, ""));
    vtReturn.addElement(ThreadUtil.createComboParameter("channel", "SMS,web", ""));
    vtReturn.addElement(ThreadUtil.createTextParameter("serviceAddress", 30, ""));
    vtReturn.addElement(ThreadUtil.createTextParameter("isdn", 30, ""));
    vtReturn.addElement(
        ThreadUtil.createTextParameter(
            "endIsdn",
            30,
            "If parameter is set, the simulator send order of subscribers range from isdn to endIsdn."));
    vtReturn.addElement(ThreadUtil.createTextParameter("shipTo", 30, ""));
    vtReturn.addElement(ThreadUtil.createTextParameter("keyword", 30, ""));
    vtReturn.addElement(ThreadUtil.createTextParameter("batchSize", 30, ""));
    vtReturn.addElement(ThreadUtil.createIntegerParameter("timeBetweenLoop", ""));
    vtReturn.addElement(
        ThreadUtil.createIntegerParameter("orderTimeout", "Time to live of order (s)."));

    vtReturn.addAll(ThreadUtil.createQueueParameter(this));

    return vtReturn;
  }