Class TransferJobPriorityManager
- java.lang.Object
-
- unlimited.fc.client.api.multiclient.transferJob.TransferJobPriorityManager
-
- All Implemented Interfaces:
PriorityMgrIfc
public class TransferJobPriorityManager extends java.lang.Object implements PriorityMgrIfc
Manager class that is used to manage the priority of current TransferJobs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTransferJobPriorityManager.BumperFunctional Interface that provides classes with the ability to return a file bumper
-
Constructor Summary
Constructors Constructor Description TransferJobPriorityManager(TransferJobPriorityManager.Bumper bumper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TransferJob job)Adds the TransferJob into the systembooleanbumpPriority(java.lang.String path)Bumps the priority of a given filevoidclear()Clears all existing data from the priority managervoidremove(TransferJob job)Removes the transfer job from the implementationjava.util.List<unlimited.core.util.common.tuples.Pair<java.lang.String,TransferJobPriority>>search(java.lang.String filter, int limit)Searches through the PriorityManager list and returns the files and priorities that match the requestvoidswap(TransferJob from, TransferJob to)Swaps the details of two TransferJobs
-
-
-
Constructor Detail
-
TransferJobPriorityManager
public TransferJobPriorityManager(TransferJobPriorityManager.Bumper bumper)
-
-
Method Detail
-
add
public void add(TransferJob job)
Description copied from interface:PriorityMgrIfcAdds the TransferJob into the system- Specified by:
addin interfacePriorityMgrIfc
-
remove
public void remove(TransferJob job)
Description copied from interface:PriorityMgrIfcRemoves the transfer job from the implementation- Specified by:
removein interfacePriorityMgrIfc
-
clear
public void clear()
Description copied from interface:PriorityMgrIfcClears all existing data from the priority manager- Specified by:
clearin interfacePriorityMgrIfc
-
bumpPriority
public boolean bumpPriority(java.lang.String path)
Description copied from interface:PriorityMgrIfcBumps the priority of a given file- Specified by:
bumpPriorityin interfacePriorityMgrIfc- Returns:
-
search
public java.util.List<unlimited.core.util.common.tuples.Pair<java.lang.String,TransferJobPriority>> search(java.lang.String filter, int limit)
Description copied from interface:PriorityMgrIfcSearches through the PriorityManager list and returns the files and priorities that match the request- Specified by:
searchin interfacePriorityMgrIfc- Parameters:
filter- Filter to search bylimit- Limit for the files to return- Returns:
-
swap
public void swap(TransferJob from, TransferJob to)
Description copied from interface:PriorityMgrIfcSwaps the details of two TransferJobs- Specified by:
swapin interfacePriorityMgrIfc
-
-