public class org.apache.cassandra.auth.JMXResource implements org.apache.cassandra.auth.IResource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.auth.JMXResource
super_class: java.lang.Object
{
private static final java.lang.String ROOT_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "mbean"
private static final org.apache.cassandra.auth.JMXResource ROOT_RESOURCE;
descriptor: Lorg/apache/cassandra/auth/JMXResource;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final org.apache.cassandra.auth.JMXResource$Level level;
descriptor: Lorg/apache/cassandra/auth/JMXResource$Level;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.Set<org.apache.cassandra.auth.Permission> JMX_PERMISSIONS;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: new org.apache.cassandra.auth.JMXResource
dup
invokespecial org.apache.cassandra.auth.JMXResource.<init>:()V
putstatic org.apache.cassandra.auth.JMXResource.ROOT_RESOURCE:Lorg/apache/cassandra/auth/JMXResource;
1: getstatic org.apache.cassandra.auth.Permission.AUTHORIZE:Lorg/apache/cassandra/auth/Permission;
iconst_4
anewarray org.apache.cassandra.auth.Permission
dup
iconst_0
2: getstatic org.apache.cassandra.auth.Permission.DESCRIBE:Lorg/apache/cassandra/auth/Permission;
aastore
dup
iconst_1
3: getstatic org.apache.cassandra.auth.Permission.EXECUTE:Lorg/apache/cassandra/auth/Permission;
aastore
dup
iconst_2
4: getstatic org.apache.cassandra.auth.Permission.MODIFY:Lorg/apache/cassandra/auth/Permission;
aastore
dup
iconst_3
5: getstatic org.apache.cassandra.auth.Permission.SELECT:Lorg/apache/cassandra/auth/Permission;
aastore
6: invokestatic com.google.common.collect.Sets.immutableEnumSet:(Ljava/lang/Enum;[Ljava/lang/Enum;)Lcom/google/common/collect/ImmutableSet;
putstatic org.apache.cassandra.auth.JMXResource.JMX_PERMISSIONS:Ljava/util/Set;
7: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.apache.cassandra.auth.JMXResource$Level.ROOT:Lorg/apache/cassandra/auth/JMXResource$Level;
putfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
2: aload 0
aconst_null
putfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/auth/JMXResource;
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
2: aload 0
getstatic org.apache.cassandra.auth.JMXResource$Level.MBEAN:Lorg/apache/cassandra/auth/JMXResource$Level;
putfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/auth/JMXResource;
0 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static org.apache.cassandra.auth.JMXResource mbean(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/auth/JMXResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.auth.JMXResource
dup
aload 0
invokespecial org.apache.cassandra.auth.JMXResource.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static org.apache.cassandra.auth.JMXResource fromName(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/auth/JMXResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
bipush 47
invokestatic org.apache.commons.lang3.StringUtils.split:(Ljava/lang/String;C)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
iconst_0
aaload
ldc "mbean"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
aload 1
arraylength
iconst_2
if_icmple 3
2: StackMap locals: java.lang.String[]
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "%s is not a valid JMX resource name"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
arraylength
iconst_1
if_icmpne 5
4: invokestatic org.apache.cassandra.auth.JMXResource.root:()Lorg/apache/cassandra/auth/JMXResource;
areturn
5: StackMap locals:
StackMap stack:
aload 1
iconst_1
aaload
invokestatic org.apache.cassandra.auth.JMXResource.mbean:(Ljava/lang/String;)Lorg/apache/cassandra/auth/JMXResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 name Ljava/lang/String;
1 6 1 parts [Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
getstatic org.apache.cassandra.auth.JMXResource$Level.ROOT:Lorg/apache/cassandra/auth/JMXResource$Level;
if_acmpne 2
1: ldc "mbean"
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
getstatic org.apache.cassandra.auth.JMXResource$Level.MBEAN:Lorg/apache/cassandra/auth/JMXResource$Level;
if_acmpne 4
3: ldc "%s/%s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "mbean"
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/auth/JMXResource;
public java.lang.String getObjectName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
getstatic org.apache.cassandra.auth.JMXResource$Level.ROOT:Lorg/apache/cassandra/auth/JMXResource$Level;
if_acmpne 2
1: new java.lang.IllegalStateException
dup
ldc "%s JMX resource has no object name"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/auth/JMXResource;
public static org.apache.cassandra.auth.JMXResource root();
descriptor: ()Lorg/apache/cassandra/auth/JMXResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.cassandra.auth.JMXResource.ROOT_RESOURCE:Lorg/apache/cassandra/auth/JMXResource;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.apache.cassandra.auth.IResource getParent();
descriptor: ()Lorg/apache/cassandra/auth/IResource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
getstatic org.apache.cassandra.auth.JMXResource$Level.MBEAN:Lorg/apache/cassandra/auth/JMXResource$Level;
if_acmpne 2
1: invokestatic org.apache.cassandra.auth.JMXResource.root:()Lorg/apache/cassandra/auth/JMXResource;
areturn
2: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Root-level resource can't have a parent"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/auth/JMXResource;
public boolean hasParent();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
getstatic org.apache.cassandra.auth.JMXResource$Level.ROOT:Lorg/apache/cassandra/auth/JMXResource$Level;
invokevirtual org.apache.cassandra.auth.JMXResource$Level.equals:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/auth/JMXResource;
public boolean exists();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.auth.JMXResource.hasParent:()Z
ifne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
invokestatic java.lang.management.ManagementFactory.getPlatformMBeanServer:()Ljavax/management/MBeanServer;
astore 1
start local 1 3: aload 1
new javax.management.ObjectName
dup
aload 0
getfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;)V
aconst_null
invokeinterface javax.management.MBeanServer.queryNames:(Ljavax/management/ObjectName;Ljavax/management/QueryExp;)Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 4
iconst_0
goto 5
StackMap locals: javax.management.MBeanServer
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: ireturn
6: StackMap locals:
StackMap stack: javax.management.MalformedObjectNameException
pop
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack: java.lang.NullPointerException
pop
9: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/auth/JMXResource;
3 10 1 mbs Ljavax/management/MBeanServer;
Exception table:
from to target type
3 5 6 Class javax.management.MalformedObjectNameException
3 5 8 Class java.lang.NullPointerException
public java.util.Set<org.apache.cassandra.auth.Permission> applicablePermissions();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.auth.JMXResource.JMX_PERMISSIONS:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/JMXResource;
Signature: ()Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
getstatic org.apache.cassandra.auth.JMXResource$Level.ROOT:Lorg/apache/cassandra/auth/JMXResource$Level;
if_acmpne 1
ldc "<all mbeans>"
goto 2
StackMap locals:
StackMap stack:
1: ldc "<mbean %s>"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/auth/JMXResource;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.apache.cassandra.auth.JMXResource
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.auth.JMXResource
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
aload 2
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
aload 0
getfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
aload 2
getfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
iconst_1
ireturn
StackMap locals: org.apache.cassandra.auth.JMXResource
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/auth/JMXResource;
0 7 1 o Ljava/lang/Object;
5 7 2 j Lorg/apache/cassandra/auth/JMXResource;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.auth.JMXResource.level:Lorg/apache/cassandra/auth/JMXResource$Level;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.auth.JMXResource.name:Ljava/lang/String;
aastore
invokestatic com.google.common.base.Objects.hashCode:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/JMXResource;
}
SourceFile: "JMXResource.java"
NestMembers:
org.apache.cassandra.auth.JMXResource$Level
InnerClasses:
final Level = org.apache.cassandra.auth.JMXResource$Level of org.apache.cassandra.auth.JMXResource