org.indi.server
Class IndiServer

java.lang.Object
  extended by org.indi.server.IndiServer

public class IndiServer
extends java.lang.Object

An Indiserver to host drivers

Author:
Dirk Hünniger

Field Summary
 java.util.Collection<ClientHandler> clientHandlers
          A collection of clients connected to this server
 java.util.Collection<BasicDevice> drivers
          A collection of devicedrivers hosted by this server
 java.util.Set<Observer> observers
          the set of registered oberservers observing changes of a particular property of a particular driver
 org.indi.reactor.Reactor reactor
          the reactor used by this server for event dispatching
 java.lang.String version
          the version of the indisever
 
Constructor Summary
IndiServer()
          class constructor
 
Method Summary
 void addDriver(BasicDevice driver)
          add a new driver to the server
 void addObserver(Observer o)
          add a new observer to the server
static void main(java.lang.String[] args)
           
 void removeObserver(Observer o)
          remove an existing obeserver from the server.
 void sendToClients(org.indi.objects.Object object, org.indi.objects.TransferType type, java.lang.String message)
          send an indiobject to all interested clients
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drivers

public java.util.Collection<BasicDevice> drivers
A collection of devicedrivers hosted by this server


clientHandlers

public java.util.Collection<ClientHandler> clientHandlers
A collection of clients connected to this server


reactor

public org.indi.reactor.Reactor reactor
the reactor used by this server for event dispatching


version

public java.lang.String version
the version of the indisever


observers

public java.util.Set<Observer> observers
the set of registered oberservers observing changes of a particular property of a particular driver

Constructor Detail

IndiServer

public IndiServer()
           throws java.io.IOException
class constructor

Throws:
java.io.IOException
Method Detail

addDriver

public void addDriver(BasicDevice driver)
add a new driver to the server

Parameters:
driver - the driver to be added

addObserver

public void addObserver(Observer o)
add a new observer to the server

Parameters:
o - the observer to be added

removeObserver

public void removeObserver(Observer o)
remove an existing obeserver from the server.

Parameters:
o - the observer to be removed

sendToClients

public void sendToClients(org.indi.objects.Object object,
                          org.indi.objects.TransferType type,
                          java.lang.String message)
send an indiobject to all interested clients

Parameters:
object - the indiobject to be send
type - the way it should be send
message - the message to be sent along with the object

main

public static void main(java.lang.String[] args)
Parameters:
args -


Copyright © 2008. All Rights Reserved.