public class org.apache.activemq.management.JMSConnectionStatsImpl extends org.apache.activemq.management.StatsImpl
{
private java.util.List sessions;
private boolean transactional;
public void <init>(java.util.List, boolean)
{
java.util.List v;
org.apache.activemq.management.JMSConnectionStatsImpl v;
boolean v;
v := @this: org.apache.activemq.management.JMSConnectionStatsImpl;
v := @parameter: java.util.List;
v := @parameter: boolean;
specialinvoke v.<org.apache.activemq.management.StatsImpl: void <init>()>();
v.<org.apache.activemq.management.JMSConnectionStatsImpl: java.util.List sessions> = v;
v.<org.apache.activemq.management.JMSConnectionStatsImpl: boolean transactional> = v;
return;
}
public org.apache.activemq.management.JMSSessionStatsImpl[] getSessions()
{
java.lang.Object[] v;
java.util.List v;
org.apache.activemq.management.JMSSessionStatsImpl[] v;
org.apache.activemq.management.JMSConnectionStatsImpl v;
int v, v;
java.lang.Object v;
org.apache.activemq.management.JMSSessionStatsImpl v;
v := @this: org.apache.activemq.management.JMSConnectionStatsImpl;
v = v.<org.apache.activemq.management.JMSConnectionStatsImpl: java.util.List sessions>;
v = interfaceinvoke v.<java.util.List: java.lang.Object[] toArray()>();
v = lengthof v;
v = newarray (org.apache.activemq.management.JMSSessionStatsImpl)[v];
v = 0;
label:
if v >= v goto label;
v = v[v];
v = virtualinvoke v.<org.apache.activemq.ActiveMQSession: org.apache.activemq.management.JMSSessionStatsImpl getSessionStats()>();
v[v] = v;
v = v + 1;
goto label;
label:
return v;
}
public void reset()
{
org.apache.activemq.management.JMSSessionStatsImpl[] v;
org.apache.activemq.management.JMSConnectionStatsImpl v;
int v, v;
org.apache.activemq.management.JMSSessionStatsImpl v;
v := @this: org.apache.activemq.management.JMSConnectionStatsImpl;
specialinvoke v.<org.apache.activemq.management.StatsImpl: void reset()>();
v = virtualinvoke v.<org.apache.activemq.management.JMSConnectionStatsImpl: org.apache.activemq.management.JMSSessionStatsImpl[] getSessions()>();
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
virtualinvoke v.<org.apache.activemq.management.JMSSessionStatsImpl: void reset()>();
v = v + 1;
goto label;
label:
return;
}
public void setEnabled(boolean)
{
org.apache.activemq.management.JMSSessionStatsImpl[] v;
org.apache.activemq.management.JMSConnectionStatsImpl v;
int v, v;
org.apache.activemq.management.JMSSessionStatsImpl v;
boolean v;
v := @this: org.apache.activemq.management.JMSConnectionStatsImpl;
v := @parameter: boolean;
specialinvoke v.<org.apache.activemq.management.StatsImpl: void setEnabled(boolean)>(v);
v = virtualinvoke v.<org.apache.activemq.management.JMSConnectionStatsImpl: org.apache.activemq.management.JMSSessionStatsImpl[] getSessions()>();
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
virtualinvoke v.<org.apache.activemq.management.JMSSessionStatsImpl: void setEnabled(boolean)>(v);
v = v + 1;
goto label;
label:
return;
}
public boolean isTransactional()
{
org.apache.activemq.management.JMSConnectionStatsImpl v;
boolean v;
v := @this: org.apache.activemq.management.JMSConnectionStatsImpl;
v = v.<org.apache.activemq.management.JMSConnectionStatsImpl: boolean transactional>;
return v;
}
public java.lang.String toString()
{
org.apache.activemq.management.JMSSessionStatsImpl[] v;
org.apache.activemq.management.JMSConnectionStatsImpl v;
java.lang.StringBuffer v;
int v, v;
java.lang.String v, v;
org.apache.activemq.management.JMSSessionStatsImpl v;
v := @this: org.apache.activemq.management.JMSConnectionStatsImpl;
v = new java.lang.StringBuffer;
specialinvoke v.<java.lang.StringBuffer: void <init>(java.lang.String)>("connection{ ");
v = virtualinvoke v.<org.apache.activemq.management.JMSConnectionStatsImpl: org.apache.activemq.management.JMSSessionStatsImpl[] getSessions()>();
v = 0;
label:
v = lengthof v;
if v >= v goto label;
if v <= 0 goto label;
virtualinvoke v.<java.lang.StringBuffer: java.lang.StringBuffer append(java.lang.String)>(", ");
label:
v = staticinvoke <java.lang.Integer: java.lang.String toString(int)>(v);
virtualinvoke v.<java.lang.StringBuffer: java.lang.StringBuffer append(java.lang.String)>(v);
virtualinvoke v.<java.lang.StringBuffer: java.lang.StringBuffer append(java.lang.String)>(" = ");
v = v[v];
virtualinvoke v.<java.lang.StringBuffer: java.lang.StringBuffer append(java.lang.Object)>(v);
v = v + 1;
goto label;
label:
virtualinvoke v.<java.lang.StringBuffer: java.lang.StringBuffer append(java.lang.String)>(" }");
v = virtualinvoke v.<java.lang.StringBuffer: java.lang.String toString()>();
return v;
}
public void dump(org.apache.activemq.util.IndentPrinter)
{
org.apache.activemq.management.JMSSessionStatsImpl[] v;
org.apache.activemq.management.JMSConnectionStatsImpl v;
org.apache.activemq.util.IndentPrinter v;
int v, v;
org.apache.activemq.management.JMSSessionStatsImpl v;
v := @this: org.apache.activemq.management.JMSConnectionStatsImpl;
v := @parameter: org.apache.activemq.util.IndentPrinter;
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void printIndent()>();
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void println(java.lang.String)>("connection {");
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void incrementIndent()>();
v = virtualinvoke v.<org.apache.activemq.management.JMSConnectionStatsImpl: org.apache.activemq.management.JMSSessionStatsImpl[] getSessions()>();
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = v[v];
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void printIndent()>();
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void println(java.lang.String)>("session {");
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void incrementIndent()>();
virtualinvoke v.<org.apache.activemq.management.JMSSessionStatsImpl: void dump(org.apache.activemq.util.IndentPrinter)>(v);
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void decrementIndent()>();
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void printIndent()>();
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void println(java.lang.String)>("}");
v = v + 1;
goto label;
label:
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void decrementIndent()>();
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void printIndent()>();
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void println(java.lang.String)>("}");
virtualinvoke v.<org.apache.activemq.util.IndentPrinter: void flush()>();
return;
}
}