Class: Pacer::Orient::FactoryContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/pacer-orient/factory_container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#factoryObject (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

#getObject



9
10
11
# File 'lib/pacer-orient/factory_container.rb', line 9

def get
  factory.get
end

#getNoTxObject



17
18
19
# File 'lib/pacer-orient/factory_container.rb', line 17

def getNoTx
  factory.getNoTx
end

#getTxObject



13
14
15
# File 'lib/pacer-orient/factory_container.rb', line 13

def getTx
  factory.getTx
end

#shutdownObject

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