com.sun.enterprise.mgmt.transport.grizzly.grizzly1_9
Class GrizzlyUDPConnectorWrapper
java.lang.Object
com.sun.enterprise.mgmt.transport.AbstractMultiMessageSender
com.sun.enterprise.mgmt.transport.grizzly.grizzly1_9.GrizzlyUDPConnectorWrapper
- All Implemented Interfaces:
- MessageSender, MulticastMessageSender, ShoalMessageSender
public class GrizzlyUDPConnectorWrapper
- extends AbstractMultiMessageSender
- Author:
- Bongjae Chang
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrizzlyUDPConnectorWrapper
public GrizzlyUDPConnectorWrapper(com.sun.grizzly.Controller controller,
long writeTimeout,
String host,
int port,
String multicastAddress,
PeerID<GrizzlyPeerID> localPeerID)
doSend
protected boolean doSend(PeerID peerID,
Message message)
throws IOException
- Description copied from class:
AbstractMultiMessageSender
- Sends the given
Message to the destination
- Specified by:
doSend in class AbstractMultiMessageSender
- Parameters:
peerID - the destination PeerID. null is not allowedmessage - a message which is sent to the peer
- Returns:
- true if the message is sent to the destination successfully, otherwise false
- Throws:
IOException - if I/O error occurs or given parameters are not valid
doBroadcast
protected boolean doBroadcast(Message message)
throws IOException
- Description copied from class:
AbstractMultiMessageSender
- Broadcasts or Multicasts the given
Message to all members
- Specified by:
doBroadcast in class AbstractMultiMessageSender
- Parameters:
message - a message which is sent to all members
- Returns:
- true if the message is sent to all members successfully, otherwise false
- Throws:
IOException - if I/O error occurs or given parameters are not valid
Copyright © 2012. All Rights Reserved.