A B C D E F G M N P R S T U

A

addTask(Task) - Method in class system.ComputerProxy
Add a Task to the local task queue.
api - package api
 

B

broadcastMessage(String) - Method in class api.Task
Broadcast a message to other Tasks.
broadcastMessage(String) - Method in interface tasks.ChatServerNetwork
Broadcast a message to all the other chat servers
broadcastMessage(String) - Method in class tasks.ChatServerNetworkSilent
 
broadcastMessage(String) - Method in class tasks.ChatServerNetworkTask
 

C

ChatRouterTask - Class in tasks
The task that starts a router server.
ChatRouterTask() - Constructor for class tasks.ChatRouterTask
 
ChatRouterTask.ServerThread - Class in tasks
 
ChatRouterTask.ServerThread() - Constructor for class tasks.ChatRouterTask.ServerThread
 
ChatServer - Class in tasks
ChatServer provides chat server logic.
ChatServer(ChatServerNetwork) - Constructor for class tasks.ChatServer
 
ChatServerNetwork - Interface in tasks
Interface that defines objects that provide network connectivity to a chat server.
ChatServerNetworkSilent - Class in tasks
This is a ChatServerNetwork that doesn't provide any network connectivity.
ChatServerNetworkSilent() - Constructor for class tasks.ChatServerNetworkSilent
 
ChatServerNetworkTask - Class in tasks
This is a ChatServerNetwork implementation that uses a Task's broadcasting features to communicate with other chat servers.
ChatServerNetworkTask(Task) - Constructor for class tasks.ChatServerNetworkTask
 
client - package client
 
Client2Space - Interface in api
Interface that represents the client's view of the Space.
clientConnection(SocketChannel, String) - Method in interface tasks.ChatServerNetwork
This is called when a client has connected to the chat server.
clientConnection(SocketChannel, String) - Method in class tasks.ChatServerNetworkSilent
 
clientConnection(SocketChannel, String) - Method in class tasks.ChatServerNetworkTask
 
clientDisconnection(SocketChannel) - Method in interface tasks.ChatServerNetwork
This is called when a client has disconnected from the chat server This is used to modifying internal data structures that allow sendToClient[s] to work.
clientDisconnection(SocketChannel) - Method in class tasks.ChatServerNetworkSilent
 
clientDisconnection(SocketChannel) - Method in class tasks.ChatServerNetworkTask
 
Computer - Interface in api
Computer interface.
Computer2Space - Interface in api
Interface that represents the Computer's view of the Space.
ComputerImpl - Class in system
Computer that runs Tasks.
ComputerImpl() - Constructor for class system.ComputerImpl
 
ComputerProxy - Class in system
A thread that handles a Computer when it registers to the Space.
ComputerProxy(Computer, Long, Space, NetworkHandle) - Constructor for class system.ComputerProxy
Constructor.

D

DistributedChatServerTask - Class in tasks
The Task that starts a distributed chat server.
DistributedChatServerTask() - Constructor for class tasks.DistributedChatServerTask
 

E

ERR_NICKNAMEINUSE - Static variable in class tasks.ChatServer
 
ERR_NOLOGIN - Static variable in class tasks.ChatServer
 
ERR_NOSUCHCHANNEL - Static variable in class tasks.ChatServer
 
ERR_NOSUCHNICK - Static variable in class tasks.ChatServer
 
ERR_NOTONCHANNEL - Static variable in class tasks.ChatServer
 
ERR_TOOMANYCHANNELS - Static variable in class tasks.ChatServer
 
ERR_UNKNOWNCOMMAND - Static variable in class tasks.ChatServer
 

F

FFChatSpace - Interface in api
an interface that gives FFChat clients the objects they need to operate
FFCProxy - Class in client
fast flux chat client this is a proxy to to the fast flux chat network.
FFCProxy(String, int) - Constructor for class client.FFCProxy
FFCProxy constructor.
FFServerHandle - Class in system
a handle for describing the location of an FFServer
FFServerHandle(InetSocketAddress, long) - Constructor for class system.FFServerHandle
construct an instance of FFServerHadle

G

getAddr() - Method in class system.FFServerHandle
gets the inet address of the server
getAddr() - Method in interface system.NetworkHandle
gets the inet address of the server
getComputerId() - Method in interface api.Computer
 
getComputerId() - Method in class api.Task
 
getComputerId() - Method in class system.ComputerImpl
 
getDestinationAddress() - Method in class system.messages.NetworkMessage
 
getFFServer() - Method in interface api.FFChatSpace
get a fast flux chat server reference
getFFServer() - Method in class system.Space
 
getId() - Method in class api.Task
Get Task Id
getListenPort() - Method in class api.Task
 
getMessage() - Method in class api.Task
Attempt to read a NetworkMessage from the router.
getMessage(SocketChannel) - Static method in class system.messages.MessageUtil
Read a NetworkChannel from the SocketChannel.
getMessage() - Method in class system.messages.NetworkMessage
 
getNetworkHandle() - Method in class system.ComputerProxy
 
getRouter() - Method in interface api.Computer
 
