11.07.2015 Views

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

present the data and <str<strong>on</strong>g>for</str<strong>on</strong>g> the c<strong>on</strong>trol of the GUI the Model/View/C<strong>on</strong>trollerpattern (see Freeman et al. (2004), pages 529-546) is integrated. The mainelements are the login view and the overview panel. The overview c<strong>on</strong>tainspanels <str<strong>on</strong>g>for</str<strong>on</strong>g> in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> about the c<strong>on</strong>necti<strong>on</strong>, a list of all available comp<strong>on</strong>entthreads and their states and a panel c<strong>on</strong>taining the tabbed navigati<strong>on</strong>. Forc<strong>on</strong>trolling the interacti<strong>on</strong> all windows are using c<strong>on</strong>troller classes handlingthe communicati<strong>on</strong> in background. Figure 6.10 gives an overview of the mainclasses implemented. For the communicati<strong>on</strong> with the probe the communicati<strong>on</strong>interface is integrated using a c<strong>on</strong>crete implementati<strong>on</strong> of the XMPPcommunicator. Each element of the Java client can observe the communicati<strong>on</strong>interface and receives incoming messages <strong>on</strong> notify triggered by the communicator.The Comp<strong>on</strong>entMapper is used <str<strong>on</strong>g>for</str<strong>on</strong>g> matching comp<strong>on</strong>ent threads of theprobe with corresp<strong>on</strong>ding views <strong>on</strong> the client.Figure 6.10: Main classes of the Java client - On successful c<strong>on</strong>nectall needed panels are created. The TabHolder createsand c<strong>on</strong>trols all panels <str<strong>on</strong>g>for</str<strong>on</strong>g> presenting the comp<strong>on</strong>entthreads and the logging cycle.LoginC<strong>on</strong>troller and Login WindowThe LoginC<strong>on</strong>troller and the Login view handle the initializati<strong>on</strong> of thec<strong>on</strong>necti<strong>on</strong> to the probe. The Login class creates the GUI with input <str<strong>on</strong>g>for</str<strong>on</strong>g>the communicati<strong>on</strong> parameters. Events of the Login view are observed by the49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!