Object
# 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
# 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
# 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
Generated with the Darkfish Rdoc Generator 2.