org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activemq-core Show documentation
Show all versions of activemq-core Show documentation
The ActiveMQ Message Broker and Client implementations
???? 1r ?a ?b ?c ?d ?e ?f ?g
?h ? u0 ?ij
h ?kl ?m ? ?no
p ?q ?r ?s ?t
u
?v ?w ?x ?y ?z
{
g|}~
&
???
g??
,h?
,??
,?????
3???
,???
3?
3?
g? ????
,????
?? ???
F? ???
I? ??
I?
??
I?
I?
I?
I?
??
I??
T? ??
???
T?
T?
T?
T?
I?
T?
??????
b?
??
I?
b??
b?
b?
g?
??????
g?
g??
??
???
??
?? ??
???
g?
b?
I?????
&??
I????
????
??
??
????
??
??
????????
?? ???
g?
g?
g?
??
???
? ??
???
?????
???? ??
?h
?
?
?
RemoteBrokerData InnerClasses DEFAULT_DISCOVERY_URI_STRING Ljava/lang/String;
ConstantValue DEFAULT_HOST_STR DEFAULT_HOST_IP DEFAULT_PORT I LOG Lorg/apache/commons/logging/Log; TYPE_SUFFIX ALIVE DEAD DELIMITER BUFF_SIZE DEFAULT_IDLE_TIME ? HEARTBEAT_MISS_BEFORE_DEATH
initialReconnectDelay J maxReconnectDelay backOffMultiplier useExponentialBackOff Z maxReconnectAttempts
timeToLive loopBackMode brokersByService Ljava/util/Map; Signature Ljava/util/Map; group discoveryURI Ljava/net/URI; inetAddress Ljava/net/InetAddress; sockAddress Ljava/net/SocketAddress; discoveryListener ;Lorg/apache/activemq/transport/discovery/DiscoveryListener; selfService mcast Ljava/net/MulticastSocket; runner Ljava/lang/Thread; keepAliveInterval mcInterface mcNetworkInterface lastAdvertizeTime started +Ljava/util/concurrent/atomic/AtomicBoolean; reportAdvertizeFailed executor &Ljava/util/concurrent/ExecutorService; ()V Code LineNumberTable LocalVariableTable this KLorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent; setDiscoveryListener >(Lorg/apache/activemq/transport/discovery/DiscoveryListener;)V listener registerService (Ljava/lang/String;)V name
Exceptions isLoopBackMode ()Z setLoopBackMode (Z)V
getTimeToLive ()I
setTimeToLive (I)V getDiscoveryURI ()Ljava/net/URI; setDiscoveryURI (Ljava/net/URI;)V getKeepAliveInterval ()J setKeepAliveInterval (J)V setInterface setNetworkInterface start type myHost myPort stop getType ()Ljava/lang/String; run str se !Ljava/net/SocketTimeoutException; e Ljava/io/IOException; buf [B packet Ljava/net/DatagramPacket; processData
brokerName service payload doTimeKeepingServices currentTime doAdvertizeSelf data processAlive '(Ljava/lang/String;Ljava/lang/String;)V \Lorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent$RemoteBrokerData; processDead doExpireOldServices i Ljava/util/Iterator;
expireTime LocalVariableTypeTable rLjava/util/Iterator;
getBrokerName &(Ljava/lang/String;)Ljava/lang/String; end result
serviceFailed /(Lorg/apache/activemq/command/DiscoveryEvent;)V event ,Lorg/apache/activemq/command/DiscoveryEvent; fireServiceRemovedEvent _(Lorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent$RemoteBrokerData;)V fireServiceAddEvent getExecutor (()Ljava/util/concurrent/ExecutorService;
threadName getBackOffMultiplier setBackOffMultiplier getInitialReconnectDelay setInitialReconnectDelay getMaxReconnectAttempts setMaxReconnectAttempts getMaxReconnectDelay setMaxReconnectDelay isUseExponentialBackOff setUseExponentialBackOff setGroup toString
access$000 "()Lorg/apache/commons/logging/Log;
access$100 N(Lorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent;)Z x0
access$200 N(Lorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent;)J
access$300
access$400
access$500 N(Lorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent;)I
access$600 ?(Lorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent;)Lorg/apache/activemq/transport/discovery/DiscoveryListener;
SourceFile MulticastDiscoveryAgent.java ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? &java/util/concurrent/ConcurrentHashMap ? ? default ? ? ? ? )java/util/concurrent/atomic/AtomicBoolean ? ? ? ? ? ? ? ? ?+ ? ? ? ? ? ? ? ? ? java/io/IOException $You must specify a group to discover ? ? . java/lang/StringBuilder
The type ' 2' should end with '.' to be a valid Discovery typeP java/net/URI multicast://239.255.2.3:6155 start - discoveryURI = !" ? ? start - myHost = start - myPort = # start - group = start - interface = start - network interface = $%& ? ? java/net/InetSocketAddress ?' ? ? java/net/MulticastSocket ? ? ?()*+*,%-. java/lang/Thread ?/ ? ? :01 ?2 ?3 ?4 ?BC567 ActiveMQ-4. java/net/DatagramPacket ?8) ?9:; java/lang/String<=>% ? java/net/SocketTimeoutException failed to process packet: ?@AB alive.78-. dead.0 ?CD ? ?1 ? %localhost%E= ?FG: !Failed to advertise our service: ?H Operation not permittedI ?The 'Operation not permitted' error has been know to be caused by improper firewall/network setup. Please make sure that the OS is properly configured to allow multicast traffic over: JKLM Zorg/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent$RemoteBrokerData ?NOPA@Q ?RSMT?@UVWXYZ[\]^' ? %_`_aAbcd *org/apache/activemq/command/DiscoveryEvent&