public class FlowDroidTimeoutWatcher extends Object implements IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification
| 构造器和说明 |
|---|
FlowDroidTimeoutWatcher(long timeout)
Creates a new instance of the
FlowDroidTimeoutWatcher class |
FlowDroidTimeoutWatcher(long timeout,
InfoflowResults res)
Creates a new instance of the
FlowDroidTimeoutWatcher class |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSolver(IMemoryBoundedSolver solver)
Adds a solver that shall be terminated when the timeout is reached
|
long |
getTimeout()
Gets the timeout after which the IFDS solvers are aborted
|
void |
notifySolverStarted(IMemoryBoundedSolver solver)
Method that is called when the solver has received its first task
|
void |
notifySolverTerminated(IMemoryBoundedSolver solver)
Method that is called when the solver has finished its last task
|
void |
reset()
Resets the internal state of the watcher so that it can be used again after
being stopped
|
void |
setTerminationCallback(ISolversTerminatedCallback terminationCallback)
Sets a callback that shall be invoked when the solvers have been terminated
due to a timeout
|
void |
start()
Starts the timeout watcher
|
void |
stop()
Stops the timeout watcher so that it no longer interferes with solver
execution
|
public FlowDroidTimeoutWatcher(long timeout)
FlowDroidTimeoutWatcher classtimeout - The timeout in seconds after which the solvers shall be
stoppedpublic FlowDroidTimeoutWatcher(long timeout,
InfoflowResults res)
FlowDroidTimeoutWatcher classtimeout - The timeout in seconds after which the solvers shall be
stoppedres - The InfoflowResults objectpublic long getTimeout()
public void addSolver(IMemoryBoundedSolver solver)
solver - A solver that shall be terminated when the timeout is reachedpublic void start()
public void stop()
public void reset()
public void notifySolverStarted(IMemoryBoundedSolver solver)
notifySolverStarted 在接口中 IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotificationsolver - The solver that sends the notificationpublic void notifySolverTerminated(IMemoryBoundedSolver solver)
public void setTerminationCallback(ISolversTerminatedCallback terminationCallback)
terminationCallback - The callback to invoke when the solvers have been
terminated due to a timeoutCopyright © 2022 Fraunhofer SIT. All rights reserved.