|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.cmu.aura.service.rpc.SkelServer
SkelServer is used on the RPC receive side to dispatch incoming calls to their correct skeleton. SkelServer will run an HTTP server on a specified port to listen for incoming calls, and dispatch them in their own thread.
| Constructor Summary | |
SkelServer(int port)
Create a new SkelServer listening on the specified port. |
|
| Method Summary | |
void |
addSkel(java.lang.String methodName,
Skel skel)
Associate a skeleton with a specific method. |
int |
getPort()
Return the port this skeleton is accepting calls on. |
RemoteReference |
getSkelRef()
Return a reference to this skeleton. |
edu.cmu.aura.service.net.http.Response |
handleRequest(edu.cmu.aura.service.net.http.Request request)
Handle an incoming HTTP Request. |
void |
removeSkel(java.lang.String methodName)
Disassociate a skeleton with a previously associated method. |
void |
start()
Start listening for incoming calls. |
void |
stop()
Stop listening for incoming calls. |
boolean |
supportsConcurrency()
HTTPRequestHandler method that lets the HTTPServer know that this is a threaded server. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SkelServer(int port)
throws java.io.IOException
port - port to listen for incoming calls on.| Method Detail |
public RemoteReference getSkelRef()
getSkelRef in interface RemotelyReferablepublic int getPort()
public void start()
public void stop()
public boolean supportsConcurrency()
supportsConcurrency in interface edu.cmu.aura.service.net.http.HTTPRequestHandleredu.cmu.aura.service.net.http.HTTPRequestHandler
public void addSkel(java.lang.String methodName,
Skel skel)
methodName - method to associate.skel - skeleton to associate.public void removeSkel(java.lang.String methodName)
methodName - method to disassociate.public edu.cmu.aura.service.net.http.Response handleRequest(edu.cmu.aura.service.net.http.Request request)
handleRequest in interface edu.cmu.aura.service.net.http.HTTPRequestHandlerRequest - incoming HTTP Request.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||