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.String
getDevice()
int
getDriveCount()
java.util.List<TapeDrive>
getDrives()
java.lang.Object
getEntity()
<T> T
getEntity(java.lang.Class<T> entityType)
int
getMailBoxCount()
java.util.List<TapeSlot>
getSlots()
int
getSlotsCount()
boolean
hasEntity()
boolean
isOK()
boolean
isWarn()
void
setDevice(java.lang.String device)
void
setDriveCount(int driveCount)
void
setDrives(java.util.List<TapeDrive> drives)
void
setMailBoxCount(int mailBoxCount)
void
setSlots(java.util.List<TapeSlot> slots)
void
setSlotsCount(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:
getDevice
in interfaceTapeLibrarySpec
-
setDevice
public void setDevice(java.lang.String device)
-
getDriveCount
public int getDriveCount()
- Specified by:
getDriveCount
in interfaceTapeLibrarySpec
-
setDriveCount
public void setDriveCount(int driveCount)
-
getSlotsCount
public int getSlotsCount()
- Specified by:
getSlotsCount
in interfaceTapeLibrarySpec
-
setSlotsCount
public void setSlotsCount(int slotsCount)
-
getMailBoxCount
public int getMailBoxCount()
- Specified by:
getMailBoxCount
in interfaceTapeLibrarySpec
-
setMailBoxCount
public void setMailBoxCount(int mailBoxCount)
-
getDrives
public java.util.List<TapeDrive> getDrives()
- Specified by:
getDrives
in interfaceTapeLibrarySpec
-
setDrives
public void setDrives(java.util.List<TapeDrive> drives)
-
getSlots
public java.util.List<TapeSlot> getSlots()
- Specified by:
getSlots
in interfaceTapeLibrarySpec
-
setSlots
public void setSlots(java.util.List<TapeSlot> slots)
-
isOK
public boolean isOK()
- Specified by:
isOK
in interfaceTapeLibrarySpec
- Overrides:
isOK
in classTapeResponse
-
isWarn
public boolean isWarn()
- Specified by:
isWarn
in interfaceTapeLibrarySpec
- Overrides:
isWarn
in classTapeResponse
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfaceTapeLibrarySpec
- Overrides:
getEntity
in classTapeResponse
-
getEntity
public <T> T getEntity(java.lang.Class<T> entityType)
- Specified by:
getEntity
in interfaceTapeLibrarySpec
- Overrides:
getEntity
in classTapeResponse
-
hasEntity
public boolean hasEntity()
- Specified by:
hasEntity
in interfaceTapeLibrarySpec
- Overrides:
hasEntity
in classTapeResponse
-
-