com.hazelcast.console
Class Echo

java.lang.Object
  extended by 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
Echo(String input)
           
 
Method Summary
 String call()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Echo

public Echo(String input)
Method Detail

call

public String call()
Specified by:
call in interface Callable<String>

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

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 interface HazelcastInstanceAware
Parameters:
hazelcastInstance - the HazelcastInstance reference


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.