Parent

Class/Module Index [+]

Quicksearch

OpenShift::Runtime::Frontend::Http::Plugins::PluginBaseClass

Attributes

application_uuid[R]
container_name[R]
container_uuid[R]
fqdn[RW]
namespace[R]

Public Class Methods

inherited(subclass) click to toggle source
# File lib/openshift-origin-node/model/frontend/http/plugins/frontend_http_base.rb, line 101
def self.inherited(subclass)
  ::OpenShift::Runtime::Frontend::Http::Plugins::add_plugin(subclass)
end
new(container_uuid, fqdn, container_name, namespace, application_uuid=nil) click to toggle source
# File lib/openshift-origin-node/model/frontend/http/plugins/frontend_http_base.rb, line 76
def initialize(container_uuid, fqdn, container_name, namespace, application_uuid=nil)
  @container_uuid = container_uuid
  @fqdn = fqdn
  @container_name = container_name
  @namespace = namespace

  # app uuid is ONLY used by connect() for storing the value in the nodes db.
  # it may not be populated during other invocations
  @application_uuid = application_uuid
end

Public Instance Methods

unprivileged_unidle() click to toggle source
# File lib/openshift-origin-node/model/frontend/http/plugins/frontend_http_base.rb, line 87
def unprivileged_unidle
  begin
    http = Net::HTTP.new(SERVER_CONNECT_ADDR, SERVER_HTTP_PORT)
    http.open_timeout = 5
    http.read_timeout = 60
    http.use_ssl = false
    http.start do |client|
      resp = client.request_head('/', { 'Host' => @fqdn })
      resp.code
    end
  rescue
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.