@base.remotable_classmethod
def get_by_host_and_binary(cls, context, host, binary):
    try:
        db_service = db.service_get_by_host_and_binary(context, host, binary)
    except exception.HostBinaryNotFound:
        return
    return cls._from_db_object(context, cls(), db_service)
@base.remotable_classmethod
def get_by_host_and_binary(cls, context, host, binary):
    try:
        db_service = db.service_get_by_host_and_binary(context, host, binary)
    except exception.HostBinaryNotFound:
        return
    return cls._from_db_object(context, cls(), db_service)