Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
tool
/
xxl-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit feba4ea4
authored
Apr 05, 2026
by
xuxueli
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update doc
1 parent
eaaee768
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
48 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/base/LoginController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobCodeController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobGroupController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobInfoController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobLogController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobUserController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
xxl-job-admin/src/main/resources/i18n/message_en.properties
xxl-job-admin/src/main/resources/i18n/message_zh_CN.properties
xxl-job-admin/src/main/resources/i18n/message_zh_TC.properties
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/base/LoginController.java
View file @
feba4ea
...
...
@@ -59,13 +59,13 @@ public class LoginController {
// valid user、status
XxlJobUser
xxlJobUser
=
xxlJobUserMapper
.
loadByUserName
(
userName
);
if
(
xxlJobUser
==
null
)
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"login_param_
u
nvalid"
)
);
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"login_param_
i
nvalid"
)
);
}
// valid passowrd
String
passwordHash
=
Sha256Tool
.
sha256
(
password
);
if
(!
passwordHash
.
equals
(
xxlJobUser
.
getPassword
()))
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"login_param_
u
nvalid"
)
);
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"login_param_
i
nvalid"
)
);
}
// xxl-sso, do login
...
...
@@ -111,7 +111,7 @@ public class LoginController {
Response
<
LoginInfo
>
loginInfoResponse
=
XxlSsoHelper
.
loginCheckWithAttr
(
request
);
XxlJobUser
existUser
=
xxlJobUserMapper
.
loadByUserName
(
loginInfoResponse
.
getData
().
getUserName
());
if
(!
oldPasswordHash
.
equals
(
existUser
.
getPassword
()))
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"change_pwd_field_oldpwd"
)
+
I18nUtil
.
getString
(
"system_
u
nvalid"
));
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"change_pwd_field_oldpwd"
)
+
I18nUtil
.
getString
(
"system_
i
nvalid"
));
}
// write new
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobCodeController.java
View file @
feba4ea
...
...
@@ -44,7 +44,7 @@ public class JobCodeController {
List
<
XxlJobLogGlue
>
jobLogGlues
=
xxlJobLogGlueMapper
.
findByJobId
(
jobId
);
if
(
jobInfo
==
null
)
{
throw
new
RuntimeException
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
u
nvalid"
));
throw
new
RuntimeException
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
i
nvalid"
));
}
if
(
GlueTypeEnum
.
BEAN
==
GlueTypeEnum
.
match
(
jobInfo
.
getGlueType
()))
{
throw
new
RuntimeException
(
I18nUtil
.
getString
(
"jobinfo_glue_gluetype_unvalid"
));
...
...
@@ -80,7 +80,7 @@ public class JobCodeController {
}
XxlJobInfo
existsJobInfo
=
xxlJobInfoMapper
.
loadById
(
id
);
if
(
existsJobInfo
==
null
)
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
u
nvalid"
));
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
i
nvalid"
));
}
// valid jobGroup permission
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobGroupController.java
View file @
feba4ea
...
...
@@ -78,20 +78,20 @@ public class JobGroupController {
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobgroup_field_appname_length"
)
);
}
if
(
xxlJobGroup
.
getAppname
().
contains
(
">"
)
||
xxlJobGroup
.
getAppname
().
contains
(
"<"
))
{
return
Response
.
ofFail
(
"AppName"
+
I18nUtil
.
getString
(
"system_
u
nvalid"
)
);
return
Response
.
ofFail
(
"AppName"
+
I18nUtil
.
getString
(
"system_
i
nvalid"
)
);
}
if
(
StringTool
.
isBlank
(
xxlJobGroup
.
getTitle
()))
{
return
Response
.
ofFail
((
I18nUtil
.
getString
(
"system_please_input"
)
+
I18nUtil
.
getString
(
"jobgroup_field_title"
))
);
}
if
(
xxlJobGroup
.
getTitle
().
contains
(
">"
)
||
xxlJobGroup
.
getTitle
().
contains
(
"<"
))
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobgroup_field_title"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
)
);
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobgroup_field_title"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
)
);
}
if
(
xxlJobGroup
.
getAddressType
()!=
0
)
{
if
(
StringTool
.
isBlank
(
xxlJobGroup
.
getAddressList
()))
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobgroup_field_addressType_limit"
)
);
}
if
(
xxlJobGroup
.
getAddressList
().
contains
(
">"
)
||
xxlJobGroup
.
getAddressList
().
contains
(
"<"
))
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobgroup_field_registryList"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
)
);
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobgroup_field_registryList"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
)
);
}
String
[]
addresss
=
xxlJobGroup
.
getAddressList
().
split
(
","
);
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobInfoController.java
View file @
feba4ea
...
...
@@ -202,7 +202,7 @@ public class JobInfoController {
}
}
catch
(
Exception
e
)
{
logger
.
error
(
">>>>>>>>>>> nextTriggerTime error. scheduleType = {}, scheduleConf= {}, error:{} "
,
scheduleType
,
scheduleConf
,
e
.
getMessage
());
return
Response
.
ofFail
((
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
+
e
.
getMessage
());
return
Response
.
ofFail
((
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
+
e
.
getMessage
());
}
return
Response
.
ofSuccess
(
result
);
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobLogController.java
View file @
feba4ea
...
...
@@ -78,7 +78,7 @@ public class JobLogController {
// valid jobId
XxlJobInfo
jobInfo
=
xxlJobInfoMapper
.
loadById
(
jobId
);
if
(
jobInfo
==
null
)
{
throw
new
RuntimeException
(
I18nUtil
.
getString
(
"jobinfo_field_id"
)
+
I18nUtil
.
getString
(
"system_
u
nvalid"
));
throw
new
RuntimeException
(
I18nUtil
.
getString
(
"jobinfo_field_id"
)
+
I18nUtil
.
getString
(
"system_
i
nvalid"
));
}
// valid jobGroup
jobGroup
=
jobInfo
.
getJobGroup
();
...
...
@@ -184,7 +184,7 @@ public class JobLogController {
XxlJobLog
log
=
xxlJobLogMapper
.
load
(
id
);
XxlJobInfo
jobInfo
=
xxlJobInfoMapper
.
loadById
(
log
.
getJobId
());
if
(
jobInfo
==
null
)
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
u
nvalid"
));
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
i
nvalid"
));
}
if
(
XxlJobContext
.
HANDLE_CODE_SUCCESS
!=
log
.
getTriggerCode
())
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"joblog_kill_log_limit"
));
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobUserController.java
View file @
feba4ea
...
...
@@ -187,7 +187,7 @@ public class JobUserController {
Response<LoginInfo> loginInfoResponse = XxlSsoHelper.loginCheckWithAttr(request);
XxlJobUser existUser = xxlJobUserMapper.loadByUserName(loginInfoResponse.getData().getUserName());
if (!oldPasswordHash.equals(existUser.getPassword())) {
return Response.ofFail(I18nUtil.getString("change_pwd_field_oldpwd") + I18nUtil.getString("system_
u
nvalid"));
return Response.ofFail(I18nUtil.getString("change_pwd_field_oldpwd") + I18nUtil.getString("system_
i
nvalid"));
}
// write new
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
View file @
feba4ea
...
...
@@ -83,11 +83,11 @@ public class XxlJobServiceImpl implements XxlJobService {
// valid trigger
ScheduleTypeEnum
scheduleTypeEnum
=
ScheduleTypeEnum
.
match
(
jobInfo
.
getScheduleType
(),
null
);
if
(
scheduleTypeEnum
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
if
(
scheduleTypeEnum
==
ScheduleTypeEnum
.
CRON
)
{
if
(
jobInfo
.
getScheduleConf
()==
null
||
!
CronExpression
.
isValidExpression
(
jobInfo
.
getScheduleConf
()))
{
return
Response
.
ofFail
(
"Cron"
+
I18nUtil
.
getString
(
"system_
u
nvalid"
));
return
Response
.
ofFail
(
"Cron"
+
I18nUtil
.
getString
(
"system_
i
nvalid"
));
}
}
else
if
(
scheduleTypeEnum
==
ScheduleTypeEnum
.
FIX_RATE
/* || scheduleTypeEnum == ScheduleTypeEnum.FIX_DELAY*/
)
{
if
(
jobInfo
.
getScheduleConf
()
==
null
)
{
...
...
@@ -96,16 +96,16 @@ public class XxlJobServiceImpl implements XxlJobService {
try
{
int
fixSecond
=
Integer
.
parseInt
(
jobInfo
.
getScheduleConf
());
if
(
fixSecond
<
1
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
}
catch
(
Exception
e
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
}
// valid job
if
(
GlueTypeEnum
.
match
(
jobInfo
.
getGlueType
())
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_gluetype"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_gluetype"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
if
(
GlueTypeEnum
.
BEAN
==
GlueTypeEnum
.
match
(
jobInfo
.
getGlueType
())
&&
StringTool
.
isBlank
(
jobInfo
.
getExecutorHandler
())
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"system_please_input"
)+
"JobHandler"
)
);
...
...
@@ -117,13 +117,13 @@ public class XxlJobServiceImpl implements XxlJobService {
// valid advanced
if
(
ExecutorRouteStrategyEnum
.
match
(
jobInfo
.
getExecutorRouteStrategy
(),
null
)
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorRouteStrategy"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorRouteStrategy"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
if
(
MisfireStrategyEnum
.
match
(
jobInfo
.
getMisfireStrategy
(),
null
)
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"misfire_strategy"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"misfire_strategy"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
if
(
ExecutorBlockStrategyEnum
.
match
(
jobInfo
.
getExecutorBlockStrategy
(),
null
)
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorBlockStrategy"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorBlockStrategy"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
// 》ChildJobId valid
...
...
@@ -143,7 +143,7 @@ public class XxlJobServiceImpl implements XxlJobService {
}
}
else
{
return
Response
.
ofFail
(
MessageFormat
.
format
((
I18nUtil
.
getString
(
"jobinfo_field_childJobId"
)+
"({0})"
+
I18nUtil
.
getString
(
"system_
u
nvalid"
)),
childJobIdItem
));
MessageFormat
.
format
((
I18nUtil
.
getString
(
"jobinfo_field_childJobId"
)+
"({0})"
+
I18nUtil
.
getString
(
"system_
i
nvalid"
)),
childJobIdItem
));
}
}
...
...
@@ -189,35 +189,35 @@ public class XxlJobServiceImpl implements XxlJobService {
// valid trigger
ScheduleTypeEnum
scheduleTypeEnum
=
ScheduleTypeEnum
.
match
(
jobInfo
.
getScheduleType
(),
null
);
if
(
scheduleTypeEnum
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
if
(
scheduleTypeEnum
==
ScheduleTypeEnum
.
CRON
)
{
if
(
jobInfo
.
getScheduleConf
()==
null
||
!
CronExpression
.
isValidExpression
(
jobInfo
.
getScheduleConf
()))
{
return
Response
.
ofFail
(
"Cron"
+
I18nUtil
.
getString
(
"system_
u
nvalid"
)
);
return
Response
.
ofFail
(
"Cron"
+
I18nUtil
.
getString
(
"system_
i
nvalid"
)
);
}
}
else
if
(
scheduleTypeEnum
==
ScheduleTypeEnum
.
FIX_RATE
/*|| scheduleTypeEnum == ScheduleTypeEnum.FIX_DELAY*/
)
{
if
(
jobInfo
.
getScheduleConf
()
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
try
{
int
fixSecond
=
Integer
.
parseInt
(
jobInfo
.
getScheduleConf
());
if
(
fixSecond
<
1
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
}
catch
(
Exception
e
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
}
// valid advanced
if
(
ExecutorRouteStrategyEnum
.
match
(
jobInfo
.
getExecutorRouteStrategy
(),
null
)
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorRouteStrategy"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorRouteStrategy"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
if
(
MisfireStrategyEnum
.
match
(
jobInfo
.
getMisfireStrategy
(),
null
)
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"misfire_strategy"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"misfire_strategy"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
if
(
ExecutorBlockStrategyEnum
.
match
(
jobInfo
.
getExecutorBlockStrategy
(),
null
)
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorBlockStrategy"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_executorBlockStrategy"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
// 》ChildJobId valid
...
...
@@ -228,7 +228,7 @@ public class XxlJobServiceImpl implements XxlJobService {
// parse child
int
childJobId
=
Integer
.
parseInt
(
childJobIdItem
);
if
(
childJobId
==
jobInfo
.
getId
())
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_childJobId"
)+
"("
+
childJobId
+
")"
+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_childJobId"
)+
"("
+
childJobId
+
")"
+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
// valid child
...
...
@@ -244,7 +244,7 @@ public class XxlJobServiceImpl implements XxlJobService {
}
}
else
{
return
Response
.
ofFail
(
MessageFormat
.
format
((
I18nUtil
.
getString
(
"jobinfo_field_childJobId"
)+
"({0})"
+
I18nUtil
.
getString
(
"system_
u
nvalid"
)),
childJobIdItem
));
MessageFormat
.
format
((
I18nUtil
.
getString
(
"jobinfo_field_childJobId"
)+
"({0})"
+
I18nUtil
.
getString
(
"system_
i
nvalid"
)),
childJobIdItem
));
}
}
...
...
@@ -261,7 +261,7 @@ public class XxlJobServiceImpl implements XxlJobService {
// group valid
XxlJobGroup
jobGroup
=
xxlJobGroupMapper
.
load
(
jobInfo
.
getJobGroup
());
if
(
jobGroup
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_jobgroup"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"jobinfo_field_jobgroup"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
// stage job info
...
...
@@ -279,12 +279,12 @@ public class XxlJobServiceImpl implements XxlJobService {
// generate next trigger time
Date
nextValidTime
=
scheduleTypeEnum
.
getScheduleType
().
generateNextTriggerTime
(
jobInfo
,
new
Date
(
System
.
currentTimeMillis
()
+
JobScheduleHelper
.
PRE_READ_MS
));
if
(
nextValidTime
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
nextTriggerTime
=
nextValidTime
.
getTime
();
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
}
...
...
@@ -344,7 +344,7 @@ public class XxlJobServiceImpl implements XxlJobService {
// load and valid
XxlJobInfo
xxlJobInfo
=
xxlJobInfoMapper
.
loadById
(
id
);
if
(
xxlJobInfo
==
null
)
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
u
nvalid"
));
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
i
nvalid"
));
}
// valid jobGroup permission
...
...
@@ -365,12 +365,12 @@ public class XxlJobServiceImpl implements XxlJobService {
Date
nextValidTime
=
scheduleTypeEnum
.
getScheduleType
().
generateNextTriggerTime
(
xxlJobInfo
,
new
Date
(
System
.
currentTimeMillis
()
+
JobScheduleHelper
.
PRE_READ_MS
));
if
(
nextValidTime
==
null
)
{
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
nextTriggerTime
=
nextValidTime
.
getTime
();
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
u
nvalid"
))
);
return
Response
.
ofFail
(
(
I18nUtil
.
getString
(
"schedule_type"
)+
I18nUtil
.
getString
(
"system_
i
nvalid"
))
);
}
xxlJobInfo
.
setTriggerStatus
(
TriggerStatus
.
RUNNING
.
getValue
());
...
...
@@ -392,7 +392,7 @@ public class XxlJobServiceImpl implements XxlJobService {
// load and valid
XxlJobInfo
xxlJobInfo
=
xxlJobInfoMapper
.
loadById
(
id
);
if
(
xxlJobInfo
==
null
)
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
u
nvalid"
));
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
i
nvalid"
));
}
// valid jobGroup permission
...
...
@@ -420,7 +420,7 @@ public class XxlJobServiceImpl implements XxlJobService {
// valid job
XxlJobInfo
xxlJobInfo
=
xxlJobInfoMapper
.
loadById
(
jobId
);
if
(
xxlJobInfo
==
null
)
{
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
u
nvalid"
));
return
Response
.
ofFail
(
I18nUtil
.
getString
(
"jobinfo_glue_jobid_
i
nvalid"
));
}
// valid jobGroup permission
...
...
xxl-job-admin/src/main/resources/i18n/message_en.properties
View file @
feba4ea
...
...
@@ -27,7 +27,7 @@ system_opt_fail=operate fail
system_opt_edit
=
Edit
system_opt_del
=
Delete
system_opt_copy
=
Copy
system_
u
nvalid
=
illegal
system_
i
nvalid
=
illegal
system_not_found
=
not exist
system_nav
=
Navigation
system_digits
=
digits
...
...
@@ -71,7 +71,7 @@ login_password_lt_4=Password length should not be less than 4
login_success
=
Login success
login_fail
=
Login fail
login_param_empty
=
Username or password is empty
login_param_
u
nvalid
=
Username or password error
login_param_
i
nvalid
=
Username or password error
## logout
logout_btn
=
Logout
...
...
@@ -139,7 +139,7 @@ jobinfo_glue_source=GLUE Source
jobinfo_glue_remark
=
Resource Remark
jobinfo_glue_remark_limit
=
Resource Remark length is limited to 4~100
jobinfo_glue_rollback
=
Version Backtrack
jobinfo_glue_jobid_
u
nvalid
=
Job ID is illegal
jobinfo_glue_jobid_
i
nvalid
=
Job ID is illegal
jobinfo_glue_gluetype_unvalid
=
The job is not GLUE Type
jobinfo_field_executorTimeout_placeholder
=
Job Timeout period,in seconds. effect if greater than zero
schedule_type
=
Schedule Type
...
...
xxl-job-admin/src/main/resources/i18n/message_zh_CN.properties
View file @
feba4ea
...
...
@@ -27,7 +27,7 @@ system_opt_fail=操作失败
system_opt_edit
=
编辑
system_opt_del
=
删除
system_opt_copy
=
复制
system_
u
nvalid
=
非法
system_
i
nvalid
=
非法
system_not_found
=
不存在
system_nav
=
导航
system_digits
=
整数
...
...
@@ -71,7 +71,7 @@ login_password_lt_4=登录密码不应低于4位
login_success
=
登录成功
login_fail
=
登录失败
login_param_empty
=
账号或密码为空
login_param_
u
nvalid
=
账号或密码错误
login_param_
i
nvalid
=
账号或密码错误
## logout
logout_btn
=
注销
...
...
@@ -139,7 +139,7 @@ jobinfo_glue_source=GLUE源码
jobinfo_glue_remark
=
源码备注
jobinfo_glue_remark_limit
=
源码备注长度限制为4~100
jobinfo_glue_rollback
=
版本回溯
jobinfo_glue_jobid_
u
nvalid
=
任务ID非法
jobinfo_glue_jobid_
i
nvalid
=
任务ID非法
jobinfo_glue_gluetype_unvalid
=
该任务非GLUE模式
jobinfo_field_executorTimeout_placeholder
=
任务超时时间,单位秒,大于零时生效
schedule_type
=
调度类型
...
...
xxl-job-admin/src/main/resources/i18n/message_zh_TC.properties
View file @
feba4ea
...
...
@@ -27,7 +27,7 @@ system_opt_fail=操作失敗
system_opt_edit
=
編輯
system_opt_del
=
刪除
system_opt_copy
=
復制
system_
u
nvalid
=
非法
system_
i
nvalid
=
非法
system_not_found
=
不存在
system_nav
=
導航
system_digits
=
整數
...
...
@@ -71,7 +71,7 @@ login_password_lt_4=登入密碼不應低於4位數
login_success
=
登入成功
login_fail
=
登入失敗
login_param_empty
=
帳號或密碼為空值
login_param_
u
nvalid
=
帳號或密碼錯誤
login_param_
i
nvalid
=
帳號或密碼錯誤
## logout
logout_btn
=
登出
...
...
@@ -139,7 +139,7 @@ jobinfo_glue_source=GLUE源碼
jobinfo_glue_remark
=
源碼備註
jobinfo_glue_remark_limit
=
源碼備註長度限制為4~100
jobinfo_glue_rollback
=
版本回復
jobinfo_glue_jobid_
u
nvalid
=
任務ID非法
jobinfo_glue_jobid_
i
nvalid
=
任務ID非法
jobinfo_glue_gluetype_unvalid
=
該任務非GLUE模式
jobinfo_field_executorTimeout_placeholder
=
任務超時時間,單位秒,大於零時生效
schedule_type
=
調度類型
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment