Parent

Class/Module Index [+]

Quicksearch

OpenShift::RoutingService

Routing singleton, manages notifications of changes to routes.

An optional routing plug-in may be used to communicate with infrastructure outside of OpenShift, such as an external load balancer or firewall.

Multiple routing plug-ins may be registered at the same time, or there may be none registered.

This class defines the abstract interface that plug-ins can implement in order to integrate with the external environment.

This class also proxies method calls to all registered plug-ins.

Public Class Methods

deregister_provider(provider) click to toggle source

Deregister a previously registered provider.

@param [Object] provider

An object to be removed from the list of providers.

@return [Object]

The deregistered object, or nil if the object was not found to
have been previously registered.
# File lib/openshift/routing_service.rb, line 37
def self.deregister_provider(provider)
  @routing_provider.delete provider
end
notify_add_alias(app, alias_str) click to toggle source
# File lib/openshift/routing_service.rb, line 54
def self.notify_add_alias(app, alias_str)
  notify_providers :notify_add_alias, app,alias_str
end
notify_create_application(app) click to toggle source
# File lib/openshift/routing_service.rb, line 62
def self.notify_create_application(app)
  notify_providers :notify_create_application, app
end
notify_create_public_endpoint(app, gear, endpoint_name, public_ip, public_port, internal_ip, internal_port, protocols, types, mappings) click to toggle source
# File lib/openshift/routing_service.rb, line 70
def self.notify_create_public_endpoint(app, gear, endpoint_name, public_ip, public_port, internal_ip, internal_port, protocols, types, mappings)
  notify_providers :notify_create_public_endpoint, app, gear, endpoint_name, public_ip, public_port, protocols, types, mappings
end
notify_delete_application(app) click to toggle source
# File lib/openshift/routing_service.rb, line 66
def self.notify_delete_application(app)
  notify_providers :notify_delete_application, app
end
notify_delete_public_endpoint(app, gear, public_ip, public_port) click to toggle source
# File lib/openshift/routing_service.rb, line 74
def self.notify_delete_public_endpoint(app, gear, public_ip, public_port)
  notify_providers :notify_delete_public_endpoint, app, gear, public_ip, public_port
end
notify_providers(event, *args) click to toggle source

Notify provider objects of an event.

# File lib/openshift/routing_service.rb, line 42
def self.notify_providers(event, *args)
  @routing_provider.each{ |p| p.send(event, *args) if p.respond_to?(event) }
end
notify_remove_alias(app, alias_str) click to toggle source
# File lib/openshift/routing_service.rb, line 58
def self.notify_remove_alias(app, alias_str)
  notify_providers :notify_remove_alias, app,alias_str
end
notify_ssl_cert_add(app, fqdn, ssl_cert, private_key, passphrase) click to toggle source
# File lib/openshift/routing_service.rb, line 46
def self.notify_ssl_cert_add(app, fqdn, ssl_cert, private_key, passphrase)
  notify_providers :notify_ssl_cert_add, app, fqdn, ssl_cert, private_key, passphrase
end
notify_ssl_cert_remove(app, fqdn) click to toggle source
# File lib/openshift/routing_service.rb, line 50
def self.notify_ssl_cert_remove(app, fqdn)
  notify_providers :notify_ssl_cert_remove, app, fqdn
end
register_provider(provider) click to toggle source

Register a provider object to which method calls will be proxied.

@param [Object] provider

An object to which method calls will be proxied.

@return [[Object]]

The list of classes to which method calls will be proxied.
# File lib/openshift/routing_service.rb, line 26
def self.register_provider(provider)
  @routing_provider << provider
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.