`

Job & Method

阅读更多

Job & Method

Defining success return codes and success status

The methods executed by jobs included in a job sequence must have a defined value

for the success_return_codes property or the success_status property or both. The

dm_run_dependent_jobs method, which invokes sequenced jobs, uses one or both of

those properties to determine whether an invoked job completed successfully.

The dm_run_dependent_jobs method compares the values in the success_return_codes

property and the success_status property to the values in the job’s a_last_return_code

and a_current_status. The value in a_last_return_code is compared to the value or

values in success_return_codes, and the value in a_current_status is compared to the

value in success_status.

If you set only success_return_codes, dm_run_dependent_jobs compares the value in

a_last_return_code to the value or values in success_return_codes, and any value in

a_current_status is ignored. If you set only success_status, dm_run_dependent_jobs

compares the value in a_current_status to the value in success_status and ignores

the value in a_last_return_code. If the values in the comparison operation match,

dm_run_dependent_jobs considers the invoked job to have completed successfully.

If both success_return_codes and success_status are set, then dm_run_dependent_jobs

compares each to its corresponding job property. If either comparison fails,

dm_run_dependent_jobs considers the invoked job to have failed. If both comparisons

succeed, then dm_run_dependent_jobs considers the invoked job to have succeeded.

Note: The agent exec process sets the job’s a_last_return_code property. The property

is set to the value returned by the job’s method. The job’s a_current_status property

must be set directly by the invoked method.

Introducing job sequences

A job sequence is a set of one or more jobs that are executed in a user-defined order. You

can put replication jobs and custom jobs of any user-defined type in a sequence. You

cannot put system-defined jobs, other than replication jobs, in a job sequence. The jobs

can reside in different repositories, but all must reside in 5.3 or later repositories.

Sequences are an effective way to handle replication jobs that might overlap in their

operations because they allow you to define the order in which the jobs must be run and

no job is run until all of its predecessors complete successfully.

For example, perhaps you have two replication jobs with the same source and target

repositories. To ensure that the two jobs do not try to load the replicas into the target

repository at the same time, you can put both in a job sequence and they are run one

after the other, in the order you define.

A job sequence can contain any number of jobs, and the jobs can reside in different

repositories. However, you cannot put a job that requires multiple invocations, such as a

manual transfer replication job, in a job sequence.

Execution of the job sequence is initiated by a controlling job that you define. The

controlling job executes the dm_run_dependent_jobs method, which is installed with

Content Server.

Job Performance considerations

Use of either the method server or the Java method server improves the performance of

method execution.

To execute a method, Content Server generates a new process to execute the method.

That process opens a new session with the repository, which in turn opens another

session with the RDBMS.

Use of the method server avoids the overhead of the additional repository session and

RDBMS session. The method server runs continuously, so no new process is created to

execute the method. The first time the method server executes a method, it opens a

repository session and an associated RDBMS session. Thereafter, the method server uses

connection pooling. Use of connection pooling removes the need to open new repository

and RDBMS sessions for subsequent method executions.

Use of the Java method server provides similar performance benefits.

Job Security considerations

Security is only a consideration when you are executing a method on the Java method

server. When executing on the Java method server, there are two security issues:

• Determining the origin of the generated HTTP_POST request generated by the

DO_METHOD.

• Logging in without passwords.

To resolve the first issue, the invoked servlet ensures that the generated request comes

from a machine that hosts a Content Server by checking the IP address of the sender

against a list of repositories. When the Java method server receives a request, it issues

a DFC getServerMap() call to obtain a list of all servers servicing the repository. From

that list, it determines whether the IP address of the machine that originated the request

is a Content Server host. If the sender’s IP address does not match the IP address of

a Content Server host, the request fails.

The second issue occurs because the Java method server runs as the Content Server

installation owner. Consequently, the servlet it invokes to execute DO_METHOD calls

also runs as the installation owner. A process running on the Content Server host

as installation owner can log into the repository as the installation owner without a

password. Consequently, a servlet or an invoked Java method can log into the repository

with superuser privileges without providing a password.

If you write a method that logs in a user in that manner, you may want to ensure that

the actual user who issues the DO_METHOD to invoke the method has the appropriate

privileges to execute the program as a superuser. To do this, send the current username

and a login ticket to the method in the arguments. The method can use this information

to log in and check the privileges of the user before connecting as the current operating

system user.

 

 

分享到:
评论

相关推荐

    job shop -matlab program

    4. "A heuristic method for discrete lot streaming with variable sublots in a flow shop.pdf":此文献可能关注的是流式车间(Flow Shop)中的离散批量流和可变子批量问题。流式车间与作业车间不同,任务按顺序...

    CCMS Batch Job Monitoring

    在SAP系统中,"CCMS Batch Job Monitoring"(计算中心管理系统作业监控)是一个关键功能,用于跟踪和管理定期运行的SAP作业的状态和运行时间。CCMS是SAP系统的一个标准组件,它提供了一种有效的方式来确保业务流程的...

    Improved-job-shop-scheduling-method.rar_库存 调度_库存求解_惩罚 遗传

    为了解决考虑生产总成本的车间调度问题,对引入加工成本、库存管理成本和拖期惩罚成 本的车间调度问题进行了研究,提出了一种改进的遗传算法求解该问题。论述了改进遗传算法的 编码、初始化、选择、交叉和变异操作,...

    基于DelayQueue的简单的定时任务队列.zip

    基于DelayQueue的简单的定时任务队列.zip Quick Start class Main { public static void main(String[] args) { ...public Job addOneTimeJob(String name, long intervalMillis, JobMethod method)

    JAVA J2EE JOB INTERVIEW COMPANION PREVIEW

    RMI(Remote Method Invocation)是Java中用于远程对象调用的技术。它允许在一个虚拟机上运行的对象调用另一个虚拟机上的对象的方法,从而实现了分布式计算。 #### EJB EJB(Enterprise JavaBeans)是J2EE中用于...

    集合合并代码

    // TODO Auto-generated method stub List lst1=new ArrayList(); List lst2=new ArrayList(); UserBean b1=new UserBean(); UserBean b2=new UserBean(); UserBean b3=new UserBean(); ...

    优秀行业系列简历模板Resume_Template_for_Architecture_Position.doc

    Architecture学位,并且修读了像“Drawing Studio”、“Construction Process & Method”等核心课程。 3. **实习经验**:展示实习期间的实践经验,如在University of Engineering的实习,通过进行现场调查、绘制...

    最新Job_超级面试题

    - Java内存分为堆内存(Heap)、栈内存(Stack)、方法区(Method Area)、本地方法栈(Native Method Stack)和程序计数器(PC Register)五大部分。理解垃圾回收机制(GC)和内存泄漏的概念也是面试中的常见问题...

    ISO22901车辆诊断ODX英文协议 ISO22901-1,ISO22901-2,ISO22901-3

    The conversion method is ignored, meaning an input parameter is passed to the job as-is and always as a physical value. PHYSICAL-DEFAULT-VALUE shall only be used, if INPUT-PARAM references a DATA-...

    job4j_design

    《Job4J设计模式解析与实战》 在Java编程领域,设计模式是软件开发中的重要概念,它代表了最佳实践,是解决常见问题的经验总结。Job4J是一个以Java为载体,专注于技能提升和面试准备的开源项目,其中的"job4j_...

    现场管理资料认识现场管理TWI的意义aad.zip

    TWI由四个核心模块组成:Job Instruction(JI,工作教导)、Job Method(JM,工作方法)、Job Relations(JR,工作关系)和Job Safety(JS,工作安全)。这些模块共同构成了一个完整的现场管理人员培训体系。 1. ...

    job4j_elementary

    除此之外,Java中的方法(method)也是重要的组成部分,它们封装了特定的功能,使得代码更易读、易维护。同时,面向对象编程(OOP)是Java的一大特色,包括类(class)、对象(object)、继承(inheritance)、多态...

    AHP(层次分析法)_Method[参照].pdf

    例如,Job-1在“钱多”、“事少”和“离家近”三个方面的得分乘以其权重,得到Job-1的综合评分。 4. **一致性检验(Consistency Check)**:通过一致性比率(CR)检查权重分配的一致性。如果CR小于0.1,则认为权重...

    JAVA三大框架有关面试复习题目

    JAVA三大框架有关面试复习题目,对与面试非常有帮助

Global site tag (gtag.js) - Google Analytics