portaview.server
Class PortaViewServer

java.lang.Object
  extended byportaview.server.PortaViewServer

public class PortaViewServer
extends java.lang.Object

A server that runs on the remote box that listens to the display call from the source.

Version:
$Id: PortaViewServer.java,v 1.9 2003/12/10 06:18:57 wlee Exp $
Author:
William Lee

Field Summary
static java.lang.String XRPC_PROTO
           
 
Constructor Summary
PortaViewServer(java.lang.String name, java.net.InetAddress hostIP, java.net.InetAddress masterIP, Repository rep, int port)
          Constructs the an instance of the viewerserver
 
Method Summary
 AlbumCollection getAlbums()
           
 java.net.InetAddress getInetAddress()
           
 java.net.InetAddress getMasterIP()
           
 java.lang.String getMasterName()
           
 java.lang.String getName()
           
 PortaViewCollection getRegisteredPortaViews()
           
 Repository getRepository()
           
 void setAlbums(AlbumCollection collection)
          Sets the collection of albums.
 void setInetAddress(java.net.InetAddress inetAddress)
          Sets the IP address for this server.
 void setMasterIP(java.net.InetAddress masterIP)
          Sets the master's IP address.
 void setMasterName(java.lang.String masterName)
          Sets the master's name.
 void setName(java.lang.String name)
          Sets the name of this PortaView.
 void setRegisteredPortaViews(PortaViewCollection collection)
          Replace the collection of registered PortaViews with a new collection.
 void setRepository(Repository repository)
          Sets the repository of photos (on disk).
 void shutdown()
          Shuts down all servers.
 void start()
          Starts the XML-RPC server, the update runnder, and slide runner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XRPC_PROTO

public static java.lang.String XRPC_PROTO
Constructor Detail

PortaViewServer

public PortaViewServer(java.lang.String name,
                       java.net.InetAddress hostIP,
                       java.net.InetAddress masterIP,
                       Repository rep,
                       int port)
Constructs the an instance of the viewerserver

Method Detail

start

public void start()
           throws java.lang.Exception
Starts the XML-RPC server, the update runnder, and slide runner.

Throws:
java.lang.Exception - if starting fails.

shutdown

public void shutdown()
Shuts down all servers.


getName

public java.lang.String getName()
Returns:
the name of this server/PortaView.

setName

public void setName(java.lang.String name)
Sets the name of this PortaView.

Parameters:
name - name of PortaView.

getMasterName

public java.lang.String getMasterName()
Returns:
the master's name.

setMasterName

public void setMasterName(java.lang.String masterName)
Sets the master's name.

Parameters:
masterName - master's name.

getMasterIP

public java.net.InetAddress getMasterIP()
Returns:
the master's IP address.

setMasterIP

public void setMasterIP(java.net.InetAddress masterIP)
Sets the master's IP address.

Parameters:
masterIP -

getInetAddress

public java.net.InetAddress getInetAddress()
Returns:
the IP address for this server.

setInetAddress

public void setInetAddress(java.net.InetAddress inetAddress)
Sets the IP address for this server.

Parameters:
inetAddress - IP address.

getRepository

public Repository getRepository()
Returns:
the repository of photos (on disk).

setRepository

public void setRepository(Repository repository)
Sets the repository of photos (on disk).

Parameters:
repository - repository for photos.

getRegisteredPortaViews

public PortaViewCollection getRegisteredPortaViews()
Returns:
the collection of registered PortaViews.

setRegisteredPortaViews

public void setRegisteredPortaViews(PortaViewCollection collection)
Replace the collection of registered PortaViews with a new collection.

Parameters:
collection - the collection of PortaViews to set to.

getAlbums

public AlbumCollection getAlbums()
Returns:
the collection of albums.

setAlbums

public void setAlbums(AlbumCollection collection)
Sets the collection of albums.

Parameters:
collection - collection of albums.


Copyright © 2003 The PortaView Team. All Rights Reserved.