Class GrizzlyNetworkManager2
- java.lang.Object
-
- com.sun.enterprise.mgmt.transport.AbstractNetworkManager
-
- com.sun.enterprise.mgmt.transport.grizzly.GrizzlyNetworkManager
-
- 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
Fields Modifier and Type Field Description static java.lang.StringMESSAGE_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
Constructors Constructor Description GrizzlyNetworkManager2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRemotePeer(PeerID peerID, org.glassfish.grizzly.Connection connection)voidbeforeDispatchingMessage(MessageEvent messageEvent, java.util.Map piggyback)Before executingMessageListener.receiveMessageEvent(MessageEvent)} callback, this method will be calledprotected java.util.logging.LoggergetGrizzlyLogger()voidinitialize(java.lang.String groupName, java.lang.String instanceName, java.util.Map properties)Initializes this network manager with given params and propertiesvoidlocalConfigure(java.util.Map properties)voidremoveRemotePeer(java.lang.String instanceName)voidstart()Starts this network manager This method will be called afterNetworkManager.initialize(String, String, java.util.Map)internallyvoidstop()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
-
-
-
-
Field Detail
-
MESSAGE_CONNECTION_TAG
public static final java.lang.String MESSAGE_CONNECTION_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
localConfigure
public void localConfigure(java.util.Map properties)
-
initialize
public void initialize(java.lang.String groupName, java.lang.String instanceName, java.util.Map properties) throws java.io.IOExceptionDescription copied from interface:NetworkManagerInitializes this network manager with given params and properties- Specified by:
initializein interfaceNetworkManager- Overrides:
initializein classGrizzlyNetworkManager- Parameters:
groupName- group nameinstanceName- instance nameproperties- specific properties- Throws:
java.io.IOException- if an unexpected error occurs
-
start
public void start() throws java.io.IOExceptionDescription copied from class:AbstractNetworkManagerStarts this network manager This method will be called afterNetworkManager.initialize(String, String, java.util.Map)internally- Specified by:
startin interfaceNetworkManager- Specified by:
startin interfaceShoalMessageSender- Overrides:
startin classGrizzlyNetworkManager- Throws:
java.io.IOException- if an I/O error occurs
-
stop
public void stop() throws java.io.IOExceptionDescription copied from class:AbstractNetworkManagerStops this network manager For cleaning up remaining values and finishing I/O operation, this method could be used- Specified by:
stopin interfaceNetworkManager- Specified by:
stopin interfaceShoalMessageSender- Overrides:
stopin classGrizzlyNetworkManager- Throws:
java.io.IOException- if an I/O error occurs
-
beforeDispatchingMessage
public void beforeDispatchingMessage(MessageEvent messageEvent, java.util.Map piggyback)
Description copied from class:AbstractNetworkManagerBefore executingMessageListener.receiveMessageEvent(MessageEvent)} callback, this method will be called- Overrides:
beforeDispatchingMessagein classGrizzlyNetworkManager- Parameters:
messageEvent- a receivedMessageEventpiggyback- piggyback
-
addRemotePeer
public void addRemotePeer(PeerID peerID, org.glassfish.grizzly.Connection connection)
-
removeRemotePeer
public void removeRemotePeer(java.lang.String instanceName)
- Overrides:
removeRemotePeerin classGrizzlyNetworkManager
-
getGrizzlyLogger
protected java.util.logging.Logger getGrizzlyLogger()
- Specified by:
getGrizzlyLoggerin classGrizzlyNetworkManager
-
-