public class GBDistSP<C extends RingElem<C>> extends java.lang.Object
RunGB,
TODO: to deprecate| Modifier and Type | Field and Description |
|---|---|
protected int |
port
Server port to use.
|
protected int |
threads
Number of threads to use.
|
| Constructor and Description |
|---|
GBDistSP(int threads,
java.lang.String mfile,
int port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<GenPolynomial<C>> |
execute(java.util.List<GenPolynomial<C>> F)
Execute a distributed GB example.
|
void |
terminate(boolean shutDown)
Terminates the distributed thread pools.
|
protected final int threads
protected final int port
public GBDistSP(int threads, java.lang.String mfile, int port)
threads - number of threads respectivly processes.mfile - name of the machine file.port - for GB server.public java.util.List<GenPolynomial<C>> execute(java.util.List<GenPolynomial<C>> F)
F - list of polynomialspublic void terminate(boolean shutDown)
shutDown - true, if shut-down of the remote executable servers is
requested, false, if remote executable servers stay alive.