JCLOUDS-127: Added a method to check if the context is open
authorAnton Panasenko <anton.panasenko@gmail.com>
Fri, 14 Jun 2013 11:45:04 +0000 (14:45 +0300)
committerIgnasi Barrera <ignasi.barrera@gmail.com>
Mon, 17 Jun 2013 22:31:51 +0000 (00:31 +0200)
commitff3405c967b9fd6701fa39c6bb57d0308dd6e1e6
treeb3a3c073f919fc533a6328e27612c0741e4e289d
parentbcf8e3fe5050e3de6f21ecb3b5c9a2f5943ca4af
JCLOUDS-127: Added a method to check if the context is open

- Added isOpen in Context interface
- Refactoring Closer class:
  - method close can only call once
  - method close is threadsafe
  - added method getState
core/src/main/java/org/jclouds/Context.java
core/src/main/java/org/jclouds/internal/ContextImpl.java
core/src/main/java/org/jclouds/lifecycle/Closer.java
core/src/test/java/org/jclouds/lifecycle/config/LifeCycleModuleTest.java