|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcaffeinterface.CaffeServer
public class CaffeServer
Provides functionality to run CAFFE classes in client-server mode. This is the server end of things. Uses protocol buffers and the RPC socket implementation by Shardul Deo.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
Uses port 5000. |
| Constructor Summary | |
|---|---|
CaffeServer()
Creates a CaffeServer listening on the default port. |
|
CaffeServer(CaffeToVectorFunction vectorFunction)
Creates a CaffeServer serving the given CaffeToVectorFunction on the default port. |
|
CaffeServer(CaffeToVectorFunction vectorFunction,
int port)
Creates a CaffeServer serving the given CaffeToVectorFunction on the requested port. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
void |
run()
Runs the server! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public CaffeServer()
public CaffeServer(CaffeToVectorFunction vectorFunction)
ScalarFunctions and
VectorFunctions, only the vector-function interface is provided
here.
vectorFunction - the VectorFunction to serve.
public CaffeServer(CaffeToVectorFunction vectorFunction,
int port)
vectorFunction - the given CaffeToVectorFunctionport - the requested port.| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||