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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()voidReads fields from the input streamvoidsetHazelcastInstance(HazelcastInstance hazelcastInstance) Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.voidWrites object fields to output stream
-
Constructor Details
-
Echo
public Echo() -
Echo
-
-
Method Details
-
call
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
setHazelcastInstance
Description copied from interface:HazelcastInstanceAwareGets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.- Specified by:
setHazelcastInstancein interfaceHazelcastInstanceAware- Parameters:
hazelcastInstance- the HazelcastInstance reference
-