QueueMetrics > Scripting QueueMetrics

java equivalent of python example

(1/1)

hello:
does anyone have a java equivalent of this python example from section 4 of the xmlrpc manaul?

for t in res.keys():
        print "===== Block " + t + ": ========"
        for r in range( len(res[t]) ):
                for c in range( len( res[t][r] )):
                        print res[t][r][c] ,
                        print "\t" ,
                print

hello:
figured out what was going wrong, the redstone xmlrpc package returns "xmlrpcarray"s and not native java arrays!  Easy once you know that.

QueueMetrics:
I think this depends on the java library used - anyway I see that you should be able to cast it to an ArrayList if you want to, as it is actually an extended ArrayList - see http://xmlrpc.sourceforge.net/javadoc/redstone/xmlrpc/XmlRpcArray.html

Navigation

[0] Message Index

Go to full version