|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
PortaViewClient | Provides the API for client calls to remote PortaViews. |
PortaViewCommands | Commands for the XML-RPC server. |
PortaViewServer | A server that runs on the remote box that listens to the display call from the source. |
PortaViewUpdateRunner | Thread that periodically polls the remote PortaViews and check if you need to update them. |
Repository | Represents a photo repository. |
SlideRunner | Thread that updates the displayer every seconds and see if you need to advance to the next slide. |
PortaView's server that both serves as a client (to retrieve the images from the master PortaView's server) and a server (to accept local modification as commanded by the master server).
Essentially, each PortaView instance runs an XML-RPC server that listens to port 8888 (currently hard-coded) when the main application opens. In particular, it listens only on the IP address specified during the setup phase.
If the server is running as master, the server is responsible for serving images to remove slave servers when the they request them. Note that the PortaView Manager interface will only talk to a PortaView server, even the Manager is running on the same machine as the server. It is doing so in order to preserve network transparency between the manager and the server.
When a slave PortaView starts up, it first send an XML-RPC call to the remote Master server to register itself. The master PortaView server will then add the slave PortaView in a list that the master server manages.
When a slave PortaView shuts itself down, it sends an XML-RPC call to the master server to unregister itself.
Otherwise, the slave will just wait for commands issued by the master.
The master server, on the other handle, poll the registered slaves every 5 seconds to update their status in the manager.
When the user decides to change the image, an XML-RPC request to change the image will be sent to the remote PortaView. The Portaview that dectects the change event will decide whether it needs to request an image from the master server. If it needs to, it send a request to retrieve the image.
|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |