|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.indi.server.IndiServer
public class IndiServer
An Indiserver to host drivers
| 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 |
|---|
public java.util.Collection<BasicDevice> drivers
public java.util.Collection<ClientHandler> clientHandlers
public org.indi.reactor.Reactor reactor
public java.lang.String version
public java.util.Set<Observer> observers
| Constructor Detail |
|---|
public IndiServer()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void addDriver(BasicDevice driver)
driver - the driver to be addedpublic void addObserver(Observer o)
o - the observer to be addedpublic void removeObserver(Observer o)
o - the observer to be removed
public void sendToClients(org.indi.objects.Object object,
org.indi.objects.TransferType type,
java.lang.String message)
object - the indiobject to be sendtype - the way it should be sendmessage - the message to be sent along with the objectpublic static void main(java.lang.String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||