Class TapeLibraryPoolImpl
java.lang.Object
fr.gouv.vitam.storage.offers.tape.pool.TapeLibraryPoolImpl
- All Implemented Interfaces:
- TapeDrivePool,- TapeLibraryPool,- TapeRobotPool
- 
Constructor SummaryConstructorsConstructorDescriptionTapeLibraryPoolImpl(String libraryIdentifier, BlockingQueue<TapeRobotService> tapeRobotServicePool, ConcurrentHashMap<Integer, TapeDriveService> tapeDriveServicePool) 
- 
Method SummaryModifier and TypeMethodDescriptioncheckoutDriveService(Integer driveIndex) Retrieves and removes the head of this pool, waiting if necessary until an element becomes available.Retrieves and removes the head of this pool, waiting if necessary until an element becomes available.checkoutRobotService(long timeout, TimeUnit unit) Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.drives()voidpushDriveService(TapeDriveService tapeDriveService) Return or add TapeDriveService to the poolvoidpushRobotService(TapeRobotService tapeRobotService) Return or add TapeRobotService to the pool
- 
Constructor Details- 
TapeLibraryPoolImplpublic TapeLibraryPoolImpl(String libraryIdentifier, BlockingQueue<TapeRobotService> tapeRobotServicePool, ConcurrentHashMap<Integer, TapeDriveService> tapeDriveServicePool) 
 
- 
- 
Method Details- 
checkoutRobotServiceDescription copied from interface:TapeRobotPoolRetrieves and removes the head of this pool, waiting if necessary until an element becomes available.- Specified by:
- checkoutRobotServicein interface- TapeRobotPool
- Returns:
- TapeRobotService
- Throws:
- InterruptedException
 
- 
checkoutRobotServicepublic TapeRobotService checkoutRobotService(long timeout, TimeUnit unit) throws InterruptedException Description copied from interface:TapeRobotPoolRetrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.- Specified by:
- checkoutRobotServicein interface- TapeRobotPool
- Returns:
- TapeRobotService
- Throws:
- InterruptedException
 
- 
checkoutDriveServiceDescription copied from interface:TapeDrivePoolRetrieves and removes the head of this pool, waiting if necessary until an element becomes available.- Specified by:
- checkoutDriveServicein interface- TapeDrivePool
- Returns:
- TapeDriveService
 
- 
pushRobotServiceDescription copied from interface:TapeRobotPoolReturn or add TapeRobotService to the pool- Specified by:
- pushRobotServicein interface- TapeRobotPool
- Throws:
- InterruptedException
 
- 
pushDriveServiceDescription copied from interface:TapeDrivePoolReturn or add TapeDriveService to the pool- Specified by:
- pushDriveServicein interface- TapeDrivePool
 
- 
drives- Specified by:
- drivesin interface- TapeDrivePool
 
- 
getLibraryIdentifier- Specified by:
- getLibraryIdentifierin interface- TapeRobotPool
 
 
-