Class: Dag::Client

Inherits:
Object
  • Object
show all
Includes:
Cluster, Database, Job, Storage
Defined in:
lib/dag/client.rb,
lib/dag/client/api.rb,
lib/dag/client/job.rb,
lib/dag/client/table.rb,
lib/dag/client/cluster.rb,
lib/dag/client/storage.rb,
lib/dag/client/version.rb,
lib/dag/client/database.rb,
lib/dag/client/exception.rb,
lib/dag/client/job_validation.rb,
lib/dag/client/cluster_validation.rb

Defined Under Namespace

Modules: Cluster, ClusterValidation, Database, Job, JobValidation, Storage, Table Classes: API, APIFailure, APIOptionInvalid, ClusterNotOpen, ClusterRebooted, DatabaseNotFound, JobTypeInvalid, ParameterInvalid, StatusInvalid, TableAlreadyExists, TableNotFound

Constant Summary collapse

VERSION =
"1.0.2"

Constants included from ClusterValidation

ClusterValidation::VALID_WHERE_KEYS

Instance Attribute Summary collapse

Attributes included from Cluster

#cluster_name

Instance Method Summary collapse

Methods included from Storage

#buckets, #create_bucket, #delete_bucket, #delete_object, #import, #objects

Methods included from Job

#job, #job_cancel, #job_download_urls, #job_log, #jobs, #query

Methods included from Cluster

#cluster, #clusters, #open

Methods included from ClusterValidation

#cluster_norm?, #cluster_norm_or_ptfailed?, #cluster_restart_status?, #cluster_status, #valid_cluster_info_list_status?, #valid_cluster_status?, #validate_cluster, #validate_cluster_param_keys

Methods included from Database

#create_database, #create_table, #database, #databases, #split_table, #table

Constructor Details

#initialize(apikey, secret, options = {}) ⇒ Client

Returns a new instance of Client.



13
14
15
# File 'lib/dag/client.rb', line 13

def initialize(apikey, secret, options = {})
  @api = API.new(apikey, secret, options)
end

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



17
18
19
# File 'lib/dag/client.rb', line 17

def api
  @api
end

Instance Method Details

#analysis_apiObject



23
24
25
# File 'lib/dag/client.rb', line 23

def analysis_api
  @api.analysis_api
end

#apikeyObject



19
20
21
# File 'lib/dag/client.rb', line 19

def apikey
  @api.apikey
end

#storage_apiObject



27
28
29
# File 'lib/dag/client.rb', line 27

def storage_api
  @api.storage_api
end