8271e209b8a42a4861466d151591105970c9cd69,perfkitbenchmarker/dpb_service.py,,GetDpbServiceClass,#Any#,63

Before Change


  Raises:
    Exception: An invalid data processing backend service type was provided
  
  if dpb_service_type in _DPB_SERVICE_REGISTRY:
    return _DPB_SERVICE_REGISTRY.get(dpb_service_type)
  else:
    // TODO(saksena): Make the exception specific to dpb service
    raise Exception("No Data Processing Backend service found for {0}".format(
        dpb_service_type))


class AutoRegisterDpbServiceMeta(abc.ABCMeta):
  Metaclass which allows DpbServices to register.

  def __init__(cls, name, bases, dct):

After Change


  Raises:
    Exception: An invalid data processing backend service type was provided
  
  return resource.GetResourceClass(BaseDpbService,
                                   SERVICE_TYPE=dpb_service_type)


class BaseDpbService(resource.BaseResource):
  Object representing a Data Processing Backend Service.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 8271e209b8a42a4861466d151591105970c9cd69
Time: 2018-03-01
Author: ehankland@google.com
File Name: perfkitbenchmarker/dpb_service.py
Class Name:
Method Name: GetDpbServiceClass


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 8271e209b8a42a4861466d151591105970c9cd69
Time: 2018-03-01
Author: ehankland@google.com
File Name: perfkitbenchmarker/spark_service.py
Class Name:
Method Name: GetSparkServiceClass


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 8271e209b8a42a4861466d151591105970c9cd69
Time: 2018-03-01
Author: ehankland@google.com
File Name: perfkitbenchmarker/cloud_tpu.py
Class Name:
Method Name: GetCloudTpuClass