class ProjectManager(object):
The project manager class exposes basic methods to manage scenarios, record them, replay them and start a Reven server to analyse them.
Method | __init__ |
Undocumented |
Method | auto |
Undocumented |
Method | auto |
Undocumented |
Method | cancel |
Undocumented |
Method | close |
Disconnect and stop the remote Reven server. |
Method | commit |
Undocumented |
Method | connect |
Use this method in a `with` pattern to get a `RevenServer` instance connected to the specified scenario name. |
Method | create |
Undocumented |
Method | delete |
Undocumented |
Method | delete |
Undocumented |
Method | delete |
Undocumented |
Method | delete |
Undocumented |
Method | delete |
Undocumented |
Method | delete |
Undocumented |
Method | delete |
Undocumented |
Method | delete |
Undocumented |
Method | eject |
Undocumented |
Method | export |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Uses the new scenarios by_name API from Reven 2.12 |
Method | get |
Uses the new scenarios by_uuid API from Reven 2.12 |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Get a connection to the Reven server for the given scenario. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | import |
Undocumented |
Method | insert |
Undocumented |
Method | load |
Undocumented |
Method | refresh |
Undocumented |
Method | replay |
Undocumented |
Method | save |
Undocumented |
Method | start |
Undocumented |
Method | start |
Undocumented |
Method | start |
Undocumented |
Method | stop |
Undocumented |
Method | stop |
Undocumented |
Method | update |
Undocumented |
Method | update |
Undocumented |
Method | upload |
Undocumented |
Method | upload |
Upload a scenario archive to the project manager. |
Method | upload |
Upload a scenario archive to the project manager. |
Instance Variable | client |
Undocumented |
Instance Variable | document |
Undocumented |
Property | hostname |
Property: The hostname of this project manager |
Property | port |
Property: The port of this project manager |
Static Method | _init |
Undocumented |
Method | _do |
Undocumented |
Method | _request |
Undocumented |
Instance Variable | _base |
Undocumented |
Instance Variable | _url |
Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
binarystr | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
taskint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Disconnect and stop the remote Reven server.
Warning
Be careful when using this method, as it could stop servers to which other scripts are currently connected. Any active Axion session would prevent the server to be stoppped.
Parameters | |
server:reven2.RevenServer | RevenServer connected to the target server. |
Raises | |
ResponseError | If the server cannot be stopped. |
Exception | If the given RevenServer is not connected. |
Undocumented
Parameters | |
qemuint | Undocumented |
scenarioint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Use this method in a `with` pattern to get a `RevenServer` instance connected to the specified scenario name.
This avoids having to use port numbers to connect to a server.
A new server will be started if there is no server for this scenario. If ephemeral is set to True (the default) and a new server is started by this call, then disposing of the connection will stop the server.
Examples
>>> # Using the 'with' syntax >>> with pm.connect("ddref") as server: ... print(server.trace.transition_count)
>>> # From the command line, it can be easier to do: >>> connection = Connection(pm, "ddref") >>> server = connection.server >>> print(server.trace.transition_count) >>> connection.disconnect() # to stop the server if we started it
>>> # If you want to keep the server >>> host = None >>> port = None >>> with pm.connect("ddref", ephemeral=False) as server: ... # save the port for later use ... host = server.host ... port = server.port ... # The Reven server is still accessible here ... server = reven2.RevenServer(host, port) ... print(server.trace.transition_count)
Parameters | |
name:str | Undocumented |
ephemeral:bool | Undocumented |
Returns | |
Connection | Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
snapshotint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
fileint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
resourcestr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
sessionint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
taskint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
replay:bool | Undocumented |
lightbool | Undocumented |
lightbool | Undocumented |
userbool | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
limit:int | Undocumented |
offset:int | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
limit:int | Undocumented |
offset:int | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
actionstr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Uses the new scenarios by_name API from Reven 2.12
Parameters | |
scenariostr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Uses the new scenarios by_uuid API from Reven 2.12
Parameters | |
scenariostr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
resourcestr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
limit:int | Undocumented |
offset:int | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Get a connection to the Reven server for the given scenario.
- The scenario can be defined either by its `uuid` or its `name`.
- The server is started if not already running.
- The Trace resource of the scenario must have been replayed to start a Reven server.
Parameters | |
uuid:Optional[ | The uuid of the scenario. |
name:Optional[ | The name of the scenario. |
Returns | |
reven2.RevenServer | A handle to the Reven server. |
Raises | |
ResponseError | If the server cannot be started. |
ValueError | If both parameters are None. |
Undocumented
Parameters | |
sessionint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
sessionint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
limit:int | Undocumented |
offset:int | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
snapshotint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
taskint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
taskint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
limit:int | Undocumented |
offset:int | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
archivestr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
livestr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
resources:Optional[ | Undocumented |
actions:Optional[ | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
livestr | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
live | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
sessionint | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
qemuint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
scenarioint | Undocumented |
**kwargs | Undocumented |
Returns | |
OrderedDict | Undocumented |
Undocumented
Parameters | |
filepath:Union[ | Undocumented |
Returns | |
OrderedDict | Undocumented |
Upload a scenario archive to the project manager.
Parameters | |
pdbUnion[ | path to the PDB to upload |
Returns | |
int | the uploaded PDB path on the server |
Raises | |
OSError | if open file fails |
ChunkUploadError | on network and upload error |
Upload a scenario archive to the project manager.
Parameters | |
archiveUnion[ | path to the archive file to upload |
archiveOptional[ | optional new name for the archive file |
Returns | |
final archive name suitable for import_scenario | |
Raises | |
OSError | if open file fails |
RuntimeError | on network and upload error |