Class TapeDriveState
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.dto.TapeResponse
-
- fr.gouv.vitam.storage.offers.tape.dto.TapeDriveState
-
- All Implemented Interfaces:
TapeDriveSpec
public class TapeDriveState extends TapeResponse implements TapeDriveSpec
-
-
Constructor Summary
Constructors Constructor Description TapeDriveState(StatusCode status)
TapeDriveState(java.lang.Object entity, StatusCode status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TapeDriveStatus>
addToDriveStatuses(TapeDriveStatus driveStatus)
java.lang.Integer
getBlockNumber()
java.lang.String
getCartridge()
java.lang.String
getDensityCode()
java.lang.String
getDescription()
java.util.List<TapeDriveStatus>
getDriveStatuses()
java.lang.Object
getEntity()
<T> T
getEntity(java.lang.Class<T> entityType)
java.lang.Integer
getErrorCountSinceLastStatus()
java.lang.Integer
getFileNumber()
java.lang.Integer
getPartition()
java.lang.String
getStatusBits()
java.lang.Long
getTapeBlockSize()
boolean
hasEntity()
boolean
isOK()
boolean
isWarn()
void
setBlockNumber(java.lang.Integer blockNumber)
void
setCartridge(java.lang.String cartridge)
void
setDensityCode(java.lang.String densityCode)
void
setDescription(java.lang.String description)
void
setDriveStatuses(java.util.List<TapeDriveStatus> driveStatuses)
void
setErrorCountSinceLastStatus(java.lang.Integer errorCountSinceLastStatus)
void
setFileNumber(java.lang.Integer fileNumber)
void
setPartition(java.lang.Integer partition)
void
setStatusBits(java.lang.String statusBits)
void
setTapeBlockSize(java.lang.Long tapeBlockSize)
-
Methods inherited from class fr.gouv.vitam.storage.offers.tape.dto.TapeResponse
getErrorCode, getStatus, setEntity, setStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.gouv.vitam.storage.offers.tape.dto.TapeDriveSpec
driveHasTape, hasDensity, isBeginOfTape, isCacheEnabled, isEmptyDrive, isEndOfData, isEndOfFile, isEndOfTape, isSetMark, isWormTape, needCleanDrive
-
-
-
-
Constructor Detail
-
TapeDriveState
public TapeDriveState(StatusCode status)
-
TapeDriveState
public TapeDriveState(java.lang.Object entity, StatusCode status)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceTapeDriveSpec
-
setDescription
public void setDescription(java.lang.String description)
-
getFileNumber
public java.lang.Integer getFileNumber()
- Specified by:
getFileNumber
in interfaceTapeDriveSpec
-
setFileNumber
public void setFileNumber(java.lang.Integer fileNumber)
-
getBlockNumber
public java.lang.Integer getBlockNumber()
-
setBlockNumber
public void setBlockNumber(java.lang.Integer blockNumber)
-
getPartition
public java.lang.Integer getPartition()
-
setPartition
public void setPartition(java.lang.Integer partition)
-
getTapeBlockSize
public java.lang.Long getTapeBlockSize()
-
setTapeBlockSize
public void setTapeBlockSize(java.lang.Long tapeBlockSize)
-
getDensityCode
public java.lang.String getDensityCode()
-
setDensityCode
public void setDensityCode(java.lang.String densityCode)
-
getCartridge
public java.lang.String getCartridge()
- Specified by:
getCartridge
in interfaceTapeDriveSpec
-
setCartridge
public void setCartridge(java.lang.String cartridge)
-
getErrorCountSinceLastStatus
public java.lang.Integer getErrorCountSinceLastStatus()
- Specified by:
getErrorCountSinceLastStatus
in interfaceTapeDriveSpec
-
setErrorCountSinceLastStatus
public void setErrorCountSinceLastStatus(java.lang.Integer errorCountSinceLastStatus)
-
getStatusBits
public java.lang.String getStatusBits()
-
setStatusBits
public void setStatusBits(java.lang.String statusBits)
-
getDriveStatuses
public java.util.List<TapeDriveStatus> getDriveStatuses()
- Specified by:
getDriveStatuses
in interfaceTapeDriveSpec
-
isOK
public boolean isOK()
- Specified by:
isOK
in interfaceTapeDriveSpec
- Overrides:
isOK
in classTapeResponse
-
isWarn
public boolean isWarn()
- Specified by:
isWarn
in interfaceTapeDriveSpec
- Overrides:
isWarn
in classTapeResponse
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfaceTapeDriveSpec
- Overrides:
getEntity
in classTapeResponse
-
getEntity
public <T> T getEntity(java.lang.Class<T> entityType)
- Specified by:
getEntity
in interfaceTapeDriveSpec
- Overrides:
getEntity
in classTapeResponse
-
hasEntity
public boolean hasEntity()
- Specified by:
hasEntity
in interfaceTapeDriveSpec
- Overrides:
hasEntity
in classTapeResponse
-
setDriveStatuses
public void setDriveStatuses(java.util.List<TapeDriveStatus> driveStatuses)
-
addToDriveStatuses
public java.util.List<TapeDriveStatus> addToDriveStatuses(TapeDriveStatus driveStatus)
-
-