ASPL Programming ver 1.00
© 2024 Bassem W. Jamaleddine


11-3

   Partitioning Java JMX JAR Files

[Partitioning Java JMX JAR Files]

WORKSPACE JMXJAR2 DESCRIPTION:

This is workspace is used to show how to use ASPL set operators to compare Java JMX JAR files by using the partitioning set operators. In the tutorial the 'aspl >' refers to the ASPL prompt, and the '#' refers to the shell prompt.

aspl -wsname JMXJAR2 -groupingclass POSIX
    (start ASPL by loading JMXJAR2 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> ks mtime chksum ppdd ffl
    (set ks vector)

⑥  aspl> sim`c jmx1 jmx2 jmx3
    (show similarities between jmx1 jmx2 jmx3)

⑦  aspl> density jmx1 jmx2 jmx3
    (show density of jmx1 jmx2 jmx3)

⑧  aspl> fP jmx1 jmx2 jmx3
    (partition according to the elements jmx1 jmx2 jmx3)

⑨  aspl> fP`c= jmx1 jmx2 jmx3
    (partition according to the elements (w. equal checksums) jmx1 jmx2 jmx3)

⑩  aspl> fP`c~ jmx1 jmx2 jmx3
    (partition according to the elements (w. different checksums) jmx1 jmx2 jmx3)

⑪  aspl> f%&`c= jmx1 jmx2
    (compare by showing the alignment (w. equal checksums) between jmx1 and jmx2)

⑫  aspl> f%&`c~ jmx1 jmx2
    (compare by showing the alignment (w. different checksums) between jmx1 and jmx2)

⑬  aspl> f%U jmx1 jmx2
    (compare by showing the alignment between jmx1 and jmx2)

⑭  aspl> gP jmx1 jmx2 jmx3
    (partition according to the files and directories jmx1 jmx2 jmx3)

⑮  aspl> dP jmx1 jmx2 jmx3
    (partition according to subgroups or directories jmx1 jmx2 jmx3)

⑯  aspl> f\ jmx1 jmx2
    (show the difference between jmx1 and jmx2)

⑰  aspl> f\ jmx2 jmx1
    (show the difference between jmx2 and jmx1)

This example is shown in the following terminal.