Class: Pacer::Orient::FactoryContainer
- Inherits:
-
Object
- Object
- Pacer::Orient::FactoryContainer
- Defined in:
- lib/pacer-orient/factory_container.rb
Instance Attribute Summary collapse
-
#factory ⇒ Object
readonly
Returns the value of attribute factory.
Instance Method Summary collapse
- #get ⇒ Object
- #getNoTx ⇒ Object
- #getTx ⇒ Object
-
#initialize(f) ⇒ FactoryContainer
constructor
A new instance of FactoryContainer.
-
#shutdown ⇒ Object
Pacer calls shutdown on all cached graphs when it exits.
Constructor Details
#initialize(f) ⇒ FactoryContainer
Returns a new instance of FactoryContainer.
5 6 7 |
# File 'lib/pacer-orient/factory_container.rb', line 5 def initialize(f) @factory = f end |
Instance Attribute Details
#factory ⇒ Object (readonly)
Returns the value of attribute factory.
3 4 5 |
# File 'lib/pacer-orient/factory_container.rb', line 3 def factory @factory end |
Instance Method Details
#get ⇒ Object
9 10 11 |
# File 'lib/pacer-orient/factory_container.rb', line 9 def get factory.get end |
#getNoTx ⇒ Object
17 18 19 |
# File 'lib/pacer-orient/factory_container.rb', line 17 def getNoTx factory.getNoTx end |
#getTx ⇒ Object
13 14 15 |
# File 'lib/pacer-orient/factory_container.rb', line 13 def getTx factory.getTx end |
#shutdown ⇒ Object
Pacer calls shutdown on all cached graphs when it exits. Orient caches this factory.
22 23 24 |
# File 'lib/pacer-orient/factory_container.rb', line 22 def shutdown factory.close end |