public interface DistributionQueue
DistributionPackage
s
exported by a DistributionAgent
in
order to be able to process them also when there are multiple (concurrent)
DistributionRequest
s executed
on that same agent.
The items (packages) in the queue can then get processed according to a FIFO
strategy or in parallel, or some other way, via DistributionQueueProcessor
s.Modifier and Type | Method and Description |
---|---|
DistributionQueueEntry |
add(DistributionQueueItem item)
add a distribution item to this queue
|
DistributionQueueEntry |
getHead()
get the first item (in a FIFO strategy, the next to be processed) from the queue
|
DistributionQueueEntry |
getItem(String itemId)
gets an item from the queue by specifying its id
|
Iterable<DistributionQueueEntry> |
getItems(int skip,
int limit)
get all the items in the queue
|
String |
getName()
get this queue name
|
DistributionQueueStatus |
getStatus()
returns the status of the queue
|
DistributionQueueEntry |
remove(String itemId)
remove an item from the queue by specifying its id
|
DistributionQueueEntry add(@Nonnull DistributionQueueItem item)
item
- a distribution item, typically representing a DistributionPackage
to distributenoll
if none is created@CheckForNull DistributionQueueEntry getHead()
null
if the queue is empty@Nonnull Iterable<DistributionQueueEntry> getItems(int skip, int limit)
skip
- the number of items to skiplimit
- the maximum number of items to return. use -1 to return all items.Iterable
of DistributionQueueItem
s@CheckForNull DistributionQueueEntry getItem(@Nonnull String itemId)
itemId
- the id of the itemnull
if the item with the given id
doesn't exist@CheckForNull DistributionQueueEntry remove(@Nonnull String itemId)
itemId
- the id the itemnull
if the item with the given id
doesn't exist@Nonnull DistributionQueueStatus getStatus()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.