Class TapeLibraryState
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.dto.TapeResponse
-
- fr.gouv.vitam.storage.offers.tape.dto.TapeLibraryState
-
- All Implemented Interfaces:
TapeLibrarySpec
public class TapeLibraryState extends TapeResponse implements TapeLibrarySpec
-
-
Constructor Summary
Constructors Constructor Description TapeLibraryState(StatusCode status)TapeLibraryState(java.lang.Object entity, StatusCode status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TapeDrive>addToDrives(TapeDrive tapeDrive)java.util.List<TapeSlot>addToSlots(TapeSlot tapeSlot)java.lang.StringgetDevice()intgetDriveCount()java.util.List<TapeDrive>getDrives()java.lang.ObjectgetEntity()<T> TgetEntity(java.lang.Class<T> entityType)intgetMailBoxCount()java.util.List<TapeSlot>getSlots()intgetSlotsCount()booleanhasEntity()booleanisOK()booleanisWarn()voidsetDevice(java.lang.String device)voidsetDriveCount(int driveCount)voidsetDrives(java.util.List<TapeDrive> drives)voidsetMailBoxCount(int mailBoxCount)voidsetSlots(java.util.List<TapeSlot> slots)voidsetSlotsCount(int slotsCount)-
Methods inherited from class fr.gouv.vitam.storage.offers.tape.dto.TapeResponse
getErrorCode, getStatus, setEntity, setStatus
-
-
-
-
Constructor Detail
-
TapeLibraryState
public TapeLibraryState(StatusCode status)
-
TapeLibraryState
public TapeLibraryState(java.lang.Object entity, StatusCode status)
-
-
Method Detail
-
getDevice
public java.lang.String getDevice()
- Specified by:
getDevicein interfaceTapeLibrarySpec
-
setDevice
public void setDevice(java.lang.String device)
-
getDriveCount
public int getDriveCount()
- Specified by:
getDriveCountin interfaceTapeLibrarySpec
-
setDriveCount
public void setDriveCount(int driveCount)
-
getSlotsCount
public int getSlotsCount()
- Specified by:
getSlotsCountin interfaceTapeLibrarySpec
-
setSlotsCount
public void setSlotsCount(int slotsCount)
-
getMailBoxCount
public int getMailBoxCount()
- Specified by:
getMailBoxCountin interfaceTapeLibrarySpec
-
setMailBoxCount
public void setMailBoxCount(int mailBoxCount)
-
getDrives
public java.util.List<TapeDrive> getDrives()
- Specified by:
getDrivesin interfaceTapeLibrarySpec
-
setDrives
public void setDrives(java.util.List<TapeDrive> drives)
-
getSlots
public java.util.List<TapeSlot> getSlots()
- Specified by:
getSlotsin interfaceTapeLibrarySpec
-
setSlots
public void setSlots(java.util.List<TapeSlot> slots)
-
isOK
public boolean isOK()
- Specified by:
isOKin interfaceTapeLibrarySpec- Overrides:
isOKin classTapeResponse
-
isWarn
public boolean isWarn()
- Specified by:
isWarnin interfaceTapeLibrarySpec- Overrides:
isWarnin classTapeResponse
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntityin interfaceTapeLibrarySpec- Overrides:
getEntityin classTapeResponse
-
getEntity
public <T> T getEntity(java.lang.Class<T> entityType)
- Specified by:
getEntityin interfaceTapeLibrarySpec- Overrides:
getEntityin classTapeResponse
-
hasEntity
public boolean hasEntity()
- Specified by:
hasEntityin interfaceTapeLibrarySpec- Overrides:
hasEntityin classTapeResponse
-
-