Class HarvesterChannels
- java.lang.Object
-
- dk.netarkivet.harvester.distribute.HarvesterChannels
-
public class HarvesterChannels extends Object
This singleton class is in charge of giving out the correct channels.
-
-
Constructor Summary
Constructors Constructor Description HarvesterChannels()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChannelID
getHarvesterRegistrationRequestChannel()
Return the queue for sendingHarvesterRegistrationRequest
s.static ChannelID
getHarvesterRegistrationResponseChannel()
Return the queue for sendingHarvesterRegistrationResponse
s.static ChannelID
getHarvesterStatusChannel()
static ChannelID
getHarvestJobChannelId(HarvestChannel harvestChannel)
Returns the queue which is used by the scheduler to send doOneCrawl to Harvest Controllers listening on the given harvest channel.static ChannelID
getHarvestJobChannelId(String harvestChannelName, boolean isSnapshot)
Returns the queue which is used by the scheduler to send doOneCrawl to Harvest Controllers listening on the given harvest channel.static ChannelID
getHarvestMonitorChannel()
Return the queue for the harvest monitor registry.static ChannelID
getTheSched()
-
-
-
Field Detail
-
THE_SCHED
public final ChannelID THE_SCHED
-
-
Method Detail
-
getTheSched
public static ChannelID getTheSched()
- Returns:
- the
ChannelID
for the queue on which HarvestControllers send harvest status messages
-
getHarvestMonitorChannel
public static ChannelID getHarvestMonitorChannel()
Return the queue for the harvest monitor registry.- Returns:
- the
ChannelID
object for the queue.
-
getHarvesterStatusChannel
public static ChannelID getHarvesterStatusChannel()
- Returns:
- the
ChannelID
object for the topic used by the harvesters to call in ready for new jobs.
-
getHarvesterRegistrationRequestChannel
public static ChannelID getHarvesterRegistrationRequestChannel()
Return the queue for sendingHarvesterRegistrationRequest
s.- Returns:
- the
ChannelID
object for the queue.
-
getHarvesterRegistrationResponseChannel
public static ChannelID getHarvesterRegistrationResponseChannel()
Return the queue for sendingHarvesterRegistrationResponse
s.- Returns:
- the
ChannelID
object for the queue.
-
getHarvestJobChannelId
public static ChannelID getHarvestJobChannelId(HarvestChannel harvestChannel)
Returns the queue which is used by the scheduler to send doOneCrawl to Harvest Controllers listening on the given harvest channel.- Parameters:
harvestChannel
-- Returns:
- That channel (queue)
-
getHarvestJobChannelId
public static ChannelID getHarvestJobChannelId(String harvestChannelName, boolean isSnapshot)
Returns the queue which is used by the scheduler to send doOneCrawl to Harvest Controllers listening on the given harvest channel.- Parameters:
harvestChannelName
-isSnapshot
-- Returns:
- That channel (queue)
-
-