cfme.middleware.provider.hawkular module

class cfme.middleware.provider.hawkular.HawkularEndpoint(**kwargs)[source]

Bases: cfme.common.provider.DefaultEndpoint

view_value_mapping
class cfme.middleware.provider.hawkular.HawkularEndpointForm(parent, logger=None, **kwargs)[source]

Bases: cfme.common.provider.DefaultEndpointForm

api_port

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

security_protocol

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.middleware.provider.hawkular.HawkularProvider(name=None, endpoints=None, hostname=None, port=None, credentials=None, key=None, appliance=None, sec_protocol=None, **kwargs)[source]

Bases: cfme.middleware.provider.MiddlewareBase, cfme.common.TopologyMixin, cfme.common.TimelinesMixin, cfme.middleware.provider.MiddlewareProvider

HawkularProvider class holds provider data. Used to perform actions on hawkular provider page

Parameters:
  • name – Name of the provider
  • endpoints – one or several provider endpoints like DefaultEndpoint. it should be either dict
  • format dict{endpoint.name, endpoint, endpoint_n.name, endpoint_n}, list of endpoints or (in) –
  • one endpoint (mere) –
  • hostname – Hostname/IP of the provider
  • port – http/https port of hawkular provider
  • credentials – see Credential inner class.
  • key – The CFME key of the provider in the yaml.
  • db_id – database row id of provider

Usage:

myprov = HawkularProvider(name='foo',
                    endpoints=endpoint,
                    hostname='localhost',
                    port=8080,
                    credentials=Provider.Credential(principal='admin', secret='foobar')))
myprov.create()
myprov.num_deployment(method="ui")
STATS_TO_MATCH = ['num_server', 'num_domain', 'num_deployment', 'num_datasource', 'num_messaging']
db_types = ['Hawkular::MiddlewareManager']
classmethod download(extension)[source]
endpoints_form

alias of HawkularEndpointForm

static from_config(prov_config, prov_key, appliance=None)[source]
is_refreshed(*args, **kwargs)
is_refreshed_db = None
is_valid(*args, **kwargs)
load_details(refresh=False)[source]

Navigate to Details and load db_id if not set

load_timelines_page()[source]
load_topology_page()[source]
mgmt_class = <Mock name='mock.Hawkular' id='140298914513744'>
num_datasource(*args, **kwargs)
num_datasource_ui = None
num_deployment(*args, **kwargs)
num_deployment_ui = None
num_domain(*args, **kwargs)
num_domain_ui = None
num_messaging(*args, **kwargs)
num_messaging_ui = None
num_server(*args, **kwargs)
num_server_group(*args, **kwargs)
num_server_ui = None
property_tuples = [('name', 'Name'), ('hostname', 'Host Name'), ('port', 'Port'), ('provider_type', 'Type')]
recheck_auth_status()[source]
type_name = 'hawkular'
view_value_mapping

Maps values to view attrs