blob: e36c2b23498433c7241d77859ed15d0e94a772d6 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Usage on ElasticJob</title>
<link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-cloud/usage/</link>
<description>Recent content in Usage on ElasticJob</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-cloud/usage/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Dev Guide</title>
<link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-cloud/usage/dev-guide/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-cloud/usage/dev-guide/</guid>
<description>Job development ElasticJob-Lite and ElasticJob-Cloud provide a unified job interface, developers only need to develop business jobs once, and then they can deploy to different environments according to different configurations.
For details of job development, please refer to ElasticJob-Lite user manual.
Job start You need to define the main method and call it JobBootstrap.execute(), for example:
public class MyJobDemo { public static void main(final String[] args) { JobBootstrap.execute(new MyJob()); } } </description>
</item>
<item>
<title>Local Executor</title>
<link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-cloud/usage/local-executor/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-cloud/usage/local-executor/</guid>
<description>When developing ElasticJob-Cloud jobs, developers can leave the Mesos environment to run and debug jobs locally. The local operating mode can be used to fully debug business functions and unit tests, and then deploy to the Mesos cluster after completion.
There is no need to install the Mesos environment to run jobs locally.
// Create job configuration JobConfiguration jobConfig = JobConfiguration.newBuilder(&amp;#34;myJob&amp;#34;, 3).cron(&amp;#34;0/5 * * * * ?&amp;#34;).build(); // Configure the fragmentation item of the currently running job int shardingItem = 0; // Create a local executor new LocalTaskExecutor(new MyJob(), jobConfig, shardingItem).</description>
</item>
</channel>
</rss>