org.inria.myriads.snoozenode.comunicator.api.impl
public class MemoryCommunicator extends Object implements Communicator
Constructor and Description |
---|
MemoryCommunicator(org.inria.myriads.snoozecommon.communication.NetworkAddress groupLeaderAddress)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the communicator.
|
void |
sendHeartbeatData(Object data)
Sends Heartbeat Data.
|
void |
sendRegularData(Object data)
Sends Regular data.
|
public MemoryCommunicator(org.inria.myriads.snoozecommon.communication.NetworkAddress groupLeaderAddress) throws IOException
groupLeaderAddress
- The group Leader address.IOException
- Exception.public void sendRegularData(Object data) throws IOException
Communicator
sendRegularData
in interface Communicator
data
- The data to send.IOException
- Exceptionpublic void sendHeartbeatData(Object data) throws IOException
Communicator
sendHeartbeatData
in interface Communicator
data
- The data to send as heartbeat.IOException
- Exception.public void close()
Communicator
close
in interface Communicator
Copyright © 2013. All Rights Reserved.