public interface TraceService
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the entire store trace.
|
String |
exportTrace()
Initiates the export of the trace data to a CSV file, and returns a
ticket to be used to request the file from the server.
|
File |
fetchExportedCsv(String ticket)
Fetches the exported CSV file for the given claim ticket.
|
long |
getBookmark()
Returns the current bookmark value.
|
MessageEventWrapper |
getEvent(long bookmark)
Returns the message event associated with the given bookmark ID, or null
if no such event is stored.
|
Trace |
getTrace(long bookmark)
Returns the trace descriptor with message events recorded since the
specified bookmark.
|
String |
getTraceAsCsv()
Returns the trace data as a CSV string.
|
Trace |
getTraceOrWait(long bookmark,
long maxWaitMillis)
Returns the trace descriptor with the message events recorded since the
specified bookmark.
|
boolean |
recording()
Returns the current recording status of the OpenFlow controller.
|
boolean |
start()
Starts trace recording for the default time period.
|
boolean |
start(int seconds)
Starts recording for the specified number of seconds.
|
void |
stop()
Stops recording immediately.
|
boolean recording()
true
if recording is active, false
otherwiselong getBookmark()
boolean start()
true
if recording is successfully started,
false
otherwiseboolean start(int seconds)
seconds
- duration of recording in secondstrue
if recording is successfully started,
false
otherwisevoid stop()
void clear()
Trace getTrace(long bookmark)
bookmark
- identification bookmarkTrace getTraceOrWait(long bookmark, long maxWaitMillis)
bookmark
- identification bookmarkmaxWaitMillis
- the maximum time in milliseconds to wait for the
arrival of a new message eventMessageEventWrapper getEvent(long bookmark)
bookmark
- identification bookmarkString getTraceAsCsv()
String exportTrace() throws IOException
IOException
- if staging area for CSV file cannot be createdFile fetchExportedCsv(String ticket)
ticket
- the ticket issued when the request was madeIllegalArgumentException
- if ticket is invalidCopyright © 2016. All Rights Reserved.