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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.2 The Probe - Implementati<strong>on</strong> of the Server SideDue to the use of the B<strong>on</strong>SAI interface (see chapter 4.2) the implementati<strong>on</strong>of the probe is called ReSAI (Remote Sensor Actuator Interface). Figure 6.3shows the main classes implemented <str<strong>on</strong>g>for</str<strong>on</strong>g> the probe. For a better overview alllists c<strong>on</strong>trolled by the different elements are left out. Also helper classes (e.g.TimerC<strong>on</strong>verter) are not shown.Figure 6.3: Main classes of the probe - The ReSAIServer classcreates and initializes all needed dispatchers. Each dispatcherc<strong>on</strong>trols several sub comp<strong>on</strong>ents.ReSAIServer - Initializing the ProbeThe ReSAIServer class initializes at startup all needed classes <str<strong>on</strong>g>for</str<strong>on</strong>g> the probe.The Clients class extends the Observable class and holds a hash map of allclients c<strong>on</strong>nected and their current beac<strong>on</strong> count. This list is used to m<strong>on</strong>itorall c<strong>on</strong>nected clients which c<strong>on</strong>nect during the runtime of the probe. For thec<strong>on</strong>figurati<strong>on</strong> of the probe the XML c<strong>on</strong>figurati<strong>on</strong> file is parsed and stored inthe ServerC<strong>on</strong>fig. The ServerC<strong>on</strong>fig holds all details <str<strong>on</strong>g>for</str<strong>on</strong>g> the communicati<strong>on</strong>server, the list of available comp<strong>on</strong>ent threads to be initialized and the36

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

Saved successfully!

Ooh no, something went wrong!