27.11.2012 Views

Disegno e implementazione di un framework per ... - Luca Deri - Ntop

Disegno e implementazione di un framework per ... - Luca Deri - Ntop

Disegno e implementazione di un framework per ... - Luca Deri - Ntop

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

public ArrayList getGlobalsAggregatedSessions()<br />

metodo che resituisce la lista delle sessioni globali analizzate dal frame-<br />

work.<br />

public ArrayList getRootSites(String client, String user-<br />

Agent) metodo che prende come argomenti client e user agent e resi-<br />

tuisce <strong>un</strong>a lista <strong>di</strong> oggetti Trace che rappresentano le richieste ra<strong>di</strong>ce<br />

relative agli argomenti.<br />

public Trace getTraceChilds(Trace t, String client, String user-<br />

Agent) metodo che prende come argomenti <strong>un</strong> oggetto Trace, la<br />

quale rappresenta la richiesta <strong>di</strong> cui si vogliono correlare le richieste<br />

HTTP, client e user agent e restituisce <strong>un</strong>’oggetto Trace, il quale con-<br />

tiene i riferimenti alle richieste HTTP correlate a quella passata come<br />

argomento.<br />

public ArrayList getVideos() metodo che restituisce <strong>un</strong>a<br />

lista <strong>di</strong> oggetti <strong>di</strong> tipo Video che rappresentano le richieste HTTP<br />

relative alla visione <strong>di</strong> filmati su web.<br />

Questi sono <strong>un</strong>’esempio dei meto<strong>di</strong> offerti dal <strong>framework</strong>. In caso <strong>di</strong><br />

sviluppo futuro del <strong>framework</strong>, sarà possibile aggi<strong>un</strong>gere altri meto<strong>di</strong> <strong>per</strong><br />

poter re<strong>per</strong>ire tutte le informazioni necessarie in base all’esigenze del singolo<br />

utente.<br />

4.4 Client<br />

Il client è <strong>un</strong> software che si interfaccia al <strong>framework</strong>, <strong>per</strong> utilizzare i dati<br />

elaborati da esso. In questo lavoro <strong>di</strong> tesi, al fine <strong>di</strong> validare il <strong>framework</strong><br />

<strong>di</strong>segnato, è stato sviluppato <strong>un</strong> client, il quale utilizza la libreria descritta<br />

nel paragrafo precedente. Nel prossimo capitolo verranno illustrati i risultati<br />

84

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

Saved successfully!

Ooh no, something went wrong!