JEUS Scheduler Guide 

JEUS 8 Fix#1

Document Information

Title: JEUS Scheduler Guide 

Publication Date: 2019-08-02

Software Version: JEUS 8 Fix#1

Edition: v2.1.2

Website

http://www.tmaxsoft.com

Copyright Notice

Restricted Rights Legend

All TmaxSoft Software (JEUS®) and documents are protected by copyright laws and international convention. TmaxSoft software and documents are made available under the terms of the TmaxSoft License Agreement and this document may only be distributed or copied in accordance with the terms of this agreement. No part of this document may be transmitted, copied, deployed, or reproduced in any form or by any means, electronic, mechanical, or optical, without the prior written consent of TmaxSoft Co., Ltd. Nothing in this software document and agreement constitutes a transfer of intellectual property rights regardless of whether or not such rights are registered) or any rights to TmaxSoft trademarks, logos, or any other brand features.

This document is for information purposes only. The company assumes no direct or indirect responsibilities for the contents of this document, and does not guarantee that the information contained in this document satisfies certain legal or commercial conditions. The information contained in this document is subject to change without prior notice due to product upgrades or updates. The company assumes no liability for any errors in this document.

Trademarks

JEUS® is registered trademark of TmaxSoft Co., Ltd.

Java and Solaris are registered trademarks of Oracle Corporation and its subsidiaries and affiliates.

Microsoft, Windows, and Windows NT are registered trademarks or trademarks of Microsoft Corporation.

HP-UX is a registered trademark of Hewlett Packard Enterprise Company.

AIX is a registered trademark of International Business Machines Corporation.

UNIX is a registered trademark of X/Open Company, Ltd.

Linux is a registered trademark of Linus Torvalds.

Noto is a trademark of Google Inc. Noto fonts are open source. All Noto fonts are published under the SIL Open Font License, Version 1.1. (https://www.google.com/get/noto/)

(https://www.google.com/get/noto/)

Other products and company names are trademarks or registered trademarks of their respective owners.

The names of companies, systems, and products mentioned in this manual may not necessarily be indicated with a trademark symbol (TM, ®).

Open Source Software Notice

Some modules or files of this product are subject to the terms of the following licenses. : APACHE2.0, CDDL1.0, EDL1.0, OPEN SYMPHONY SOFTWARE1.1, TRILEAD-SSH2, Bouncy Castle, BSD, MIT, SIL OPEN FONT1.1

Detailed Information related to the license can be found in the following directory : ${INSTALL_PATH}/lib/licenses


Table of Contents

About This Document
1. Introduction
1.1. Overview
1.2. Scheduler Component Structure
1.3. Scheduler Server
2. Scheduling Tasks
2.1. Overview
2.2. JEUS Scheduler Class
2.3. Defining Tasks
2.3.1. Implementing ScheduleListener Interface
2.3.2. Schedule Class Inheritance
2.3.3. Inheriting RemoteSchedule Class
2.4. Obtaining Scheduler Object
2.4.1. Obtaining Scheduler Object in Local Environment
2.4.2. Obtaining a Scheduler Object in Remote Environment
2.5. Registering Tasks
2.5.1. Defining One-Time Tasks
2.5.2. Registering Recurring Tasks
2.5.3. Registering Schedule Task Objects
2.6. Controlling Tasks
2.7. Using Scheduler
2.7.1. Using In a Standalone Environment
2.7.2. Using on the JEUS Server
2.7.3. Using in Java EE Components
2.8. Using Job-list
3. Configuring JEUS Scheduler
3.1. Overview
3.2. Configuring Job-list
3.3. Configuring JEUS Scheduler on the Server
3.4. Configuring a Thread Pool
3.4.1. Shared Thread Pool
3.4.2. Dedicated Thread Pool
3.5. Configuring a Client Container
Index

List of Figures

[Figure 1.1] The Scheduler Component in JEUS
[Figure 1.2] Execution Methods by Scheduler Server
[Figure 2.1] Scheduler API Classes
[Figure 3.1] WebAdmin Server List
[Figure 3.2] WebAdmin Scheduler Configuration Page
[Figure 3.3] WebAdmin Scheduler Configuration - Lock Configuration
[Figure 3.4] WebAdmin Scheduler Configurations - Scheduler Configuration
[Figure 3.5] WebAdmin Scheduler Configuration - Adding a Job
[Figure 3.6] WebAdmin Scheduler Configuration - Registering a Job
[Figure 3.7] WebAdmin Scheduler Configuration - Checking the Newly Added Job
[Figure 3.8] WebAdmin Scheduler Configuration - Applying the Added Job
[Figure 3.9] Thread Pool Configurations - Shared Thread Pool Configuration (1)
[Figure 3.10] Thread Pool Configurations - Shared Thread Pool Configuration (2)
[Figure 3.11] Dedicated Thread Pool Configuration (1)
[Figure 3.12] Dedicated Thread Pool Configuration (2)

List of Examples

[Example 2.1] Task object example
[Example 2.2] Schedule object example
[Example 2.3] RemoteSchedule object example
[Example 2.4] Defining Recurring Tasks
[Example 2.5] Registering Schedule Task Objects
[Example 2.6] Calling the ScheduleController.cancel Method
[Example 2.7] Using Scheduler on a Standalone Client
[Example 2.8] Using Scheduler on a Remote Client
[Example 2.9] Using JEUS Scheduler in EJB
[Example 3.1] Client Container Configuration - <<jeus-client-dd.xml>>
[Example 3.2] Job-list Configuration - <<jeus-client-dd.xml>>