public class sun.tools.jstatd.RemoteHostImpl implements sun.jvmstat.monitor.remote.RemoteHost, sun.jvmstat.monitor.event.HostListener
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jstatd.RemoteHostImpl
super_class: java.lang.Object
{
private sun.jvmstat.monitor.MonitoredHost monitoredHost;
descriptor: Lsun/jvmstat/monitor/MonitoredHost;
flags: (0x0002) ACC_PRIVATE
private java.util.Set<java.lang.Integer> activeVms;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/lang/Integer;>;
private static sun.jvmstat.monitor.remote.RemoteVm rvm;
descriptor: Lsun/jvmstat/monitor/remote/RemoteVm;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final int rmiPort;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokespecial sun.tools.jstatd.RemoteHostImpl.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/jstatd/RemoteHostImpl;
Exceptions:
throws sun.jvmstat.monitor.MonitorException
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
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
iload 1
putfield sun.tools.jstatd.RemoteHostImpl.rmiPort:I
2: aload 0
ldc "localhost"
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Ljava/lang/String;)Lsun/jvmstat/monitor/MonitoredHost;
putfield sun.tools.jstatd.RemoteHostImpl.monitoredHost:Lsun/jvmstat/monitor/MonitoredHost;
3: goto 5
StackMap locals: sun.tools.jstatd.RemoteHostImpl int
StackMap stack: java.net.URISyntaxException
4: pop
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.tools.jstatd.RemoteHostImpl.monitoredHost:Lsun/jvmstat/monitor/MonitoredHost;
invokevirtual sun.jvmstat.monitor.MonitoredHost.activeVms:()Ljava/util/Set;
putfield sun.tools.jstatd.RemoteHostImpl.activeVms:Ljava/util/Set;
6: aload 0
getfield sun.tools.jstatd.RemoteHostImpl.monitoredHost:Lsun/jvmstat/monitor/MonitoredHost;
aload 0
invokevirtual sun.jvmstat.monitor.MonitoredHost.addHostListener:(Lsun/jvmstat/monitor/event/HostListener;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/tools/jstatd/RemoteHostImpl;
0 8 1 rmiPort I
Exception table:
from to target type
2 3 4 Class java.net.URISyntaxException
Exceptions:
throws sun.jvmstat.monitor.MonitorException
MethodParameters:
Name Flags
rmiPort
public sun.jvmstat.monitor.remote.RemoteVm attachVm(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lsun/jvmstat/monitor/remote/RemoteVm;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 2: aload 4
ldc "local://"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "@localhost"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 2
ifnull 5
4: aload 4
ldc "?mode="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals: sun.jvmstat.monitor.remote.RemoteVm java.lang.StringBuilder
StackMap stack:
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 6: new sun.jvmstat.monitor.VmIdentifier
dup
aload 5
invokespecial sun.jvmstat.monitor.VmIdentifier.<init>:(Ljava/lang/String;)V
astore 6
start local 6 7: aload 0
getfield sun.tools.jstatd.RemoteHostImpl.monitoredHost:Lsun/jvmstat/monitor/MonitoredHost;
aload 6
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredVm;
astore 7
start local 7 8: new sun.tools.jstatd.RemoteVmImpl
dup
aload 7
checkcast sun.jvmstat.monitor.BufferedMonitoredVm
invokespecial sun.tools.jstatd.RemoteVmImpl.<init>:(Lsun/jvmstat/monitor/BufferedMonitoredVm;)V
putstatic sun.tools.jstatd.RemoteHostImpl.rvm:Lsun/jvmstat/monitor/remote/RemoteVm;
9: getstatic sun.tools.jstatd.RemoteHostImpl.rvm:Lsun/jvmstat/monitor/remote/RemoteVm;
aload 0
getfield sun.tools.jstatd.RemoteHostImpl.rmiPort:I
invokestatic java.rmi.server.UnicastRemoteObject.exportObject:(Ljava/rmi/Remote;I)Ljava/rmi/Remote;
checkcast sun.jvmstat.monitor.remote.RemoteVm
astore 3
end local 7 end local 6 10: goto 15
11: StackMap locals: sun.tools.jstatd.RemoteHostImpl int java.lang.String sun.jvmstat.monitor.remote.RemoteVm java.lang.StringBuilder java.lang.String
StackMap stack: java.net.URISyntaxException
astore 6
start local 6 12: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Malformed VmIdentifier URI: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
13: aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 6
14: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 15: StackMap locals:
StackMap stack:
aload 3
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/tools/jstatd/RemoteHostImpl;
0 16 1 lvmid I
0 16 2 mode Ljava/lang/String;
1 16 3 stub Lsun/jvmstat/monitor/remote/RemoteVm;
2 16 4 sb Ljava/lang/StringBuilder;
6 16 5 vmidStr Ljava/lang/String;
7 10 6 vmid Lsun/jvmstat/monitor/VmIdentifier;
8 10 7 mvm Lsun/jvmstat/monitor/MonitoredVm;
12 15 6 e Ljava/net/URISyntaxException;
Exception table:
from to target type
6 10 11 Class java.net.URISyntaxException
Exceptions:
throws java.rmi.RemoteException, sun.jvmstat.monitor.MonitorException
MethodParameters:
Name Flags
lvmid
mode
public void detachVm(sun.jvmstat.monitor.remote.RemoteVm);
descriptor: (Lsun/jvmstat/monitor/remote/RemoteVm;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface sun.jvmstat.monitor.remote.RemoteVm.detach:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/jstatd/RemoteHostImpl;
0 2 1 rvm Lsun/jvmstat/monitor/remote/RemoteVm;
Exceptions:
throws java.rmi.RemoteException
MethodParameters:
Name Flags
rvm
public int[] activeVms();
descriptor: ()[I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aload 0
getfield sun.tools.jstatd.RemoteHostImpl.monitoredHost:Lsun/jvmstat/monitor/MonitoredHost;
invokevirtual sun.jvmstat.monitor.MonitoredHost.activeVms:()Ljava/util/Set;
invokeinterface java.util.Set.toArray:()[Ljava/lang/Object;
astore 1
3: aload 1
arraylength
newarray 10
astore 2
4: iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: java.lang.Object[] int[] int
StackMap stack:
aload 2
iload 3
aload 1
iload 3
aaload
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iastore
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 2
arraylength
if_icmplt 6
end local 3 9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/tools/jstatd/RemoteHostImpl;
1 10 1 vms [Ljava/lang/Object;
2 10 2 vmids [I
5 9 3 i I
Exceptions:
throws sun.jvmstat.monitor.MonitorException
public void vmStatusChanged(sun.jvmstat.monitor.event.VmStatusChangeEvent);
descriptor: (Lsun/jvmstat/monitor/event/VmStatusChangeEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.tools.jstatd.RemoteHostImpl.activeVms:Ljava/util/Set;
dup
astore 2
monitorenter
1: aload 0
getfield sun.tools.jstatd.RemoteHostImpl.activeVms:Ljava/util/Set;
aload 1
invokevirtual sun.jvmstat.monitor.event.VmStatusChangeEvent.getActive:()Ljava/util/Set;
invokeinterface java.util.Set.retainAll:(Ljava/util/Collection;)Z
pop
2: aload 2
monitorexit
3: goto 6
StackMap locals: sun.tools.jstatd.RemoteHostImpl sun.jvmstat.monitor.event.VmStatusChangeEvent java.util.Set
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/tools/jstatd/RemoteHostImpl;
0 7 1 ev Lsun/jvmstat/monitor/event/VmStatusChangeEvent;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
ev
public void disconnected(sun.jvmstat.monitor.event.HostEvent);
descriptor: (Lsun/jvmstat/monitor/event/HostEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jstatd/RemoteHostImpl;
0 1 1 ev Lsun/jvmstat/monitor/event/HostEvent;
MethodParameters:
Name Flags
ev
}
SourceFile: "RemoteHostImpl.java"