Class: OdpsDatahub::OdpsConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/conf/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(accessId, accessKey, odpsEndpoint, datahubEndpoint, defaultProjectName = "") ⇒ OdpsConfig

Returns a new instance of OdpsConfig.



24
25
26
27
28
29
30
31
# File 'lib/fluent/plugin/conf/config.rb', line 24

def initialize(accessId, accessKey, odpsEndpoint, datahubEndpoint, defaultProjectName = "")
  @accessId = accessId
  @accessKey = accessKey
  @odpsEndpoint = odpsEndpoint
  @datahubEndpoint = datahubEndpoint
  @defaultProject = defaultProjectName
  @userAgent = ""
end

Instance Attribute Details

#accessIdObject

Returns the value of attribute accessId.



22
23
24
# File 'lib/fluent/plugin/conf/config.rb', line 22

def accessId
  @accessId
end

#accessKeyObject

Returns the value of attribute accessKey.



22
23
24
# File 'lib/fluent/plugin/conf/config.rb', line 22

def accessKey
  @accessKey
end

#datahubEndpointObject

Returns the value of attribute datahubEndpoint.



22
23
24
# File 'lib/fluent/plugin/conf/config.rb', line 22

def datahubEndpoint
  @datahubEndpoint
end

#defaultProjectNameObject

Returns the value of attribute defaultProjectName.



22
23
24
# File 'lib/fluent/plugin/conf/config.rb', line 22

def defaultProjectName
  @defaultProjectName
end

#odpsEndpointObject

Returns the value of attribute odpsEndpoint.



22
23
24
# File 'lib/fluent/plugin/conf/config.rb', line 22

def odpsEndpoint
  @odpsEndpoint
end

#userAgentObject

Returns the value of attribute userAgent.



22
23
24
# File 'lib/fluent/plugin/conf/config.rb', line 22

def userAgent
  @userAgent
end

Class Method Details

.setFastCrc(value) ⇒ Object



33
34
35
# File 'lib/fluent/plugin/conf/config.rb', line 33

def self.setFastCrc(value)
  $USE_FAST_CRC = value
end