thrownewPluginException("Allow only one filter element to be configed, ["+ConfigConstant.BLACKLIST_ELEMENT_NAME+"] or ["+ConfigConstant.WHITELIST_ELEMENT_NAME+"]");
thrownewDiscoveryException("Allow only one filter element to be configed, ["+ConfigConstant.BLACKLIST_ELEMENT_NAME+"] or ["+ConfigConstant.WHITELIST_ELEMENT_NAME+"]");
}
hostFilterEntity=newHostFilterEntity();
...
...
@@ -160,7 +160,7 @@ public class XmlConfigParser implements PluginConfigParser {
thrownewPluginException("Allow only one element["+ConfigConstant.COUNT_ELEMENT_NAME+"] to be configed");
thrownewDiscoveryException("Allow only one element["+ConfigConstant.COUNT_ELEMENT_NAME+"] to be configed");
}
countFilterEntity=newCountFilterEntity();
...
...
@@ -195,7 +195,7 @@ public class XmlConfigParser implements PluginConfigParser {
try{
globalValue=Integer.valueOf(globalFilterValue);
}catch(NumberFormatExceptione){
thrownewPluginException("Attribute["+ConfigConstant.FILTER_VALUE_ATTRIBUTE_NAME+"] value in element["+element.getName()+"] is invalid, must be int type",e);
thrownewDiscoveryException("Attribute["+ConfigConstant.FILTER_VALUE_ATTRIBUTE_NAME+"] value in element["+element.getName()+"] is invalid, must be int type",e);
}
countFilterEntity.setFilterValue(globalValue);
}
...
...
@@ -210,7 +210,7 @@ public class XmlConfigParser implements PluginConfigParser {
@@ -222,7 +222,7 @@ public class XmlConfigParser implements PluginConfigParser {
try{
value=Integer.valueOf(filterValue);
}catch(NumberFormatExceptione){
thrownewPluginException("Attribute["+ConfigConstant.FILTER_VALUE_ATTRIBUTE_NAME+"] value in element["+childElement.getName()+"] is invalid, must be int type",e);
thrownewDiscoveryException("Attribute["+ConfigConstant.FILTER_VALUE_ATTRIBUTE_NAME+"] value in element["+childElement.getName()+"] is invalid, must be int type",e);
}
}
}
...
...
@@ -239,7 +239,7 @@ public class XmlConfigParser implements PluginConfigParser {
@@ -120,7 +120,7 @@ public class PluginSubscriber {
LOG.info("Version has been updated, new version is {}",dynamicVersion);
}else{
thrownewPluginException("Version updating will be ignored, because input localVersion="+localVersion+", current localVersion="+pluginAdapter.getLocalVersion());
thrownewDiscoveryException("Version updating will be ignored, because input localVersion="+localVersion+", current localVersion="+pluginAdapter.getLocalVersion());
}
}
}
...
...
@@ -137,7 +137,7 @@ public class PluginSubscriber {
LOG.info("Version clearing has been triggered");
if(versionClearedEvent==null){
thrownewPluginException("VersionClearedEvent can't be null");
thrownewDiscoveryException("VersionClearedEvent can't be null");
@@ -156,7 +156,7 @@ public class PluginSubscriber {
LOG.info("Version has been cleared");
}else{
thrownewPluginException("Version clearing will be ignored, because input localVersion="+localVersion+", current localVersion="+pluginAdapter.getLocalVersion());
thrownewDiscoveryException("Version clearing will be ignored, because input localVersion="+localVersion+", current localVersion="+pluginAdapter.getLocalVersion());