public class BotManagerImpl extends java.lang.Object implements BotManager
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
BotManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBot(Bot bot) |
protected java.util.Map<java.net.URI,Bot> |
getBotByUri() |
Bot |
getBotForNeedURI(java.net.URI needUri) |
protected java.util.List<Bot> |
getBots() |
java.util.List<Bot> |
getBotsForNodeURI(java.net.URI wonNodeUri) |
protected java.lang.Object |
getMonitor() |
protected void |
initializeBotIfNecessary(Bot bot) |
boolean |
isWorkDone()
Indicates if all managed bots' work is done.
|
void |
setBots(java.util.Collection<Bot> bots)
Drops all registered bots and uses the specified ones.
|
public Bot getBotForNeedURI(java.net.URI needUri)
getBotForNeedURI in interface BotManagerpublic java.util.List<Bot> getBotsForNodeURI(java.net.URI wonNodeUri)
getBotsForNodeURI in interface BotManagerpublic void addBot(Bot bot)
addBot in interface BotManagerpublic void setBots(java.util.Collection<Bot> bots)
BotManagersetBots in interface BotManagerpublic boolean isWorkDone()
BotManagerisWorkDone in interface BotManagerprotected void initializeBotIfNecessary(Bot bot)
protected java.lang.Object getMonitor()
protected java.util.List<Bot> getBots()
protected java.util.Map<java.net.URI,Bot> getBotByUri()
Copyright © 2018. All Rights Reserved.