|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.sgs.example.request.server.RequestApp
public class RequestApp
Defines an AppListener that responds to channel and name binding
requests from the client.
Clients can request to join, leave, or send messages on channels, which are identified by name. Clients can also set or get string values associated with name bindings. Getting a name binding results in the value being sent back to the client in a separate message. Multiple arguments in a request should be separated by spaces. Clients can make multiple requests that will be processed within a single task by including the requests in a single message, separated by newlines.
Here are the supported requests:
This class supports the following properties:
com.sun.sgs.example.request.server.report - The number of
seconds between logging performance data, defaults to 20
Logger named com.sun.sgs.example.request.server.RequestApp to log at the following
levels:
Level.INFO - Performance data
Level.CONFIG - Initialize the application
Level.FINE - Login, disconnect, or failure during
processing received message
Level.FINER - Receive a message
Level.FINEST - Join, leave, or send a message on a
channel, send a message to a session
| Constructor Summary | |
|---|---|
RequestApp()
Creates an instance of this class. |
|
| Method Summary | |
|---|---|
void |
initialize(Properties props)
|
com.sun.sgs.app.ClientSessionListener |
loggedIn(com.sun.sgs.app.ClientSession session)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestApp()
| Method Detail |
|---|
public void initialize(Properties props)
initialize in interface com.sun.sgs.app.AppListenerpublic com.sun.sgs.app.ClientSessionListener loggedIn(com.sun.sgs.app.ClientSession session)
loggedIn in interface com.sun.sgs.app.AppListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||