public class ScannerSendHandler extends MasterSlaveSendHandler
Modifier and Type | Field and Description |
---|---|
protected int |
currentip
The current ip to send probes to.
|
protected int |
sendcount
The send count.
|
agent, sendid, timer
Constructor and Description |
---|
ScannerSendHandler(DiscoveryAgent agent)
Create a new lease time handling object.
|
Modifier and Type | Method and Description |
---|---|
protected ScannerDiscoveryAgent |
getAgent()
Get the agent.
|
void |
send(jadex.bridge.service.types.awareness.AwarenessInfo info)
Method to send messages.
|
boolean |
send(byte[] data,
java.net.InetAddress address,
int port)
Send a packet.
|
int |
sendToDiscover(byte[] data,
int maxsend)
Send/forward to discover.
|
void |
sendToMaster(byte[] data)
Send to local masters.
|
createAwarenessInfo, sendToDiscover, sendToLocals, sendToRemotes, sendToRemotes
getSendId, setSendId, startSendBehavior
protected int currentip
protected int sendcount
public ScannerSendHandler(DiscoveryAgent agent)
public void send(jadex.bridge.service.types.awareness.AwarenessInfo info)
send
in class MasterSlaveSendHandler
public int sendToDiscover(byte[] data, int maxsend)
sendToDiscover
in class MasterSlaveSendHandler
data
- The data to be send.public void sendToMaster(byte[] data)
sendToMaster
in class MasterSlaveSendHandler
data
- The data to be send.public boolean send(byte[] data, java.net.InetAddress address, int port)
send
in class MasterSlaveSendHandler
protected ScannerDiscoveryAgent getAgent()
getAgent
in class MasterSlaveSendHandler