*General*

- AccountInfo: added missing wrapper function for setMultiHostSupportV2

git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49861 ebf7c1c2-ba36-0410-9fe8-c592906822b4

Former-commit-id: df4bdd519ac13fc7161d21b05de7d64bd8c443dd
This commit is contained in:
psp 2024-09-25 12:29:26 +00:00
parent c8d4b2278e
commit 3fac96827f

View File

@ -350,13 +350,13 @@ public class AccountInfo extends Property implements AccountTrafficView {
* @param multiHostPlugin
* @since JD2
*/
public List<String> setMultiHostSupport(final PluginForHost multiHostPlugin, final List<String> multiHostSupport) {
public List<String> setMultiHostSupport(final PluginForHost multiHostPlugin, final List<String> multiHostSupportListStr) {
if (multiHostPlugin != null && multiHostPlugin.getLogger() != null) {
return setMultiHostSupport(multiHostPlugin, multiHostSupport, new PluginFinder(LogController.TRASH));
return setMultiHostSupport(multiHostPlugin, multiHostSupportListStr, new PluginFinder(LogController.TRASH));
} else {
final LogSource logSource = LogController.getFastPluginLogger(Thread.currentThread().getName());
try {
return setMultiHostSupport(multiHostPlugin, multiHostSupport, new PluginFinder(logSource));
return setMultiHostSupport(multiHostPlugin, multiHostSupportListStr, new PluginFinder(logSource));
} finally {
logSource.close();
}
@ -379,6 +379,19 @@ public class AccountInfo extends Property implements AccountTrafficView {
return setMultiHostSupportV2(multiHostPlugin, mhosts, pluginFinder);
}
public List<String> setMultiHostSupportV2(final PluginForHost multiHostPlugin, final List<MultiHostHost> multiHostSupportList) {
if (multiHostPlugin != null && multiHostPlugin.getLogger() != null) {
return setMultiHostSupportV2(multiHostPlugin, multiHostSupportList, new PluginFinder(LogController.TRASH));
} else {
final LogSource logSource = LogController.getFastPluginLogger(Thread.currentThread().getName());
try {
return setMultiHostSupportV2(multiHostPlugin, multiHostSupportList, new PluginFinder(logSource));
} finally {
logSource.close();
}
}
}
public List<String> setMultiHostSupportV2(final PluginForHost multiHostPlugin, final List<MultiHostHost> multiHostSupportList, final PluginFinder pluginFinder) {
if (multiHostSupportList == null || multiHostSupportList.size() == 0) {
this.removeProperty(PROPERTY_MULTIHOST_SUPPORT);