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, setStatus
public TapeLibraryState(StatusCode status)
public TapeLibraryState(Object entity, StatusCode status)
public String getDevice()
getDevice
in interface TapeLibrarySpec
public void setDevice(String device)
public int getDriveCount()
getDriveCount
in interface TapeLibrarySpec
public void setDriveCount(int driveCount)
public int getSlotsCount()
getSlotsCount
in interface TapeLibrarySpec
public void setSlotsCount(int slotsCount)
public int getMailBoxCount()
getMailBoxCount
in interface TapeLibrarySpec
public void setMailBoxCount(int mailBoxCount)
public List<TapeDrive> getDrives()
getDrives
in interface TapeLibrarySpec
public List<TapeSlot> getSlots()
getSlots
in interface TapeLibrarySpec
public boolean isOK()
isOK
in interface TapeLibrarySpec
isOK
in class TapeResponse
public boolean isWarn()
isWarn
in interface TapeLibrarySpec
isWarn
in class TapeResponse
public Object getEntity()
getEntity
in interface TapeLibrarySpec
getEntity
in class TapeResponse
public <T> T getEntity(Class<T> entityType)
getEntity
in interface TapeLibrarySpec
getEntity
in class TapeResponse
public boolean hasEntity()
hasEntity
in interface TapeLibrarySpec
hasEntity
in class TapeResponse
Copyright © 2019 Vitam. All rights reserved.