public final class Share
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Share.ShufflePriority
different factors that have priority when moving a data set to the share.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO> |
DATA_SET_SIZE_COMPARATOR |
Constructor and Description |
---|
Share(java.io.File share,
int speed,
ch.systemsx.cisd.common.filesystem.IFreeSpaceProvider freeSpaceProvider) |
Share(ch.systemsx.cisd.openbis.dss.generic.shared.utils.SharesHolder sharesHolderOrNull,
java.io.File share,
int speed,
ch.systemsx.cisd.common.filesystem.IFreeSpaceProvider freeSpaceProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addDataSet(ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO dataSet) |
long |
calculateFreeSpace()
Calculates the actual free space (in bytes) of the hard disk on which this share resides.
|
java.util.List<ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO> |
getDataSetsOrderedBySize()
Returns all data sets of this shared ordered by size starting with the largest data set.
|
java.util.Set<java.lang.String> |
getExperimentIdentifiers()
Returns the set of experiment identifier or an empty set if undefined.
|
java.io.File |
getShare()
Returns the root directory of this share.
|
java.lang.String |
getShareId()
Returns the share Id of this share.
|
Share.ShufflePriority |
getShufflePriority() |
int |
getSpeed()
Returns the speed of this share.
|
long |
getTotalSizeOfDataSets()
Returns the total size (in bytes) of all data sets.
|
boolean |
isIgnoredForShuffling() |
boolean |
isIncoming()
Returns
true if this is an incoming share. |
boolean |
isWithdrawShare() |
void |
setExperimentIdentifiers(java.util.Set<java.lang.String> experimentIdentifiers) |
void |
setIgnoredForShuffling(boolean ignoredForShuffling) |
void |
setIncoming(boolean incoming) |
void |
setShufflePriority(Share.ShufflePriority shufflePriority) |
void |
setWithdrawShare(boolean withdrawShare) |
public static final java.util.Comparator<ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO> DATA_SET_SIZE_COMPARATOR
public Share(java.io.File share, int speed, ch.systemsx.cisd.common.filesystem.IFreeSpaceProvider freeSpaceProvider)
public Share(ch.systemsx.cisd.openbis.dss.generic.shared.utils.SharesHolder sharesHolderOrNull, java.io.File share, int speed, ch.systemsx.cisd.common.filesystem.IFreeSpaceProvider freeSpaceProvider)
public java.util.Set<java.lang.String> getExperimentIdentifiers()
public void setExperimentIdentifiers(java.util.Set<java.lang.String> experimentIdentifiers)
public java.lang.String getShareId()
public int getSpeed()
public void setIncoming(boolean incoming)
public boolean isIncoming()
true
if this is an incoming share.public java.io.File getShare()
public long calculateFreeSpace()
public void addDataSet(ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO dataSet)
public java.util.List<ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO> getDataSetsOrderedBySize()
public long getTotalSizeOfDataSets()
public Share.ShufflePriority getShufflePriority()
public void setShufflePriority(Share.ShufflePriority shufflePriority)
public boolean isWithdrawShare()
public void setWithdrawShare(boolean withdrawShare)
public boolean isIgnoredForShuffling()
public void setIgnoredForShuffling(boolean ignoredForShuffling)