Example #1
0
  public Draw(
      String props,
      boolean no_channel,
      boolean jmx,
      boolean use_state,
      long state_timeout,
      boolean use_blocking,
      boolean use_unicasts,
      String name)
      throws Exception {
    this.no_channel = no_channel;
    this.jmx = jmx;
    this.use_state = use_state;
    this.state_timeout = state_timeout;
    this.use_unicasts = use_unicasts;
    if (no_channel) return;

    channel = new JChannel(props);
    if (name != null) channel.setName(name);
    if (use_blocking) channel.setOpt(Channel.BLOCK, Boolean.TRUE);
    channel.setReceiver(this);
    channel.addChannelListener(this);
  }