Interface TapeDrivePool
-
- All Known Subinterfaces:
TapeLibraryPool
- All Known Implementing Classes:
TapeLibraryPoolImpl
public interface TapeDrivePool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TapeDriveServicecheckoutDriveService(java.lang.Integer driveIndex)Retrieves and removes the head of this pool, waiting if necessary until an element becomes available.java.util.Set<java.util.Map.Entry<java.lang.Integer,TapeDriveService>>drives()voidpushDriveService(TapeDriveService tapeDriveService)Return or add TapeDriveService to the pool
-
-
-
Method Detail
-
checkoutDriveService
TapeDriveService checkoutDriveService(java.lang.Integer driveIndex) throws java.lang.InterruptedException
Retrieves and removes the head of this pool, waiting if necessary until an element becomes available.- Returns:
- TapeDriveService
- Throws:
java.lang.InterruptedException
-
pushDriveService
void pushDriveService(TapeDriveService tapeDriveService) throws java.lang.InterruptedException
Return or add TapeDriveService to the pool- Parameters:
tapeDriveService-- Throws:
java.lang.InterruptedException
-
drives
java.util.Set<java.util.Map.Entry<java.lang.Integer,TapeDriveService>> drives()
-
-