public class TapeLibraryState extends TapeResponse implements TapeLibrarySpec
| Constructor and Description |
|---|
TapeLibraryState(Object entity,
StatusCode status) |
TapeLibraryState(StatusCode status) |
| Modifier and Type | Method and Description |
|---|---|
List<TapeDrive> |
addToDrives(TapeDrive tapeDrive) |
List<TapeSlot> |
addToSlots(TapeSlot tapeSlot) |
String |
getDevice() |
int |
getDriveCount() |
List<TapeDrive> |
getDrives() |
Object |
getEntity() |
<T> T |
getEntity(Class<T> entityType) |
int |
getMailBoxCount() |
List<TapeSlot> |
getSlots() |
int |
getSlotsCount() |
boolean |
hasEntity() |
boolean |
isOK() |
boolean |
isWarn() |
void |
setDevice(String device) |
void |
setDriveCount(int driveCount) |
void |
setDrives(List<TapeDrive> drives) |
void |
setMailBoxCount(int mailBoxCount) |
void |
setSlots(List<TapeSlot> slots) |
void |
setSlotsCount(int slotsCount) |
getErrorCode, getStatus, setEntity, setStatuspublic TapeLibraryState(StatusCode status)
public TapeLibraryState(Object entity, StatusCode status)
public String getDevice()
getDevice in interface TapeLibrarySpecpublic void setDevice(String device)
public int getDriveCount()
getDriveCount in interface TapeLibrarySpecpublic void setDriveCount(int driveCount)
public int getSlotsCount()
getSlotsCount in interface TapeLibrarySpecpublic void setSlotsCount(int slotsCount)
public int getMailBoxCount()
getMailBoxCount in interface TapeLibrarySpecpublic void setMailBoxCount(int mailBoxCount)
public List<TapeDrive> getDrives()
getDrives in interface TapeLibrarySpecpublic List<TapeSlot> getSlots()
getSlots in interface TapeLibrarySpecpublic boolean isOK()
isOK in interface TapeLibrarySpecisOK in class TapeResponsepublic boolean isWarn()
isWarn in interface TapeLibrarySpecisWarn in class TapeResponsepublic Object getEntity()
getEntity in interface TapeLibrarySpecgetEntity in class TapeResponsepublic <T> T getEntity(Class<T> entityType)
getEntity in interface TapeLibrarySpecgetEntity in class TapeResponsepublic boolean hasEntity()
hasEntity in interface TapeLibrarySpechasEntity in class TapeResponseCopyright © 2019 Vitam. All rights reserved.