Example #1
0
 public Draw(Channel channel, boolean use_state, long state_timeout) throws Exception {
   this.channel = channel;
   channel.setReceiver(this);
   channel.addChannelListener(this);
   this.use_state = use_state;
   this.state_timeout = state_timeout;
 }
Example #2
0
  public void start(String props) throws Exception {

    channel = new JChannel(props);
    channel.setReceiver(this);
    channel.connect("ViewDemo");

    while (true) {
      Util.sleep(10000);
    }
  }
Example #3
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);
  }
Example #4
0
 public Draw(Channel channel) throws Exception {
   this.channel = channel;
   channel.setReceiver(this);
   channel.addChannelListener(this);
 }