Package com.hazelcast.console
Class Echo
java.lang.Object
com.hazelcast.console.Echo
- All Implemented Interfaces:
HazelcastInstanceAware
,DataSerializable
,Callable<String>
public class Echo
extends Object
implements Callable<String>, DataSerializable, HazelcastInstanceAware
Echoes to screen.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncall()
void
Reads fields from the input streamvoid
setHazelcastInstance
(HazelcastInstance hazelcastInstance) Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.void
Writes object fields to output stream
-
Constructor Details
-
Echo
public Echo() -
Echo
-
-
Method Details
-
call
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
setHazelcastInstance
Description copied from interface:HazelcastInstanceAware
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.- Specified by:
setHazelcastInstance
in interfaceHazelcastInstanceAware
- Parameters:
hazelcastInstance
- the HazelcastInstance reference
-