|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object portaview.server.PortaViewCommands
Commands for the XML-RPC server. Note that the signatures of class must be compliant to the XML-RPC conversion table.
Constructor Summary | |
PortaViewCommands(PortaViewServer server)
|
Method Summary | |
java.lang.Object |
execute(java.lang.String method,
java.util.Vector params)
Implements the method to dispatch the methods. |
java.util.Vector |
getAlbums()
Returns a Vector of Hashtables that contains the album name and photo names The hastable contains the "name", "icon", and "photos" key. |
byte[] |
getPhoto(java.lang.String show,
int seq)
Given a show and a sequence number return the photo struct. |
byte[] |
getPhotoWithName(java.lang.String album,
java.lang.String name)
Given a show and a sequence number return the photo struct. |
java.lang.Object |
getStatus()
RPC call for getting the status. |
boolean |
register(java.lang.String portaViewName,
java.lang.String myIP)
Only would be called if this PortaView is a master. |
java.util.Hashtable |
registerMaster(java.lang.String masterName,
java.lang.String masterIP)
Registers this PortaView with the master given the master's ip address. |
boolean |
unregister(java.lang.String portaViewName)
Unregister the portaview from the master's list. |
boolean |
update(java.util.Hashtable slide)
Update this portaview main displayer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortaViewCommands(PortaViewServer server)
Method Detail |
public byte[] getPhoto(java.lang.String show, int seq)
show
- show nameseq
- sequence number
public byte[] getPhotoWithName(java.lang.String album, java.lang.String name)
public boolean update(java.util.Hashtable slide)
slide
- the hashtable contains the following key. Here is an
example:
struct.put(ViewerConsts.TOTAL, new Integer(3)); // total number of slides struct.put(ViewerConsts.SPEED, new Integer(5)); // speed 0 = stop, >0 = second for the next slide. struct.put(ViewerConsts.BORDER_RED, new Integer(0)); // border red struct.put(ViewerConsts.BORDER_GREEN, new Integer(255)); // border green struct.put(ViewerConsts.BORDER_BLUE, new Integer(0)); // border blue struct.put(ViewerConsts.BORDER, new Integer(2)); // border thickness
public java.lang.Object getStatus()
public java.util.Vector getAlbums()
public java.util.Hashtable registerMaster(java.lang.String masterName, java.lang.String masterIP) throws java.lang.Exception
masterName
- the Master server's namemasterIP
- the Master server's IP
java.lang.Exception
public boolean register(java.lang.String portaViewName, java.lang.String myIP)
portaViewName
- the PortaView's name.myIP
- the IP address for the PortaView.
public boolean unregister(java.lang.String portaViewName)
portaViewName
- name of the PortaView.
public java.lang.Object execute(java.lang.String method, java.util.Vector params) throws java.lang.Exception
execute
in interface org.apache.xmlrpc.XmlRpcHandler
java.lang.Exception
XmlRpcHandler.execute(java.lang.String, java.util.Vector)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |