|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--candy.server.ServerApp
server application for the system interacts with the javaspace for server-side issues like adding/removing users
| Field Summary | |
Channel |
channel
Channel upon which atomic items are received |
(package private) MembershipEventListener |
membershipListener
|
static java.lang.String |
SERVER
|
(package private) MemberStatusEventListener |
statusListener
|
(package private) WhiteboardEventListener |
whiteboardListener
|
| Constructor Summary | |
ServerApp()
|
|
| Method Summary | |
void |
addUser(java.lang.String ID,
java.lang.String first,
java.lang.String last,
java.lang.String email)
adds a new Member to the system |
void |
addWBMember(candy.core.packet.WBMemberJoinPacket wbmjp)
|
void |
addWBPacket(candy.core.packet.WBPacket wbp)
notified from Listener -- add a WBPrimitivePacket to a WB that is in my wboards table |
void |
addWBPrimitive(candy.core.packet.WBPrimitivePacket wbpp)
|
void |
addWhiteboard(Whiteboard wb)
adds a whiteboard to the list ... |
void |
createChannel()
create the Channel |
void |
createRegistry(java.util.Vector members)
creates the member registry from a Vector of member objects |
Channel |
getChannel()
get the channel |
void |
killServer()
killServer -- attempt a graceful server shutdown |
void |
killWB(candy.core.packet.WBKillPacket wbkp)
|
static void |
main(java.lang.String[] args)
|
candyObject |
read(candyObject tmpl)
reads a packet of the given template from the JavaSpace |
void |
removeUser(java.lang.String ID)
removes a Member from the system |
void |
removeWBMember(candy.core.packet.WBMemberLeavePacket wbmlp)
|
void |
sendOnChannel(candy.core.packet.ChannelPacket p)
|
void |
sendWBPTD(candy.core.packet.WBRequestPTD wbptd)
Locates the WB designated by the WBRequestPTD packet and sends the wb packet list to the requester |
void |
startReceiving()
startReceiving invokes a receiver on a transaction channel |
candyObject |
take(net.jini.core.entry.Entry tmpl)
takes a packet of the given template from the JavaSpace |
candyObject |
takeIfExists(net.jini.core.entry.Entry tmpl)
takes a packet of the given template from the JavaSpace if it Exists |
void |
write(candyObject p)
places Entry into javaspace so as to update other users of some change |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String SERVER
public Channel channel
MembershipEventListener membershipListener
MemberStatusEventListener statusListener
WhiteboardEventListener whiteboardListener
| Constructor Detail |
public ServerApp()
| Method Detail |
public void addWBPacket(candy.core.packet.WBPacket wbp)
public void addWBPrimitive(candy.core.packet.WBPrimitivePacket wbpp)
public void addWBMember(candy.core.packet.WBMemberJoinPacket wbmjp)
public void removeWBMember(candy.core.packet.WBMemberLeavePacket wbmlp)
public void killWB(candy.core.packet.WBKillPacket wbkp)
public void createChannel()
public void createRegistry(java.util.Vector members)
members - a Vector containing Member objects (system users)
public void addUser(java.lang.String ID,
java.lang.String first,
java.lang.String last,
java.lang.String email)
ID - the screen name of the new Membername - the given name of the new Memberemail - the email address of the new Memberpublic void addWhiteboard(Whiteboard wb)
public void killServer()
public void removeUser(java.lang.String ID)
ID - the screen name of the member to be removedpublic Channel getChannel()
public candyObject read(candyObject tmpl)
tmpl - The template packetpublic void sendOnChannel(candy.core.packet.ChannelPacket p)
public void sendWBPTD(candy.core.packet.WBRequestPTD wbptd)
public void startReceiving()
public candyObject take(net.jini.core.entry.Entry tmpl)
tmpl - The template packetpublic candyObject takeIfExists(net.jini.core.entry.Entry tmpl)
tmpl - The template packetpublic void write(candyObject p)
p - candyObjectpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||