moved log statements
This commit is contained in:
parent
1037d071bf
commit
7d3b78c293
|
@ -95,14 +95,18 @@ public class PercolatorQueriesRegistry extends AbstractIndexShardComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
void enableRealTimePercolator() {
|
void enableRealTimePercolator() {
|
||||||
|
logger.trace("trying to enable realtime percolation for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
||||||
if (!realTimePercolatorEnabled) {
|
if (!realTimePercolatorEnabled) {
|
||||||
|
logger.debug("enabling realtime percolating for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
||||||
indexingService.addListener(realTimePercolatorOperationListener);
|
indexingService.addListener(realTimePercolatorOperationListener);
|
||||||
realTimePercolatorEnabled = true;
|
realTimePercolatorEnabled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void disableRealTimePercolator() {
|
void disableRealTimePercolator() {
|
||||||
|
logger.trace("trying to disable realtime percolation for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
||||||
if (realTimePercolatorEnabled) {
|
if (realTimePercolatorEnabled) {
|
||||||
|
logger.debug("disabling realtime percolating for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
||||||
indexingService.removeListener(realTimePercolatorOperationListener);
|
indexingService.removeListener(realTimePercolatorOperationListener);
|
||||||
realTimePercolatorEnabled = false;
|
realTimePercolatorEnabled = false;
|
||||||
}
|
}
|
||||||
|
@ -194,18 +198,14 @@ public class PercolatorQueriesRegistry extends AbstractIndexShardComponent {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void created(String type) {
|
public void created(String type) {
|
||||||
logger.trace("invoking created type listener for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
|
||||||
if (PercolatorService.TYPE_NAME.equals(type)) {
|
if (PercolatorService.TYPE_NAME.equals(type)) {
|
||||||
logger.debug("enabling realtime percolating for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
|
||||||
enableRealTimePercolator();
|
enableRealTimePercolator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removed(String type) {
|
public void removed(String type) {
|
||||||
logger.trace("invoking removed type listener for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
|
||||||
if (PercolatorService.TYPE_NAME.equals(type)) {
|
if (PercolatorService.TYPE_NAME.equals(type)) {
|
||||||
logger.debug("disabling realtime percolating for index [{}] and shard[{}] on node[{}]", shardId.index(), shardId.id(), nodeName());
|
|
||||||
disableRealTimePercolator();
|
disableRealTimePercolator();
|
||||||
clear();
|
clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue