/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
*/
package com.wugui.datax.admin.core.cron;
import java.io.Serializable;
import java.text.ParseException;
import java.util.*;
/**
* Provides a parser and evaluator for unix-like cron expressions. Cron
* expressions provide the ability to specify complex time combinations such as
* "At 8:00am every Monday through Friday" or "At 1:30am every
* last Friday of the month".
* <P>
* Cron expressions are comprised of 6 required fields and one optional field
* separated by white space. The fields respectively are described as follows:
*
* <table cellspacing="8">
* <tr>
* <th align="left">Field Name</th>
* <th align="left"> </th>
* <th align="left">Allowed Values</th>
* <th align="left"> </th>
* <th align="left">Allowed Special Characters</th>
* </tr>
* <tr>
* <td align="left"><code>Seconds</code></td>
* <td align="left"> </th>
* <td align="left"><code>0-59</code></td>
* <td align="left"> </th>
* <td align="left"><code>, - * /</code></td>
* </tr>
* <tr>
* <td align="left"><code>Minutes</code></td>
* <td align="left"> </th>
* <td align="left"><code>0-59</code></td>
* <td align="left"> </th>
* <td align="left"><code>, - * /</code></td>
* </tr>
* <tr>
* <td align="left"><code>Hours</code></td>
* <td align="left"> </th>
* <td align="left"><code>0-23</code></td>
* <td align="left"> </th>
* <td align="left"><code>, - * /</code></td>
* </tr>
* <tr>
* <td align="left"><code>Day-of-month</code></td>
* <td align="left"> </th>
* <td align="left"><code>1-31</code></td>
* <td align="left"> </th>
* <td align="left"><code>, - * ? / L W</code></td>
* </tr>
* <tr>
* <td align="left"><code>Month</code></td>
* <td align="left"> </th>
* <td align="left"><code>0-11 or JAN-DEC</code></td>
* <td align="left"> </th>
* <td align="left"><code>, - * /</code></td>
* </tr>
* <tr>
* <td align="left"><code>Day-of-Week</code></td>
* <td align="left"> </th>
* <td align="left"><code>1-7 or SUN-SAT</code></td>
* <td align="left"> </th>
* <td align="left"><code>, - * ? / L #</code></td>
* </tr>
* <tr>
* <td align="left"><code>Year (Optional)</code></td>
* <td align="left"> </th>
* <td align="left"><code>empty, 1970-2199</code></td>
* <td align="left"> </th>
* <td align="left"><code>, - * /</code></td>
* </tr>
* </table>
* <P>
* The '*' character is used to specify all values. For example, "*"
* in the minute field means "every minute".
* <P>
* The '?' character is allowed for the day-of-month and day-of-week fields. It
* is used to specify 'no specific value'. This is useful when you need to
* specify something in one of the two fields, but not the other.
* <P>
* The '-' character is used to specify ranges For example "10-12" in
* the hour field means "the hours 10, 11 and 12".
* <P>
* The ',' character is used to specify additional values. For example
* "MON,WED,FRI" in the day-of-week field means "the days Monday,
* Wednesday, and Friday".
* <P>
* The '/' character is used to specify increments. For example "0/15"
* in the seconds field means "the seconds 0, 15, 30, and 45". And
* "5/15" in the seconds field means "the seconds 5, 20, 35, and
* 50". Specifying '*' before the '/' is equivalent to specifying 0 is
* the value to start with. Essentially, for each field in the expression, there
* is a set of numbers that can be turned on or off. For seconds and minutes,
* the numbers range from 0 to 59. For hours 0 to 23, for days of the month 0 to
* 31, and for months 0 to 11 (JAN to DEC). The "/" character simply helps you turn
* on every "nth" value in the given set. Thus "7/6" in the
* month field only turns on month "7", it does NOT mean every 6th
* month, please note that subtlety.
* <P>
* The 'L' character is allowed for the day-of-month and day-of-week fields.
* This character is short-hand for "last", but it has different
* meaning in each of the two fields. For example, the value "L" in
* the day-of-month field means "the last day of the month" - day 31
* for January, day 28 for February on non-leap years. If used in the
* day-of-week field by itself, it simply means "7" or
* "SAT". But if used in the day-of-week field after another value, it
* means "the last xxx day of the month" - for example "6L"
* means "the last friday of the month". You can also specify an offset
* from the last day of the month, such as "L-3" which would mean the third-to-last
* day of the calendar month. <i>When using the 'L' option, it is important not to
* specify lists, or ranges of values, as you'll get confusing/unexpected results.</i>
* <P>
* The 'W' character is allowed for the day-of-month field. This character
* is used to specify the weekday (Monday-Friday) nearest the given day. As an
* example, if you were to specify "15W" as the value for the
* day-of-month field, the meaning is: "the nearest weekday to the 15th of
* the month". So if the 15th is a Saturday, the trigger will fire on
* Friday the 14th. If the 15th is a Sunday, the trigger will fire on Monday the
* 16th. If the 15th is a Tuesday, then it will fire on Tuesday the 15th.
* However if you specify "1W" as the value for day-of-month, and the
* 1st is a Saturday, the trigger will fire on Monday the 3rd, as it will not
* 'jump' over the boundary of a month's days. The 'W' character can only be
* specified when the day-of-month is a single day, not a range or list of days.
* <P>
* The 'L' and 'W' characters can also be combined for the day-of-month
* expression to yield 'LW', which translates to "last weekday of the
* month".
* <P>
* The '#' character is allowed for the day-of-week field. This character is
* used to specify "the nth" XXX day of the month. For example, the
* value of "6#3" in the day-of-week field means the third Friday of
* the month (day 6 = Friday and "#3" = the 3rd one in the month).
* Other examples: "2#1" = the first Monday of the month and
* "4#5" = the fifth Wednesday of the month. Note that if you specify
* "#5" and there is not 5 of the given day-of-week in the month, then
* no firing will occur that month. If the '#' character is used, there can
* only be one expression in the day-of-week field ("3#1,6#3" is
* not valid, since there are two expressions).
* <P>
* <!--The 'C' character is allowed for the day-of-month and day-of-week fields.
* This character is short-hand for "calendar". This means values are
* calculated against the associated calendar, if any. If no calendar is
* associated, then it is equivalent to having an all-inclusive calendar. A
* value of "5C" in the day-of-month field means "the first day included by the
* calendar on or after the 5th". A value of "1C" in the day-of-week field
* means "the first day included by the calendar on or after Sunday".-->
* <P>
* The legal characters and the names of months and days of the week are not
* case s
没有合适的资源?快使用搜索试试~ 我知道了~
DataX Web是在DataX之上开发的分布式数据同步工具
共441个文件
java:320个
js:28个
xml:22个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 196 浏览量
2023-05-08
10:03:12
上传
评论 1
收藏 19.52MB ZIP 举报
温馨提示
DataX Web是在DataX之上开发的分布式数据同步工具,提供简单易用的 操作界面,降低用户使用DataX的学习成本,缩短任务配置时间,避免配置过程中出错。用户可通过页面选择数据源即可创建数据同步任务,支持RDBMS、Hive、HBase、ClickHouse、MongoDB等数据源,RDBMS数据源可批量创建数据同步任务,支持实时查看数据同步进度及日志并提供终止同步功能,集成并二次开发xxl-job可根据时间、自增主键增量同步数据。任务"执行器"支持集群部署,支持执行器多节点路由策略选择,支持超时控制、失败重试、失败告警、任务依赖,执行器CPU.内存.负载的监控等等。后续还将提供更多的数据源支持、数据转换UDF、表结构同步、数据同步血缘等更为复杂的业务场景;DataX集成可视化页面,选择数据源即可一键生成数据同步任务,支持批量创建RDBMS数据同步任务,集成开源调度系统,支持分布式、增量同步数据、实时查看运行日志、监控执行器资源、KILL运行进程、数据源信息加密等。
资源推荐
资源详情
资源评论
收起资源包目录
DataX Web是在DataX之上开发的分布式数据同步工具 (441个子文件)
app.1d80faa6.css 246KB
chunk-7d41a2d3.55a106d0.css 17KB
chunk-52071f51.ebba880b.css 10KB
chunk-5bfc3adc.70564041.css 5KB
chunk-d7a3743e.c4bc57e7.css 4KB
chunk-libs.3dfb7769.css 3KB
chunk-4d80a2a0.d08662c8.css 2KB
chunk-65c33404.c229d2c2.css 2KB
chunk-6ace4dde.3c1adc17.css 1KB
chunk-6d2adc59.28c6d689.css 970B
chunk-4c5a09d8.19618a3b.css 921B
chunk-7ff5eb73.3e37c774.css 888B
chunk-46fcab30.030f9169.css 745B
chunk-b192701e.53ac87fa.css 631B
chunk-cc2bc43e.53ac87fa.css 631B
chunk-60797987.53ac87fa.css 631B
chunk-4ba76b80.53ac87fa.css 631B
chunk-69a205c2.2b021e6b.css 294B
chunk-35cb90ad.1ff60aed.css 271B
chunk-commons.c2ac5852.css 132B
chunk-3a8a15ea.3dacfa09.css 90B
chunk-03e96171.42d5ee4e.css 61B
.DS_Store 6KB
401.089007e7.gif 160KB
.gitignore 367B
index.html 5KB
favicon.ico 66KB
HiveJDBC41.jar 17.41MB
ojdbc6-11.2.0.3.jar 2.59MB
sqljdbc4-4.0.jar 571KB
CronExpression.java 59KB
JdbcUtils.java 22KB
JobServiceImpl.java 20KB
BaseQueryTool.java 18KB
DataxJsonHelper.java 15KB
JobScheduleHelper.java 14KB
XxlRpcReferenceBean.java 13KB
ServletUtils.java 13KB
JobTrigger.java 12KB
JobTemplateServiceImpl.java 12KB
ZkServiceRegistry.java 11KB
RdbmsException.java 10KB
JobExecutor.java 9KB
AdminBizImpl.java 9KB
ProcessCallbackThread.java 9KB
ServiceModelToSwagger2MapperImpl.java 9KB
JobThread.java 9KB
TriggerCallbackThread.java 9KB
JettyClient.java 8KB
XxlZkClient.java 8KB
ScriptUtil.java 8KB
XxlRpcProviderFactory.java 7KB
JobGroupController.java 7KB
JobLogController.java 7KB
JobFailMonitorHelper.java 7KB
ExecutorBizImpl.java 7KB
BasicJson.java 7KB
DBUtilErrorCode.java 6KB
BaseForm.java 6KB
JobLogReportHelper.java 6KB
TriggerParam.java 6KB
IpUtil.java 6KB
BasicJsonwriter.java 6KB
NettyHttpServerHandler.java 6KB
UserController.java 6KB
XxlRpcInvokerFactory.java 6KB
JobFileAppender.java 5KB
MinaServer.java 5KB
BasicJsonReader.java 5KB
XxlRpcSpringInvokerFactory.java 5KB
BuildCommand.java 5KB
ExecutorRegistryThread.java 5KB
JobApiController.java 5KB
MongoDBQueryTool.java 5KB
NettyServer.java 5KB
JobTriggerPoolHelper.java 5KB
JobRemotingUtil.java 5KB
JobDatasourceController.java 5KB
ConnectClient.java 5KB
JobInfoController.java 5KB
MinaConnectClient.java 5KB
ServletServerHandler.java 5KB
ExecutorBizImplTest.java 5KB
FileUtil.java 5KB
ExecutorJobHandler.java 4KB
NettyHttpServer.java 4KB
NettyHttpConnectClient.java 4KB
JdbcConstants.java 4KB
QueryToolFactory.java 4KB
DatasourceQueryServiceImpl.java 4KB
JettyServerHandler.java 4KB
JWTAuthenticationFilter.java 4KB
QueryTool.java 4KB
DateUtil.java 4KB
JobLogFileCleanThread.java 4KB
HBaseQueryTool.java 4KB
JobAdminConfig.java 4KB
OSUtils.java 4KB
Hbase11xsqlToolTest.java 4KB
JobScheduler.java 4KB
共 441 条
- 1
- 2
- 3
- 4
- 5
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6651
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功