getRouter() - Method in interface api.Computer2Space
 
getRouter() - Method in class system.ComputerImpl
 
getRouter() - Method in class system.Space
 
getRouterSocketChannel() - Method in class api.Task
Return the SocketChannel to the Router
getSourceAddress() - Method in class system.messages.NetworkMessage
 
getStateAsMessages() - Method in class tasks.ChatServer
Return a list of messages that can be used to recreate the internal state of the chat server.
getUptimeEstimate() - Method in class system.FFServerHandle
gets a rough estimate of the remaining uptime for the server in milliseconds
getUptimeEstimate() - Method in interface system.NetworkHandle
gets a rough estimate of the remaining uptime for the server in milliseconds

M

main(String[]) - Static method in class client.FFCProxy
the main functions.
main(String[]) - Static method in class system.ComputerImpl
 
main(String[]) - Static method in class system.Space
Start up Space and register RMI service.
MessageUtil - Class in system.messages
Some utility functions to help manage network communications between Tasks.
MessageUtil() - Constructor for class system.messages.MessageUtil
 

N

NetworkHandle - Interface in system
an interface that any of the network object handle classes should implement
NetworkMessage - Class in system.messages
This is a NetworkMessage object.
NetworkMessage(Long, Long, String) - Constructor for class system.messages.NetworkMessage
 
NetworkMessage(Long, String) - Constructor for class system.messages.NetworkMessage
 
NetworkUtil - Class in system
Network utility functions.
NetworkUtil() - Constructor for class system.NetworkUtil
 

P

processMessage(SelectionKey, String, boolean) - Method in class tasks.ChatServer
Process a message that was sent by the SelectionKey key.
put(Task) - Method in interface api.Client2Space
Add a Task to the Space.
put(Task) - Method in class system.Space
Called remotely by a client to add a Task.

R

readMessage(SocketChannel) - Static method in class system.NetworkUtil
Network read message.
register(Computer, InetSocketAddress) - Method in interface api.Computer2Space
Register a Computer to the Space.
register(Computer, InetSocketAddress) - Method in class system.Space
Called remotely by a Computer to register itself.
registerSelf(String) - Method in class system.ComputerImpl
Register the Computer to the Space represented by hostName.
removeProxy(ComputerProxy) - Method in class system.Space
 
RPL_ENDOFNAMES - Static variable in class tasks.ChatServer
 
RPL_LIST - Static variable in class tasks.ChatServer
 
RPL_LISTEND - Static variable in class tasks.ChatServer
 
RPL_NAMREPLY - Static variable in class tasks.ChatServer
 
RPL_WELCOME - Static variable in class tasks.ChatServer
 
run(Task) - Method in interface api.Computer
Run a task.
run() - Method in class api.Task
Method to run the task.
run(Task) - Method in class system.ComputerImpl
Run a task.
run() - Method in class system.ComputerProxy
Loop indefinitely getting Tasks and running them.
run() - Method in class tasks.ChatRouterTask
 
run() - Method in class tasks.ChatRouterTask.ServerThread
 
run() - Method in class tasks.DistributedChatServerTask
 

S

sendMessage(SocketChannel, NetworkMessage) - Static method in class system.messages.MessageUtil
Send a NetworkMessage packet onto the given SocketChannel.
sendMessage(SocketChannel, String) - Static method in class system.NetworkUtil
Send message.
sendToClient(String, String) - Method in interface tasks.ChatServerNetwork
Send a message to the connected client that has the given session id.
sendToClient(String, String) - Method in class tasks.ChatServerNetworkSilent
 
sendToClient(String, String) - Method in class tasks.ChatServerNetworkTask
 
sendToClients(String) - Method in interface tasks.ChatServerNetwork
Send a message to all clients connected directly to the chat server
sendToClients(String) - Method in class tasks.ChatServerNetworkSilent
 
sendToClients(String) - Method in class tasks.ChatServerNetworkTask
 
SERVICE_NAME - Static variable in interface api.Client2Space
 
SERVICE_NAME - Static variable in interface api.Computer2Space
 
SERVICE_NAME - Static variable in interface api.FFChatSpace
 
setComputer(Computer) - Method in class api.Task
Set the computer that is running this task.
setId(Long) - Method in class api.Task
Set task id.
setListenPort(Integer) - Method in class api.Task
 
Space - Class in system
Manages the Computer 'cloud' and handles the passing of Task and Result objects between the client and computers.
Space() - Constructor for class system.Space
Constructor.
startRegistry() - Method in class system.Space
Create the registry and setup the bindings for the Client2Space and Computer2Space services.
system - package system
 
system.messages - package system.messages
 

T

takeTask() - Method in class system.Space
Get a task from the task queue.
Task - Class in api
Interface for a Task object.
Task() - Constructor for class api.Task
 
tasks - package tasks
 
toString() - Method in class system.messages.NetworkMessage
 

U

unicastMessage(Long, String) - Method in class api.Task
Send a unicast message to a specific Task.
usage(int) - Static method in class client.FFCProxy
 

A B C D E F G M N P R S T U