com.sun.enterprise.mgmt.transport.grizzly.grizzly1_9
Class GrizzlyUDPConnectorWrapper

java.lang.Object
  extended by com.sun.enterprise.mgmt.transport.AbstractMultiMessageSender
      extended by com.sun.enterprise.mgmt.transport.grizzly.grizzly1_9.GrizzlyUDPConnectorWrapper
All Implemented Interfaces:
MessageSender, MulticastMessageSender, ShoalMessageSender

public class GrizzlyUDPConnectorWrapper
extends AbstractMultiMessageSender

Author:
Bongjae Chang

Field Summary
 
Fields inherited from class com.sun.enterprise.mgmt.transport.AbstractMultiMessageSender
localPeerID
 
Fields inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
TCP_TRANSPORT, UDP_TRANSPORT
 
Constructor Summary
GrizzlyUDPConnectorWrapper(com.sun.grizzly.Controller controller, long writeTimeout, String host, int port, String multicastAddress, PeerID<GrizzlyPeerID> localPeerID)
           
 
Method Summary
protected  boolean doBroadcast(Message message)
          Broadcasts or Multicasts the given Message to all members
protected  boolean doSend(PeerID peerID, Message message)
          Sends the given Message to the destination
 
Methods inherited from class com.sun.enterprise.mgmt.transport.AbstractMultiMessageSender
broadcast, send, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyUDPConnectorWrapper

public GrizzlyUDPConnectorWrapper(com.sun.grizzly.Controller controller,
                                  long writeTimeout,
                                  String host,
                                  int port,
                                  String multicastAddress,
                                  PeerID<GrizzlyPeerID> localPeerID)
Method Detail

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 allowed
message - 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.