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 ⇒ Object
readonly
The GemFire API.
-
#rabbitmq ⇒ Object
readonly
The Rabbit API.
-
#tc_server ⇒ Object
readonly
The tc Server API.
-
#vfabric ⇒ Object
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. Supported configuration options are:
- host
-
The host of the Administration Server. Defaults to localhost.
- port
-
The HTTPS port of the Administration Server. Defaults to 8443.
- username
-
The username used to authenticate. Defaults to admin
- password
-
The password used to authenticate. Defaults to vmware
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 ⇒ Object (readonly)
The GemFire API
22 23 24 |
# File 'lib/vas/vfabric_administration_server.rb', line 22 def gemfire @gemfire end |
#rabbitmq ⇒ Object (readonly)
The Rabbit API
25 26 27 |
# File 'lib/vas/vfabric_administration_server.rb', line 25 def rabbitmq @rabbitmq end |
#tc_server ⇒ Object (readonly)
The tc Server API
28 29 30 |
# File 'lib/vas/vfabric_administration_server.rb', line 28 def tc_server @tc_server end |
#vfabric ⇒ Object (readonly)
The vFabric API
31 32 33 |
# File 'lib/vas/vfabric_administration_server.rb', line 31 def vfabric @vfabric end |