feat: support xxl-job executor NettyHandler (#30)

Only support jdk8, in jdk11 or jdk17 env, you should use file write and use urlClassLoader to load injectorClass or else.
This commit is contained in:
ReaJason
2025-01-22 18:36:19 +08:00
parent d4067caee5
commit ca4c1d6e4b
51 changed files with 1042 additions and 335 deletions
+6 -2
View File
@@ -23,6 +23,7 @@ export function PackageConfigCard({
const [options, setOptions] = useState<Array<Option>>([]);
const shellType = form.watch("shellType");
const server = form.watch("server");
const { t } = useTranslation();
useEffect(() => {
@@ -33,7 +34,10 @@ export function PackageConfigCard({
if (shellType.startsWith("Agent")) {
return name.startsWith("Agent");
}
return !name.startsWith("Agent");
if (server.startsWith("XXL")) {
return !name.startsWith("Agent");
}
return !name.startsWith("Agent") && !name.toLowerCase().startsWith("xxl");
});
setOptions(
filteredOptions.map((name) => {
@@ -46,7 +50,7 @@ export function PackageConfigCard({
if (filteredOptions.length > 0) {
form.setValue("packingMethod", filteredOptions[0]);
}
}, [form, packerConfig, shellType, t]);
}, [form, packerConfig, server, shellType, t]);
return (
<Card className="w-full">