com.sun.enterprise.mgmt.transport.grizzly.grizzly2
Class GrizzlyTCPMessageSender

java.lang.Object
  extended by com.sun.enterprise.mgmt.transport.AbstractMessageSender
      extended by com.sun.enterprise.mgmt.transport.grizzly.grizzly2.GrizzlyTCPMessageSender
All Implemented Interfaces:
MessageSender, ShoalMessageSender

public class GrizzlyTCPMessageSender
extends AbstractMessageSender

Author:
Bongjae Chang

Field Summary
 
Fields inherited from class com.sun.enterprise.mgmt.transport.AbstractMessageSender
localPeerID
 
Fields inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
TCP_TRANSPORT, UDP_TRANSPORT
 
Constructor Summary
GrizzlyTCPMessageSender(org.glassfish.grizzly.nio.transport.TCPNIOTransport tcpNioTransport, ConnectionCache connectionCache, PeerID<GrizzlyPeerID> localPeerID, long writeTimeoutMillis)
           
 
Method Summary
protected  boolean doSend(PeerID peerID, Message message)
          Sends the given Message to the destination
 
Methods inherited from class com.sun.enterprise.mgmt.transport.AbstractMessageSender
send, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyTCPMessageSender

public GrizzlyTCPMessageSender(org.glassfish.grizzly.nio.transport.TCPNIOTransport tcpNioTransport,
                               ConnectionCache connectionCache,
                               PeerID<GrizzlyPeerID> localPeerID,
                               long writeTimeoutMillis)
Method Detail

doSend

protected boolean doSend(PeerID peerID,
                         Message message)
                  throws IOException
Description copied from class: AbstractMessageSender
Sends the given Message to the destination

Specified by:
doSend in class AbstractMessageSender
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


Copyright © 2012. All Rights Reserved.