Package org.jgroups.demos
Class ExecutionServiceDemo
- java.lang.Object
-
- org.jgroups.demos.ExecutionServiceDemo
-
public class ExecutionServiceDemo extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classExecutionServiceDemo.ByteBufferStreamablestatic classExecutionServiceDemo.SortingByteCallablestatic classExecutionServiceDemo.SortingTwoByteCallableSorts 2 byte arrys into a larger byte array
-
Field Summary
Fields Modifier and Type Field Description protected JChannelchprotected ExecutionServiceexecution_serviceprotected java.util.concurrent.ExecutorServiceexecutorprotected java.lang.Stringnameprotected booleanprintValuesprotected java.lang.Stringpropsprotected java.util.Queue<java.util.concurrent.Future<?>>queueprotected java.util.Randomrandomprotected ExecutionRunnerrunnerprotected intsize
-
Constructor Summary
Constructors Constructor Description ExecutionServiceDemo(java.lang.String props, java.lang.String name, int size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidhelp()protected voidloop()static voidmain(java.lang.String[] args)voidstart()
-
-
-
Field Detail
-
props
protected java.lang.String props
-
ch
protected JChannel ch
-
execution_service
protected ExecutionService execution_service
-
name
protected java.lang.String name
-
runner
protected ExecutionRunner runner
-
size
protected int size
-
printValues
protected boolean printValues
-
random
protected java.util.Random random
-
executor
protected java.util.concurrent.ExecutorService executor
-
queue
protected java.util.Queue<java.util.concurrent.Future<?>> queue
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
loop
protected void loop() throws java.lang.Exception- Throws:
java.lang.Exception
-
help
protected static void help()
-
-