gov.nasa.gsfc.drl.rtstps.viewer.status
Class PointServer

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.viewer.status.PointServer
All Implemented Interfaces:
StatusListener

 class PointServer
extends java.lang.Object
implements StatusListener

This is a service class for the Distributor. It handles the distribution of one StatusItem to more than one registeed status listener.


Field Summary
private  java.util.LinkedList<StatusListener> listeners
           
 
Constructor Summary
PointServer(StatusListener sl1, StatusListener sl2)
          Create a PointServer with two initial StatusListeners.
 
Method Summary
(package private)  void addListener(StatusListener sl)
          Add a status listener.
 void processStatusItem(StatusItem item, java.lang.String fullId)
          The listener gets a status item from the Distributor or its proxy.
(package private)  int removeListener(StatusListener sl)
          Remove a status listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

private java.util.LinkedList<StatusListener> listeners
Constructor Detail

PointServer

PointServer(StatusListener sl1,
            StatusListener sl2)
Create a PointServer with two initial StatusListeners.

Method Detail

addListener

void addListener(StatusListener sl)
Add a status listener.


removeListener

int removeListener(StatusListener sl)
Remove a status listener.


processStatusItem

public void processStatusItem(StatusItem item,
                              java.lang.String fullId)
The listener gets a status item from the Distributor or its proxy.

Specified by:
processStatusItem in interface StatusListener