Class CacheDataStreamerExample
- java.lang.Object
-
- org.apache.ignite.examples.datagrid.CacheDataStreamerExample
-
public class CacheDataStreamerExample extends java.lang.ObjectDemonstrates how cache can be populated with data utilizingIgniteDataStreamerAPI.IgniteDataStreameris a lot more efficient to use than standardput(...)operation as it properly buffers cache requests together and properly manages load on remote nodes.Remote nodes should always be started with special configuration file which enables P2P class loading:
'ignite.{sh|bat} examples/config/example-ignite.xml'.Alternatively you can run
ExampleNodeStartupin another JVM which will start node withexamples/config/example-ignite.xmlconfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description static intMIN_MEMORYHeap size required to run this example.
-
Constructor Summary
Constructors Constructor Description CacheDataStreamerExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Executes example.
-
-
-
Field Detail
-
MIN_MEMORY
public static final int MIN_MEMORY
Heap size required to run this example.- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws IgniteExceptionExecutes example.- Parameters:
args- Command line arguments, none required.- Throws:
IgniteException- If example execution failed.
-
-