ASPL Manual v 1.00
© 2024 by SetSphere.COM
[Comparing Java JMX TX Jar Files]
WORKSPACE JMXJAR DESCRIPTION:
This workspace is used to show how to use ASPL set operators to compare Java JMX TX JDBC JAR files. The JAR files have been extracted in their corresponding directories relative to /tmp directory. In the following the 'aspl >' refers to the ASPL prompt, and the '#' refers to the shell prompt.
# aspl -wsname JMXJAR -groupingclass POSIX
(start ASPL by loading JMXJAR workspace)
aspl> v
(to view the set variables)
aspl> jmx1 = ggdir(dir,/tmp/JMX/jmx1,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(jmx1 is assigned to content of /tmp/JMX/jmx1 with labeled group /tmp/JMX/jmx1)
aspl> jmx2 = ggdir(dir,/tmp/JMX/jmx2,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(jmx2 is assigned to content of /tmp/JMX/jmx2 with labeled group /tmp/JMX/jmx2)
aspl> jmx3 = ggdir(dir,/tmp/JMX/jmx3,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(jmx2 is assigned to content of /tmp/JMX/jmx3 with labeled group /tmp/JMX/jmx3)
aspl> jmx4 = ggdir(dir,/tmp/JMX/jmx4,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(jmx3 is assigned to content of /tmp/JMX/jmx4 with labeled group /tmp/JMX/jmx4)
aspl> tx1 = ggdir(dir,/tmp/TX/tx1,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(jmx2 is assigned to content of /tmp/TX/tx1 with labeled group /tmp/TX/tx1)
aspl> tx2 = ggdir(dir,/tmp/TX/tx2,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(tx2 is assigned to content of /tmp/TX/tx2 with labeled group /tmp/TX/tx2)
aspl> tx3 = ggdir(dir,/tmp/TX/tx3,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(tx3 is assigned to content of /tmp/TX/tx3 with labeled group /tmp/TX/tx3)
aspl> tx4 = ggdir(dir,/tmp/TX/tx4,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(tx4 is assigned to content of /tmp/TX/tx4 with labeled group /tmp/TX/tx4)
aspl> ifxjdbc1 = ggdir(dir,/tmp/JDBC/ifxjdbc1,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(ifxjdbc1 is assigned to content of /tmp/JDBC/ifxjdbc1 with labeled group /tmp/JDBC/ifxjdbc1)
aspl> ifxjdbc2 = ggdir(dir,/tmp/JDBC/ifxjdbc2,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(ifxjdbc2 is assigned to content of /tmp/JDBC/ifxjdbc2 with labeled group /tmp/JDBC/ifxjdbc2)
aspl> ifxjdbc3 = ggdir(dir,/tmp/JDBC/ifxjdbc3,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(ifxjdbc3 is assigned to content of /tmp/JDBC/ifxjdbc3 with labeled group /tmp/JDBC/ifxjdbc3)
aspl> sim`c jmx1 jmx2 jmx3 jmx4
(print the similarity between the JMX files whose checksums are equal)
aspl> gU`c= jmx1 jmx2 jmx3 jmx4
(display the union of the groups whose subgroups and elements have equal checksums)
aspl> gU`c~ jmx1 jmx2 jmx3 jmx4
(display the union of the groups whose subgroups and elements have unequal checksums)
aspl> gU jmx1 jmx2 jmx3 jmx4
(display the union of the groups )
aspl> f&`c~ jmx1 jmx2
(display the elements intersection between jmx1 and jmx2 where checksums are unequal)
aspl> f&`c= jmx1 jmx2
(display the elements intersection between jmx1 and jmx2 where checksums are equal)
aspl> f& jmx1 jmx2
(display the elements intersection between jmx1 and jmx2)
aspl> f\ jmx1 jmx2
(display the elements difference between jmx1 and jmx2)
aspl> f\ jmx2 jmx1
(display the elements difference between jmx2 and jmx1)
aspl> f%U jmx1 jmx2
(display the elements alignment between jmx1 jmx2)
aspl> g%U jmx1 jmx2
(display the groups (including subgroups and elements) alignment between jmx1 jmx2)
aspl> sim`c tx1 tx2 tx3 tx4
(print the similarity between tx1 tx2 tx3 tx4 that have the same checksums)
aspl> gU`c~ tx1 tx2 tx3 tx4
(display the union of the groups whose subgroups and elements have different checksums)
aspl> gU tx1 tx2 tx3 tx4
(display the union of the groups )
aspl> density tx1 tx2 tx3 tx4
(print the density histograms of the TX datasets)
This example is shown in the following terminal.
terminal for example: Comparing Java JMX TX Jar Files