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.

tends the JPanel class. The template is used to define a skelet<strong>on</strong> <str<strong>on</strong>g>for</str<strong>on</strong>g> c<strong>on</strong>cretecomp<strong>on</strong>ent panels. Each comp<strong>on</strong>ent tab must extend the PanelTemplate andis <str<strong>on</strong>g>for</str<strong>on</strong>g>ced to implement the update() method <str<strong>on</strong>g>for</str<strong>on</strong>g> observati<strong>on</strong>. Each panel isadded to the observers of the communicati<strong>on</strong> interface. To present the dataeach panel can create its own layout.LogPanelThe LogPanel is implemented <str<strong>on</strong>g>for</str<strong>on</strong>g> the creati<strong>on</strong> of logging cycles <strong>on</strong> the probe.This panel requests the list of available logging comp<strong>on</strong>ents from the probe.The received list is presented by check-boxes <str<strong>on</strong>g>for</str<strong>on</strong>g> each logging comp<strong>on</strong>ent.When the logging cycle is executed, the LogPanel sends the list of selectedlogging comp<strong>on</strong>ents to the probe and inactivates all elements of the view exceptthe stop butt<strong>on</strong>. When the logging cycle is requested to stop, the stopcommand is send to the probe and the elements of the LogPanel are activatedagain. Like the mobile client changing the current tab while a logging cycle isactive does not result in stopping the logging cycle.The Helper PanelsTo present the state of the probe, the Java client offers several helper panels.Each panel observes the communicati<strong>on</strong> interface <str<strong>on</strong>g>for</str<strong>on</strong>g> corresp<strong>on</strong>ding in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong>.Implemented panels are the Beac<strong>on</strong>Panel, ErrorPanel, StatusPaneland the Comp<strong>on</strong>entPanel.Beac<strong>on</strong>PanelThe Beac<strong>on</strong>panel presents the data of the last beac<strong>on</strong> received from the server.It extracts the properties of the received beac<strong>on</strong> and fills them to corresp<strong>on</strong>dinglabels.Comp<strong>on</strong>entPanelThe Comp<strong>on</strong>entPanel uses a timer to request the state of the comp<strong>on</strong>entthreads with a given frequency. When the list is received it is parsed andprinted to a label.ErrorPanelTo show errors received from the probe the ErrorPanel listens to the communicati<strong>on</strong>interface <str<strong>on</strong>g>for</str<strong>on</strong>g> incoming messages c<strong>on</strong>taining errors. Once an errormessage is received it is parsed and displayed.52

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

Saved successfully!

Ooh no, something went wrong!