Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
7f57afbf
Commit
7f57afbf
authored
Nov 29, 2019
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加Cron表达式的解析工具类
parent
4f3255ea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
CronExpression.java
...mmon/src/main/java/com/byit/job/utils/CronExpression.java
+0
-0
Mains.java
...nt/byit-demo-client/src/main/java/com/byit/job/Mains.java
+7
-1
No files found.
byit-myth-core/myth-core-common/src/main/java/com/byit/job/utils/CronExpression.java
0 → 100644
View file @
7f57afbf
This diff is collapsed.
Click to expand it.
demo-client/byit-demo-client/src/main/java/com/byit/job/Mains.java
View file @
7f57afbf
package
com
.
byit
.
job
;
package
com
.
byit
.
job
;
import
cn.hutool.cron.pattern.CronPattern
;
import
com.byit.job.model.JavaBeanJobInfo
;
import
com.byit.job.model.JavaBeanJobInfo
;
import
com.byit.job.utils.CronExpression
;
import
com.byit.launcher.JobRunServerLauncher
;
import
com.byit.launcher.JobRunServerLauncher
;
import
com.byit.rpc.remoting.invoker.route.LoadBalance
;
import
com.byit.rpc.remoting.invoker.route.LoadBalance
;
import
com.byit.utils.JobUtils
;
import
com.byit.utils.JobUtils
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.text.ParseException
;
import
java.util.Date
;
import
java.util.concurrent.TimeUnit
;
/**
/**
* @program: byit-myth-job->Mains
* @program: byit-myth-job->Mains
...
@@ -15,7 +20,7 @@ import java.io.IOException;
...
@@ -15,7 +20,7 @@ import java.io.IOException;
**/
**/
public
class
Mains
{
public
class
Mains
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
String
plServerUrl
=
"http://10.0.55.237:8888
,http://10.0.55.232:8888
"
;
String
plServerUrl
=
"http://10.0.55.237:8888"
;
String
mythCron
=
"时间"
;
String
mythCron
=
"时间"
;
String
routingStrategy
=
LoadBalance
.
ROUND
.
name
();
String
routingStrategy
=
LoadBalance
.
ROUND
.
name
();
String
blockingStrategy
=
"阻塞策略"
;
String
blockingStrategy
=
"阻塞策略"
;
...
@@ -29,4 +34,5 @@ public class Mains {
...
@@ -29,4 +34,5 @@ public class Mains {
JobUtils
.
addJob
(
javaBeanJobInfo
);
JobUtils
.
addJob
(
javaBeanJobInfo
);
new
JobRunServerLauncher
(
8888
);
new
JobRunServerLauncher
(
8888
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment