public class com.mongodb.management.JMXConnectionPoolListener implements com.mongodb.event.ConnectionPoolListener
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.management.JMXConnectionPoolListener
super_class: java.lang.Object
{
private final java.util.concurrent.ConcurrentMap<com.mongodb.connection.ServerId, com.mongodb.management.ConnectionPoolStatistics> map;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Lcom/mongodb/connection/ServerId;Lcom/mongodb/management/ConnectionPoolStatistics;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.mongodb.management.JMXConnectionPoolListener.map:Ljava/util/concurrent/ConcurrentMap;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
public void connectionPoolOpened(com.mongodb.event.ConnectionPoolOpenedEvent);
descriptor: (Lcom/mongodb/event/ConnectionPoolOpenedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new com.mongodb.management.ConnectionPoolStatistics
dup
aload 1
invokespecial com.mongodb.management.ConnectionPoolStatistics.<init>:(Lcom/mongodb/event/ConnectionPoolOpenedEvent;)V
astore 2
start local 2 1: aload 0
getfield com.mongodb.management.JMXConnectionPoolListener.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokevirtual com.mongodb.event.ConnectionPoolOpenedEvent.getServerId:()Lcom/mongodb/connection/ServerId;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: invokestatic com.mongodb.management.MBeanServerFactory.getMBeanServer:()Lcom/mongodb/management/MBeanServer;
aload 2
aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionPoolOpenedEvent.getServerId:()Lcom/mongodb/connection/ServerId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getMBeanObjectName:(Lcom/mongodb/connection/ServerId;)Ljava/lang/String;
invokeinterface com.mongodb.management.MBeanServer.registerMBean:(Ljava/lang/Object;Ljava/lang/String;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 4 1 event Lcom/mongodb/event/ConnectionPoolOpenedEvent;
1 4 2 statistics Lcom/mongodb/management/ConnectionPoolStatistics;
MethodParameters:
Name Flags
event final
public void connectionPoolClosed(com.mongodb.event.ConnectionPoolClosedEvent);
descriptor: (Lcom/mongodb/event/ConnectionPoolClosedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.management.JMXConnectionPoolListener.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokevirtual com.mongodb.event.ConnectionPoolClosedEvent.getServerId:()Lcom/mongodb/connection/ServerId;
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic com.mongodb.management.MBeanServerFactory.getMBeanServer:()Lcom/mongodb/management/MBeanServer;
aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionPoolClosedEvent.getServerId:()Lcom/mongodb/connection/ServerId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getMBeanObjectName:(Lcom/mongodb/connection/ServerId;)Ljava/lang/String;
invokeinterface com.mongodb.management.MBeanServer.unregisterMBean:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 3 1 event Lcom/mongodb/event/ConnectionPoolClosedEvent;
MethodParameters:
Name Flags
event final
public void connectionCheckedOut(com.mongodb.event.ConnectionCheckedOutEvent);
descriptor: (Lcom/mongodb/event/ConnectionCheckedOutEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionCheckedOutEvent.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ConnectionId;)Lcom/mongodb/management/ConnectionPoolStatistics;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 1
invokevirtual com.mongodb.management.ConnectionPoolStatistics.connectionCheckedOut:(Lcom/mongodb/event/ConnectionCheckedOutEvent;)V
3: StackMap locals: com.mongodb.management.ConnectionPoolStatistics
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 4 1 event Lcom/mongodb/event/ConnectionCheckedOutEvent;
1 4 2 statistics Lcom/mongodb/management/ConnectionPoolStatistics;
MethodParameters:
Name Flags
event final
public void connectionCheckedIn(com.mongodb.event.ConnectionCheckedInEvent);
descriptor: (Lcom/mongodb/event/ConnectionCheckedInEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionCheckedInEvent.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ConnectionId;)Lcom/mongodb/management/ConnectionPoolStatistics;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 1
invokevirtual com.mongodb.management.ConnectionPoolStatistics.connectionCheckedIn:(Lcom/mongodb/event/ConnectionCheckedInEvent;)V
3: StackMap locals: com.mongodb.management.ConnectionPoolStatistics
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 4 1 event Lcom/mongodb/event/ConnectionCheckedInEvent;
1 4 2 statistics Lcom/mongodb/management/ConnectionPoolStatistics;
MethodParameters:
Name Flags
event final
public void waitQueueEntered(com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent);
descriptor: (Lcom/mongodb/event/ConnectionPoolWaitQueueEnteredEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent.getServerId:()Lcom/mongodb/connection/ServerId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ServerId;)Lcom/mongodb/management/ConnectionPoolStatistics;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 1
invokeinterface com.mongodb.event.ConnectionPoolListener.waitQueueEntered:(Lcom/mongodb/event/ConnectionPoolWaitQueueEnteredEvent;)V
3: StackMap locals: com.mongodb.event.ConnectionPoolListener
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 4 1 event Lcom/mongodb/event/ConnectionPoolWaitQueueEnteredEvent;
1 4 2 statistics Lcom/mongodb/event/ConnectionPoolListener;
MethodParameters:
Name Flags
event final
public void waitQueueExited(com.mongodb.event.ConnectionPoolWaitQueueExitedEvent);
descriptor: (Lcom/mongodb/event/ConnectionPoolWaitQueueExitedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionPoolWaitQueueExitedEvent.getServerId:()Lcom/mongodb/connection/ServerId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ServerId;)Lcom/mongodb/management/ConnectionPoolStatistics;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 1
invokeinterface com.mongodb.event.ConnectionPoolListener.waitQueueExited:(Lcom/mongodb/event/ConnectionPoolWaitQueueExitedEvent;)V
3: StackMap locals: com.mongodb.event.ConnectionPoolListener
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 4 1 event Lcom/mongodb/event/ConnectionPoolWaitQueueExitedEvent;
1 4 2 statistics Lcom/mongodb/event/ConnectionPoolListener;
MethodParameters:
Name Flags
event final
public void connectionAdded(com.mongodb.event.ConnectionAddedEvent);
descriptor: (Lcom/mongodb/event/ConnectionAddedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionAddedEvent.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ConnectionId;)Lcom/mongodb/management/ConnectionPoolStatistics;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 1
invokevirtual com.mongodb.management.ConnectionPoolStatistics.connectionAdded:(Lcom/mongodb/event/ConnectionAddedEvent;)V
3: StackMap locals: com.mongodb.management.ConnectionPoolStatistics
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 4 1 event Lcom/mongodb/event/ConnectionAddedEvent;
1 4 2 statistics Lcom/mongodb/management/ConnectionPoolStatistics;
MethodParameters:
Name Flags
event final
public void connectionRemoved(com.mongodb.event.ConnectionRemovedEvent);
descriptor: (Lcom/mongodb/event/ConnectionRemovedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.event.ConnectionRemovedEvent.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ConnectionId;)Lcom/mongodb/management/ConnectionPoolStatistics;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 1
invokevirtual com.mongodb.management.ConnectionPoolStatistics.connectionRemoved:(Lcom/mongodb/event/ConnectionRemovedEvent;)V
3: StackMap locals: com.mongodb.management.ConnectionPoolStatistics
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 4 1 event Lcom/mongodb/event/ConnectionRemovedEvent;
1 4 2 statistics Lcom/mongodb/management/ConnectionPoolStatistics;
MethodParameters:
Name Flags
event final
java.lang.String getMBeanObjectName(com.mongodb.connection.ServerId);
descriptor: (Lcom/mongodb/connection/ServerId;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: ldc "org.mongodb.driver:type=ConnectionPool,clusterId=%s,host=%s,port=%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
1: aload 0
aload 1
invokevirtual com.mongodb.connection.ServerId.getClusterId:()Lcom/mongodb/connection/ClusterId;
invokevirtual com.mongodb.connection.ClusterId.getValue:()Ljava/lang/String;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.ensureValidValue:(Ljava/lang/String;)Ljava/lang/String;
aastore
dup
iconst_1
2: aload 0
aload 1
invokevirtual com.mongodb.connection.ServerId.getAddress:()Lcom/mongodb/ServerAddress;
invokevirtual com.mongodb.ServerAddress.getHost:()Ljava/lang/String;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.ensureValidValue:(Ljava/lang/String;)Ljava/lang/String;
aastore
dup
iconst_2
3: aload 1
invokevirtual com.mongodb.connection.ServerId.getAddress:()Lcom/mongodb/ServerAddress;
invokevirtual com.mongodb.ServerAddress.getPort:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
4: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 5: aload 1
invokevirtual com.mongodb.connection.ServerId.getClusterId:()Lcom/mongodb/connection/ClusterId;
invokevirtual com.mongodb.connection.ClusterId.getDescription:()Ljava/lang/String;
ifnull 7
6: ldc "%s,description=%s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 0
aload 1
invokevirtual com.mongodb.connection.ServerId.getClusterId:()Lcom/mongodb/connection/ClusterId;
invokevirtual com.mongodb.connection.ClusterId.getDescription:()Ljava/lang/String;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.ensureValidValue:(Ljava/lang/String;)Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
7: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 8 1 serverId Lcom/mongodb/connection/ServerId;
5 8 2 name Ljava/lang/String;
MethodParameters:
Name Flags
serverId final
com.mongodb.management.ConnectionPoolStatisticsMBean getMBean(com.mongodb.connection.ServerId);
descriptor: (Lcom/mongodb/connection/ServerId;)Lcom/mongodb/management/ConnectionPoolStatisticsMBean;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ServerId;)Lcom/mongodb/management/ConnectionPoolStatistics;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 1 1 serverId Lcom/mongodb/connection/ServerId;
MethodParameters:
Name Flags
serverId final
private com.mongodb.management.ConnectionPoolStatistics getStatistics(com.mongodb.connection.ConnectionId);
descriptor: (Lcom/mongodb/connection/ConnectionId;)Lcom/mongodb/management/ConnectionPoolStatistics;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.connection.ConnectionId.getServerId:()Lcom/mongodb/connection/ServerId;
invokevirtual com.mongodb.management.JMXConnectionPoolListener.getStatistics:(Lcom/mongodb/connection/ServerId;)Lcom/mongodb/management/ConnectionPoolStatistics;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 1 1 connectionId Lcom/mongodb/connection/ConnectionId;
MethodParameters:
Name Flags
connectionId final
private com.mongodb.management.ConnectionPoolStatistics getStatistics(com.mongodb.connection.ServerId);
descriptor: (Lcom/mongodb/connection/ServerId;)Lcom/mongodb/management/ConnectionPoolStatistics;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.management.JMXConnectionPoolListener.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.management.ConnectionPoolStatistics
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 1 1 serverId Lcom/mongodb/connection/ServerId;
MethodParameters:
Name Flags
serverId final
private java.lang.String ensureValidValue(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.management.JMXConnectionPoolListener.containsQuotableCharacter:(Ljava/lang/String;)Z
ifeq 2
1: aload 1
invokestatic javax.management.ObjectName.quote:(Ljava/lang/String;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 3 1 value Ljava/lang/String;
MethodParameters:
Name Flags
value final
private boolean containsQuotableCharacter(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.length:()I
ifne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
bipush 8
anewarray java.lang.String
dup
iconst_0
ldc ","
aastore
dup
iconst_1
ldc ":"
aastore
dup
iconst_2
ldc "?"
aastore
dup
iconst_3
ldc "*"
aastore
dup
iconst_4
ldc "="
aastore
dup
iconst_5
ldc "\""
aastore
dup
bipush 6
ldc "\\"
aastore
dup
bipush 7
ldc "\n"
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 3: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: com.mongodb.management.JMXConnectionPoolListener java.lang.String java.util.List top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 5: aload 1
aload 3
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 7
6: iconst_1
ireturn
end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/management/JMXConnectionPoolListener;
0 9 1 value Ljava/lang/String;
3 9 2 quoteableCharacters Ljava/util/List<Ljava/lang/String;>;
5 7 3 quotable Ljava/lang/String;
MethodParameters:
Name Flags
value final
}
SourceFile: "JMXConnectionPoolListener.java"