The connection module provides the means to actually talk to the services hosted on an Autotest Server.
Most users of the connection module will only be interested in the AFE service, and also will only be interested in getting a connection to it that is:
- Ready to use
- Global
- Respect default settings
For those users, the arc.connection.get_default() does just that:
Returns the global, default connection to an AFE service
Returns: | an arc.connection.Connection instance |
---|
Base RPC connection
Initializes a connection to an empty path
This empty path does not exist on a default Autotest server
Add a service to a connection
Parameters: |
|
---|
Checks the minimum required RPC interface version
Parameters: | service_name – the registered name of the service |
---|
Tests connectivity to the RPC server
Runs a method using the rpc proxy
This method is heavily used by upper level API methods, and more often than not, those upper level API methods should be used instead.
Parameters: |
|
---|
This is the class that actually powers the connection return by arc.connection.get_default().
The default connection that allows access to both AFE and TKO services
Parameters: |
|
---|
By default, instances of this classes register access to both the AFE and TKO serviceces (by means of running arc.connection.BaseConnection.add_service()).