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.
-
#tc_server ⇒ TcServer::TcServer
readonly
The tc Server API.
-
#vfabric ⇒ VFabric::VFabric
readonly
The vFabric API.
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.
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/vas/vfabric_administration_server.rb', line 38 def initialize(configuration = {}) @client = Util::Client.new(configuration[:username] || "admin", configuration[:password] || "vmware") host = configuration[:host] || "localhost" port = configuration[:port] || 8443 @tc_server = TcServer::TcServer.new("https://#{host}:#{port}/tc-server/v1", @client) @vfabric = VFabric::VFabric.new("https://#{host}:#{port}/vfabric/v1", @client) @rabbitmq = RabbitMq::RabbitMq.new("https://#{host}:#{port}/rabbitmq/v1", @client) @gemfire = Gemfire::Gemfire.new("https://#{host}:#{port}/gemfire/v1", @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 |
#tc_server ⇒ TcServer::TcServer (readonly)
Returns the tc Server API.
27 28 29 |
# File 'lib/vas/vfabric_administration_server.rb', line 27 def tc_server @tc_server end |
#vfabric ⇒ VFabric::VFabric (readonly)
Returns the vFabric API.
30 31 32 |
# File 'lib/vas/vfabric_administration_server.rb', line 30 def vfabric @vfabric end |