Class: SoarSr::ServiceRegistry
- Inherits:
-
Object
- Object
- SoarSr::ServiceRegistry
- Defined in:
- lib/soar_sr/service_registry.rb
Instance Attribute Summary collapse
-
#associations ⇒ Object
readonly
Returns the value of attribute associations.
-
#broker ⇒ Object
readonly
Returns the value of attribute broker.
-
#contacts ⇒ Object
readonly
Returns the value of attribute contacts.
-
#domain_perspectives ⇒ Object
readonly
Returns the value of attribute domain_perspectives.
-
#search ⇒ Object
readonly
Returns the value of attribute search.
-
#service_components ⇒ Object
readonly
Returns the value of attribute service_components.
-
#service_definitions ⇒ Object
readonly
Returns the value of attribute service_definitions.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
-
#teams ⇒ Object
readonly
Returns the value of attribute teams.
Class Method Summary collapse
Instance Method Summary collapse
- #check_dss(name) ⇒ Object
-
#initialize(uri, company, company_name, credentials, cache_freshness = 60) ⇒ ServiceRegistry
constructor
A new instance of ServiceRegistry.
Constructor Details
#initialize(uri, company, company_name, credentials, cache_freshness = 60) ⇒ ServiceRegistry
16 17 18 19 20 21 |
# File 'lib/soar_sr/service_registry.rb', line 16 def initialize(uri, company, company_name, credentials, cache_freshness = 60) validate(uri, company, company_name, credentials) @urns = initialize_urns(company, company_name) @uddi = initialize_uddi_provider(uri, @urns, credentials, cache_freshness) initialize_handlers(@urns, @uddi, credentials) end |
Instance Attribute Details
#associations ⇒ Object (readonly)
Returns the value of attribute associations.
11 12 13 |
# File 'lib/soar_sr/service_registry.rb', line 11 def associations @associations end |
#broker ⇒ Object (readonly)
Returns the value of attribute broker.
13 14 15 |
# File 'lib/soar_sr/service_registry.rb', line 13 def broker @broker end |
#contacts ⇒ Object (readonly)
Returns the value of attribute contacts.
14 15 16 |
# File 'lib/soar_sr/service_registry.rb', line 14 def contacts @contacts end |
#domain_perspectives ⇒ Object (readonly)
Returns the value of attribute domain_perspectives.
9 10 11 |
# File 'lib/soar_sr/service_registry.rb', line 9 def domain_perspectives @domain_perspectives end |
#search ⇒ Object (readonly)
Returns the value of attribute search.
12 13 14 |
# File 'lib/soar_sr/service_registry.rb', line 12 def search @search end |
#service_components ⇒ Object (readonly)
Returns the value of attribute service_components.
8 9 10 |
# File 'lib/soar_sr/service_registry.rb', line 8 def service_components @service_components end |
#service_definitions ⇒ Object (readonly)
Returns the value of attribute service_definitions.
7 8 9 |
# File 'lib/soar_sr/service_registry.rb', line 7 def service_definitions @service_definitions end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
6 7 8 |
# File 'lib/soar_sr/service_registry.rb', line 6 def services @services end |
#teams ⇒ Object (readonly)
Returns the value of attribute teams.
10 11 12 |
# File 'lib/soar_sr/service_registry.rb', line 10 def teams @teams end |
Class Method Details
.build_urns(fqdn, company_name) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/soar_sr/service_registry.rb', line 26 def self.build_urns(fqdn, company_name) base = "uddi:#{fqdn}" @urns = { 'base' => base, 'company' => "#{base}:#{company_name}", 'domains' => "#{base}:domains-", 'teams' => "#{base}:teams-", 'services' => "#{base}:services:", 'service-components' => "#{base}:service-components:" } @urns end |
Instance Method Details
#check_dss(name) ⇒ Object
23 24 |
# File 'lib/soar_sr/service_registry.rb', line 23 def check_dss(name) end |