iCMS.applet
Class ClientPollerd

java.lang.Object
  extended by luky.serverSimple.Client
      extended by luky.serverSimple.ClientExtended
          extended by iCMS.applet.ClientPollerd
All Implemented Interfaces:
Runnable, EventListener, MyEventListener

public class ClientPollerd
extends ClientExtended

The ClientPollerd class extends the ClientExtended class and is created to make a listner for status changes in the pollerd which communicates with MyEventListners

Version:
2.0.1
Author:
Chris Lukassen
 

Field Summary
 
Fields inherited from class luky.serverSimple.ClientExtended
IDLE, listenerList, name, RECONNECTING, RUNNING, STARTING, status, STOPPING
 
Fields inherited from class luky.serverSimple.Client
connected, reader, writer
 
Constructor Summary
ClientPollerd(String ip, String port, int interval)
          constructor, takes ip number and portnumber of the server to connect to it will monitor all available tokens
ClientPollerd(String ip, String port, int interval, String token)
          constructor, takes ip number and portnumber of the server to connect to and an additional token it will monitor
 
Method Summary
 void myEventOccurred(MyEvent evt)
          This method gets called by the Watchdog
 void run()
          main loop of the client
 
Methods inherited from class luky.serverSimple.ClientExtended
addMyEventListener, fireMyEvent, handleCommError, removeMyEventListener, start, stop
 
Methods inherited from class luky.serverSimple.Client
getLine, getList, openConnection, sendCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientPollerd

public ClientPollerd(String ip,
                     String port,
                     int interval)
constructor, takes ip number and portnumber of the server to connect to it will monitor all available tokens


ClientPollerd

public ClientPollerd(String ip,
                     String port,
                     int interval,
                     String token)
constructor, takes ip number and portnumber of the server to connect to and an additional token it will monitor

Method Detail

myEventOccurred

public void myEventOccurred(MyEvent evt)
This method gets called by the Watchdog

Specified by:
myEventOccurred in interface MyEventListener
Overrides:
myEventOccurred in class ClientExtended

run

public void run()
main loop of the client

Specified by:
run in interface Runnable
Overrides:
run in class ClientExtended