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