Package org.killbill.billing.util.nodes
Interface KillbillNodesApi
-
- All Superinterfaces:
KillbillApi
public interface KillbillNodesApi extends KillbillApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeInfogetCurrentNodeInfo()Iterable<NodeInfo>getNodesInfo()Each killbill instance registers its current state (versions, plugins) when it starts or when changes occur in the system.voidnotifyPluginChanged(PluginInfo plugin, Iterable<PluginInfo> latestPlugins)The api is used to notify core killbill system about changes in the plugins (new installed plugin, started, stopped, ...)voidtriggerNodeCommand(NodeCommand nodeCommand, boolean localNodeOnly)The api will trigger a command that will be issued on all active cluster nodes
-
-
-
Method Detail
-
getNodesInfo
Iterable<NodeInfo> getNodesInfo()
Each killbill instance registers its current state (versions, plugins) when it starts or when changes occur in the system. The api will return that information across all nodes.- Returns:
- the list
NodeInfo
-
getCurrentNodeInfo
NodeInfo getCurrentNodeInfo()
- Returns:
- the current
NodeInfo
-
triggerNodeCommand
void triggerNodeCommand(NodeCommand nodeCommand, boolean localNodeOnly)
The api will trigger a command that will be issued on all active cluster nodes- Parameters:
nodeCommand- the command to be triggered across all killbill nodeslocalNodeOnly- the command should only triggered on the node where it applied
-
notifyPluginChanged
void notifyPluginChanged(PluginInfo plugin, Iterable<PluginInfo> latestPlugins)
The api is used to notify core killbill system about changes in the plugins (new installed plugin, started, stopped, ...)- Parameters:
plugin- the info associated to the changed pluginlatestPlugins- the info associated to all plugins
-
-