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

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

public class GrizzlyTCPConnectorWrapper
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
GrizzlyTCPConnectorWrapper(com.sun.grizzly.Controller controller, long writeTimeout, String host, int port, PeerID<GrizzlyPeerID> localPeerID)
           
 
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

GrizzlyTCPConnectorWrapper

public GrizzlyTCPConnectorWrapper(com.sun.grizzly.Controller controller,
                                  long writeTimeout,
                                  String host,
                                  int port,
                                  PeerID<GrizzlyPeerID> localPeerID)
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.