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

java.lang.Object
  extended by com.sun.enterprise.mgmt.transport.AbstractNetworkManager
      extended by com.sun.enterprise.mgmt.transport.grizzly.GrizzlyNetworkManager
          extended by com.sun.enterprise.mgmt.transport.grizzly.grizzly2.GrizzlyNetworkManager2
All Implemented Interfaces:
MessageSender, MulticastMessageSender, NetworkManager, ShoalMessageSender

public class GrizzlyNetworkManager2
extends GrizzlyNetworkManager

Author:
Bongjae Chang

Field Summary
static String MESSAGE_CONNECTION_TAG
           
 
Fields inherited from class com.sun.enterprise.mgmt.transport.grizzly.GrizzlyNetworkManager
DEFAULT_IPv4_MULTICAST_ADDRESS, DEFAULT_IPv6_MULTICAST_ADDRESS, disableMulticast, failTcpTimeout, groupName, highWaterMark, host, instanceName, LOG, maxParallelSendConnections, multicastAddress, multicastPacketSize, multicastPort, multicastSender, multicastTimeToLive, networkInterfaceName, nomcastLogger, numberToReclaim, peerIDMap, pingMessageLockMap, running, sendWriteTimeoutMillis, startTimeoutMillis, tcpEndPort, tcpPort, tcpSender, tcpStartPort, udpSender, UNKNOWN, vms, writeSelectorPoolSize
 
Fields inherited from class com.sun.enterprise.mgmt.transport.AbstractNetworkManager
localPeerID
 
Fields inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
TCP_TRANSPORT, UDP_TRANSPORT
 
Constructor Summary
GrizzlyNetworkManager2()
           
 
Method Summary
 void addRemotePeer(PeerID peerID, org.glassfish.grizzly.Connection connection)
           
 void beforeDispatchingMessage(MessageEvent messageEvent, Map piggyback)
          Before executing MessageListener.receiveMessageEvent(MessageEvent)} callback, this method will be called
protected  Logger getGrizzlyLogger()
           
 void initialize(String groupName, String instanceName, Map properties)
          Initializes this network manager with given params and properties
 void localConfigure(Map properties)
           
 void removeRemotePeer(String instanceName)
           
 void start()
          Starts this network manager This method will be called after NetworkManager.initialize(String, String, java.util.Map) internally
 void stop()
          Stops this network manager For cleaning up remaining values and finishing I/O operation, this method could be used
 
Methods inherited from class com.sun.enterprise.mgmt.transport.grizzly.GrizzlyNetworkManager
addRemotePeer, addToVMS, afterDispatchingMessage, broadcast, configure, getMessageSender, getMulticastMessageSender, getPeerID, getPeerIDFromURI, getPingMessageLock, getVirtualPeerIDList, isConnected, isLeavingMessage, removeFromVMS, removePeerID, send
 
Methods inherited from class com.sun.enterprise.mgmt.transport.AbstractNetworkManager
addMessageListener, getInstance, getLocalPeerID, getLogger, receiveMessage, removeMessageListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_CONNECTION_TAG

public static final String MESSAGE_CONNECTION_TAG
See Also:
Constant Field Values
Constructor Detail

GrizzlyNetworkManager2

public GrizzlyNetworkManager2()
Method Detail

localConfigure

public void localConfigure(Map properties)

initialize

public void initialize(String groupName,
                       String instanceName,
                       Map properties)
                throws IOException
Description copied from interface: NetworkManager
Initializes this network manager with given params and properties

Specified by:
initialize in interface NetworkManager
Overrides:
initialize in class GrizzlyNetworkManager
Parameters:
groupName - group name
instanceName - instance name
properties - specific properties
Throws:
IOException - if an unexpected error occurs

start

public void start()
           throws IOException
Description copied from class: AbstractNetworkManager
Starts this network manager This method will be called after NetworkManager.initialize(String, String, java.util.Map) internally

Specified by:
start in interface NetworkManager
Specified by:
start in interface ShoalMessageSender
Overrides:
start in class GrizzlyNetworkManager
Throws:
IOException - if an I/O error occurs

stop

public void stop()
          throws IOException
Description copied from class: AbstractNetworkManager
Stops this network manager For cleaning up remaining values and finishing I/O operation, this method could be used

Specified by:
stop in interface NetworkManager
Specified by:
stop in interface ShoalMessageSender
Overrides:
stop in class GrizzlyNetworkManager
Throws:
IOException - if an I/O error occurs

beforeDispatchingMessage

public void beforeDispatchingMessage(MessageEvent messageEvent,
                                     Map piggyback)
Description copied from class: AbstractNetworkManager
Before executing MessageListener.receiveMessageEvent(MessageEvent)} callback, this method will be called

Overrides:
beforeDispatchingMessage in class GrizzlyNetworkManager
Parameters:
messageEvent - a received MessageEvent
piggyback - piggyback

addRemotePeer

public void addRemotePeer(PeerID peerID,
                          org.glassfish.grizzly.Connection connection)

removeRemotePeer

public void removeRemotePeer(String instanceName)
Overrides:
removeRemotePeer in class GrizzlyNetworkManager

getGrizzlyLogger

protected Logger getGrizzlyLogger()
Specified by:
getGrizzlyLogger in class GrizzlyNetworkManager


Copyright © 2012. All Rights Reserved.