Class: VFabricAdministrationServer
- Inherits:
-
Object
- Object
- VFabricAdministrationServer
- Defined in:
- lib/vas/vfabric_administration_server.rb
Overview
The main entry point to the vFabric Administration Server API.
Instance Attribute Summary collapse
-
#gemfire ⇒ Gemfire::Gemfire
readonly
The GemFire API.
-
#rabbitmq ⇒ RabbitMq::RabbitMq
readonly
The RabbitMQ API.
-
#sqlfire ⇒ Sqlfire::Sqlfire?
readonly
The SQLFire API, or
nil
if the server is not version 1.1.0 or later. -
#tc_server ⇒ TcServer::TcServer
readonly
The tc Server API.
-
#vfabric ⇒ VFabric::VFabric
readonly
The vFabric API.
-
#web_server ⇒ WebServer::WebServer?
readonly
The vFabric Web Server API, or
nil
if the server is not version 1.1.0 or later.
Instance Method Summary collapse
-
#initialize(configuration = {}) ⇒ VFabricAdministrationServer
constructor
Creates an entry point that will connect to a vFabric Administration Server.
Constructor Details
#initialize(configuration = {}) ⇒ VFabricAdministrationServer
Creates an entry point that will connect to a vFabric Administration Server.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/vas/vfabric_administration_server.rb', line 44 def initialize(configuration = {}) configuration.has_key?(:client) ? client = configuration[:client] : client = Util::Client.new(configuration[:username] || "admin", configuration[:password] || "vmware") host = configuration[:host] || "localhost" port = configuration[:port] || 8443 @gemfire = Gemfire::Gemfire.new("https://#{host}:#{port}/gemfire/v1/", client) @rabbitmq = RabbitMq::RabbitMq.new("https://#{host}:#{port}/rabbitmq/v1/", client) sqlfire_location = "https://#{host}:#{port}/sqlfire/v1/" @sqlfire = Sqlfire::Sqlfire.new(sqlfire_location, client) if available? sqlfire_location, client @tc_server = TcServer::TcServer.new("https://#{host}:#{port}/tc-server/v1/", client) @vfabric = VFabric::VFabric.new("https://#{host}:#{port}/vfabric/v1/", client) web_server_location = "https://#{host}:#{port}/web-server/v1/" @web_server = WebServer::WebServer.new(web_server_location, client) if available? web_server_location, client end |
Instance Attribute Details
#gemfire ⇒ Gemfire::Gemfire (readonly)
Returns the GemFire API.
21 22 23 |
# File 'lib/vas/vfabric_administration_server.rb', line 21 def gemfire @gemfire end |
#rabbitmq ⇒ RabbitMq::RabbitMq (readonly)
Returns the RabbitMQ API.
24 25 26 |
# File 'lib/vas/vfabric_administration_server.rb', line 24 def rabbitmq @rabbitmq end |
#sqlfire ⇒ Sqlfire::Sqlfire? (readonly)
Returns the SQLFire API, or nil
if the server is not version 1.1.0 or later.
27 28 29 |
# File 'lib/vas/vfabric_administration_server.rb', line 27 def sqlfire @sqlfire end |
#tc_server ⇒ TcServer::TcServer (readonly)
Returns the tc Server API.
30 31 32 |
# File 'lib/vas/vfabric_administration_server.rb', line 30 def tc_server @tc_server end |
#vfabric ⇒ VFabric::VFabric (readonly)
Returns the vFabric API.
33 34 35 |
# File 'lib/vas/vfabric_administration_server.rb', line 33 def vfabric @vfabric end |
#web_server ⇒ WebServer::WebServer? (readonly)
Returns the vFabric Web Server API, or nil
if the server is not version 1.1.0 or later.
36 37 38 |
# File 'lib/vas/vfabric_administration_server.rb', line 36 def web_server @web_server end |