Caching the Application Engine Server 缓存应用程序引擎服务器

Caching the Application Engine Server

缓存应用程序引擎服务器

Application Engine caches metadata just like the application server. This caching enhances performance because a program can refer to the local cache for any objects that it uses.

应用程序引擎会像应用程序服务器一样缓存元数据。这种缓存提高了性能,因为程序可以引用它所使用的任何对象的本地缓存。

Cache Directory Location

高速缓存目录位置

Application Engine programs that run on a Microsoft Windows NT or UNIX server lock their own cache directory for the duration of a run. You find these directories under the master cache directory. The master directory is created under the directory specified by the CacheBaseDir variable in the PeopleSoft Process Scheduler configuration file. If all existing cache directories are locked, a new one is created. Cache subdirectories are named sequentially, starting at 1.

在Microsoft Windows NT或UNIX服务器上运行的应用程序引擎程序在运行期间锁定自己的缓存目录。您可以在主缓存目录下找到这些目录。主目录是在PeopleSoft Process Scheduler配置文件中的CacheBaseDir变量指定的目录下创建的。如果所有现有的缓存目录都被锁定,则会创建一个新的缓存目录。缓存子目录按顺序命名,从1开始。

If you do not enter a fully qualified path for the CacheBaseDir variable, then Application Engine creates a cache directory within the directory in which the program is set to run.

如果没有为CacheBaseDir变量输入完全限定路径,则应用程序引擎将在设置为运行程序的目录中创建一个缓存目录。

Note: Do not share the CacheBaseDir variable with application servers and do not use environment variables when specifying CacheBaseDir because the system does not resolve them. For example, do not set CacheBaseDir to $PS_CFG_HOME.

附注:不要与应用服务器共享CacheBaseDir变量,也不要在指定CacheBaseDir时使用环境变量,因为系统没有解析它们。例如,不要将CacheBaseDir设置为$PS_CFG_HOME。

Cache Parameters

缓存参数

The PSPRCS.CFG (PS_SERVER_CFG) file has two additional cache parameters. They are:

PSPRCS.CFG(PS_SERVER_CFG)文件有两个额外的缓存参数。它们是:


  • Enable Server Caching
  • 启用服务器缓存
  • Server Cache Mode
  • 服务器缓存模式

Do not alter these settings from the delivered defaults. These settings are reserved for future use.

不要从传递的默认值更改这些设置。这些设置保留以备将来使用。

Freeing Locked Temporary Tables

释放锁定的临时表

If you use dedicated temporary tables for Application Engine programs, then you might need to free, or unlock, a temporary table if the program running against it terminates abnormally. Because most Application Engine programs run through PeopleSoft Process Scheduler, typically you use Process Monitor to unlock the temporary tables. Deleting or restarting a process using Process Monitor automatically frees the locked temporary tables.

如果对应用程序引擎程序使用专用的临时表,则在针对该临时表运行的程序异常终止时,可能需要释放或解锁该临时表。因为大多数应用程序引擎程序通过PeopleSoft进程计划程序运行,所以通常使用进程监视器来解除对临时表的锁定。使用Process Monitor删除或重新启动进程会自动释放锁定的临时表。

For the programs that you invoke outside of PeopleSoft Process Scheduler, use the Manage Abends page. Programs running outside of Process Scheduler include those invoked from CallAppEngine PeopleCode and the command line.

对于您在PeopleSoft Process Scheduler之外调用的程序,请使用Manage Abends页面。在Process Scheduler之外运行的程序包括从CallAppEngine PeopleCode和命令行调用的程序。

To free locked temporary tables using the Manage Abends page:

要使用Manage A bend页面释放锁定的临时表,请执行以下操作:

  1. Select PeopleTools > Application Engine > Manage AE Abends..

选择PeopleTools>应用程序引擎>管理AE异常

  1. Identify the program that has locked the temporary tables you want.

确定已锁定所需临时表的程序。

Use the process instance, run control ID, program name, user ID, and run date and time columns to uniquely identify programs.

使用流程实例、运行控件ID、程序名、用户ID以及运行日期和时间列来唯一标识程序。

  1. Click the Temp Tables link.

单击临时表链接。

  1. On the Temporary Tables page, click the Release button to unlock the temporary tables associated with the program.

在“临时表”页上,单击“释放”按钮以解锁与程序关联的临时表。

Analyzing Application Engine Programs

分析应用程序引擎程序

Application Engine programs can be analyzed by using the associated temporary table data. You can retain temporary table data by enabling temporary table data tracing in PeopleSoft Configuration Manager.

可以使用关联的临时表数据来分析应用程序引擎程序。您可以通过在PeopleSoft Configuration Manager中启用临时表数据跟踪来保留临时表数据。

See Enabling Application Engine Tracing
请参阅启用应用程序引擎跟踪

Use AET Analyzer tool to analyze and view the results.

使用AET分析器工具来分析和查看结果。

This example illustrates the fields and controls on the Filter Option in Log Analyzer.

此示例说明了日志分析器中的筛选器选项上的字段和控件。

In the AET Analyzer tool, filter out the Application Engine steps with temporary table using the Temp Table option, and analyze.

在aet analyzer工具中,使用temp table选项过滤出带有临时表的应用程序引擎步骤,并进行分析。

To filter:

要过滤:

  1. In AET Analyzer tool, open the AET file.

在AET分析器工具中,打开AET文件。

  1. Load the corresponding temporary table.

加载相应的临时表。

Note: After the temp table file is loaded, the Include All Tables check box is enabled.

注意:加载临时表文件后,启用“包括所有表”复选框。

  1. Ensure that Include All Tables check box is cleared.

确保清除“包括所有表”复选框。

  1. Select Apply Filter to display only AE steps with temporary table.

选择应用过滤器仅显示带有临时表的AE步骤。

  1. You can further filter the AE steps with temporary table based on a SQL action by selecting the desired action from the SQL View Options group box.

通过从SQL View Options组框中选择所需的操作,可以根据SQL操作使用临时表进一步过滤AE步骤。

  1. Highlight the AE step that you want to view and analyze, and click Diff Temp Table button.

突出显示要查看和分析的AE步骤,然后单击"差异温度表"按钮。

The result displays the modification done to temporary table data.

结果显示对临时表数据所做的修改。

Configuring Application Engine Action Plug-ins

配置应用程序引擎操作插件

PeopleTools allows you to configure an Application Engine action plug-in to alter the SQL or PeopleCode actions of any Application Engine.

PeopleTools允许您配置一个应用程序引擎操作插件来改变任何应用程序引擎的SQL或PeopleCode操作。

The configured plug-in action is executed at runtime. This effectively allows you to modify the code without actually customizing or re-designing the Application Engine program.

配置的插件动作在运行时执行。这实际上允许您修改代码,而无需实际自定义或重新设计应用程序引擎程序。

Configure the selected SQL or PeopleCode action of the Application Engine program by adding new SQL, PeopleCode, or both and/or by replacing the existing SQL or PeopleCode action through PIA in the AE Action Plugin page (PeopleTools, Application Engine).

配置应用程序引擎程序的选定SQL或PeopleCode操作,方法是在AE操作插件页面(PeopleTools,应用程序引擎)中添加新SQL、PeopleCode或两者,和/或通过PIA替换现有SQL或PeopleCode操作。

Note: You can add or replace only SQL and PeopleCode actions in the Application Engine program. Only sections with steps having SQL or PeopleCode actions of the Application Engine program, which you plan to configure, will be displayed in PIA. This feature is not designed to add new sections or steps to an existing Application Engine program.

注意:您只能在应用程序引擎程序中添加或替换SQL和PeopleCode操作。只有包含您计划配置的Application Engine程序的SQL或PeopleCode操作的步骤的部分才会显示在PIA中。此功能不是为向现有应用程序引擎程序添加新部分或步骤而设计的。

Actions belonging to the same step of the same section of the Application Engine program can have multiple plug-in actions defined. The plug-in action type does not have to match the action type that is selected for configuration. You can re-use the same SQL or PeopleCode plug-in action multiple times for different Application Engine programs.

属于Application Engine程序的同一部分的同一步骤的操作可以定义多个插件操作。插件操作类型不必与为配置选择的操作类型匹配。您可以重复使用为不同的应用程序引擎程序多次执行相同的SQL或PeopleCode插件操作。


The Application Engine action that is being configured cannot be used as a plug-in to configure another Application Engine program. Also, you cannot define a plug-in for the Application Engine action that is already been used as a plug-in.

正在配置的应用程序引擎操作不能用作插件来配置另一个应用程序引擎程序。此外,不能为已经用作插件的Application Engine操作定义插件。

For example, if Application Engine program A action Y is configured to use Application Engine program B action X as a plug-in, then Application Engine program A action Y cannot be used as a plug-in for any other Application Engine program. Also, you cannot configure a plug-in for Application Engine program B action X.

例如,如果应用程序引擎程序A操作Y配置为将应用程序引擎程序B操作X用作插件,则应用程序引擎程序一个动作Y不能用作任何其他应用程序引擎程序的插件。此外,不能为应用程序引擎程序B操作X配置插件。

Ensure that information such as state records, temporary tables, PeopleCode variables that are required by the plugged-in action is made available from the configured Application Engine program.

确保诸如状态记录、临时表、PeopleCode变量之类的信息可以从配置好的Application Engine程序中获得。

To add new Application Engine plug-in actions:

要添加新的Application Engine插件操作,请执行以下操作:

  1. In Application Designer, identify an existing or create a new Application Engine program with the SQL or PeopleCode actions that you want to use to configure the SQL or PeopleCode actions of any Application Engine program.

在“应用程序设计器”中,使用要用于配置任何应用程序引擎程序的SQL或PeopleCode操作的SQL或PeopleCode操作来标识现有的应用程序引擎程序或创建新的应用程序引擎程序。

To create an Application Engine program, see Creating, Opening, and Renaming Programs

若要创建应用程序引擎程序,请参见创建、打开和重命名程序

  1. In the PIA, open AE Action Plugin page by selecting PeopleTools > Application Engine > AE Action Plugins.

在PIA中,通过选择PeopleTools>应用引擎>AE Action Plugins来打开AE Action Plugin页面。

  1. Choose the Application Engine program that you want to configure by plugging-in the desired SQL or PeopleCode actions from the newly created Application Engine program.

通过从新创建的应用程序引擎程序中插入所需的SQL或PeopleCode操作,选择要配置的应用程序引擎程序。

See the subsequent Configuration Options section for details.

有关详细信息,请参阅后续的配置选项部分。

  1. Verify the configured Application Engine program in Application Designer to know the impact of the plug-ins.

在应用程序设计器中验证已配置的应用程序引擎程序,以了解插件的影响。

You can identify the configured SQL or PeopleCode action by a red flash on its icon.

您可以通过其图标上的红色闪光来识别配置的SQL或PeopleCode操作。

This image shows the configured SQL action with a red flash. On the code pane, the additional code is highlighted in blue, code being replaced is in strikeout, and the replacement code in red. The codes are displayed based on the order of execution defined in the PIA.

此图像显示了配置的SQL操作,并显示了红色闪光。在“代码”窗格上,附加代码以蓝色突出显示,被替换的代码以删除线显示,替换代码以红色突出显示。代码是根据PIA中定义的执行顺序显示的。

Note: You can use the %AECallerApplId system variable to identify the name of the Application Engine program that executed a plug-in action or a call section to the currently executing program. For more details, see “%AECallerApplId” (PeopleCode Language Reference)

On-Exit Application Engine Plug-in

出口应用引擎插件

PeopleTools allows you to configure an On-Exit Application Engine plug-in at the end of an Application Engine program. This enables the Application Engine program to run and exit based on the conditions defined for the On-Exit Application Engine plug-in.

PeopleTools允许您在应用程序引擎程序结束时配置On-Exit应用程序引擎插件。这使Application Engine程序能够根据为On-Exit Application Engine插件定义的条件运行和退出。

On the PIA, you can specify which section, step, SQL or PeopleCode action should run on-exit from an Application Engine program.

在PIA上,您可以指定从应用程序引擎程序退出时应该运行哪个部分、步骤、SQL或PeopleCode操作。

Note: On-Exit plug-ins can be configured for any existing Application Engine programs.

注意:可以为任何现有的应用程序引擎程序配置On-Exit插件。

You can verify the configured On-Exit Application Engine plug-in in the Application Designer.

您可以在应用程序设计器中验证已配置的On-Exit应用程序引擎插件。

This example shows an On-Exit Application Engine plug-in configured in the Application Designer.

此示例显示在应用程序设计器中配置的On-Exit应用程序引擎插件。

Configuration Options

配置选项

Use the AE Action Plugin page to configure Application Engine action plug-in and On-Exit Application Engine plug-in.

使用AE操作插件页面配置应用程序引擎操作插件和On-Exit应用程序引擎插件。

This example illustrates the fields and controls on the AE Action Plugin page. You can find definitions for the fields and controls later on this page.

本示例说明了AE操作插件页面上的字段和控件。您可以在本页稍后找到字段和控件的定义。

Use these configuration options to configure a delivered Application Engine program:

Field or Control

Description

Enabled

Select this check box to enable the configuration.

Field or Control

Description

Section

Select a section of the delivered Application Engine program,  which you plan to configure. Only sections with steps having SQL or PeopleCode are listed.

Step

Select a step of the chosen section. Only steps that have SQL or PeopleCode actions are listed.

Action

Select an action from the chosen step.

Plugin Name

Select the new Application Engine program that contains the new SQL or PeopleCode action, which will be used to configure the delivered Application Engine program.

Section

Select the required section from the new Application Engine program.

Step

Select the required step from the selected section.

Action

Select the SQL or PeopleCode action from the selected step to add before or after the existing action, or to replace the existing action.

Mode

The three modes that decide the execution order of the configured Application Engine action:

  • Before - Execute the new Application Engine action before the existing action.
  • After - Execute the new Application Engine action after the existing action.
  • Replace - Execute the new Application Engine action instead of the existing action.

Order within Mode

This field is required if the same action belonging to the same step of the same section of the configured Application Engine program has multiple plug-ins using the same mode. The value entered in this field decides the sequence in which the actions within the mode run during execution.

Description

(Optional) Descriptive notes.

Use these configuration options to configure On-Exit Application Engine plug-in:

Field or Control

Description

Enabled

Select this check box to enable the On-Exit plug-in configuration.

Plugin Name

Select the On-Exit Application Engine plug-in.

Section

Select a section of the On-Exit Application Engine plug-in that you plan to run.

Step

Select a step of the selected section.

Action Type

Select an action of the selected step.

<Exit Conditions>

These are the exit conditions:

  • On Success
  • On Skip Step
  • On Break
  • On Abort
  • On Skip

The On-Exit Application Engine plug-in runs based on the exit condition defined in the Application Engine program.

For example, for an Application Engine program, if you set the

On-Exit plug-in to run for the On-Break exit condition, the

On-Exit plug-in runs when the last action executed before the Application Engine program exited was a SQL or PeopleCode action that issued a Break condition.

See documentation for SQL and PeopleCode actions.

See Using PeopleCode in Application Engine Programs

Note: At least one of the exit conditions must be selected.

 Otherwise, an error is displayed while saving.

Note: In the PIA, the Actions Plugin grid gets disabled if the selected Application Engine program does not have SQL or PeopleCode actions, and a message is displayed stating that only On-Exit plug-ins can be configured.

Performance

性能

Sometimes plug-in changes may not be immediately recognized. It might take at most ten minutes for the changes to be recognized.

有时插件更改可能无法立即识别。可能最多需要10分钟才能识别更改。

The processes where it takes time for the plug-in changes to come in effect are:

插件更改生效需要时间的流程如下:

  • When an active application server is running CallAppEngine() PeopleCode.
  • 当活动应用服务器运行CallAppEngine()PeopleCode时。
  • When viewing an Application Engine Program Flow view in an active Application Designer session.
  • 在活动的应用程序设计器会话中查看应用程序引擎程序流视图时。
  • When an Application Engine program begins processing before the plug-in change is initiated.
  • 当应用程序引擎程序在插件更改启动前开始处理时。

Note that there cases where plug-in changes are immediately recognized, and those are:

请注意,在某些情况下,插件更改会立即被识别,这些情况是:

  • While stopping and restarting any one process from the above set of processes.
  • 同时停止和重新启动上述进程集中的任何一个进程。
  • When an Application Engine program is run through the Process Scheduler.

当应用程序引擎程序通过进程调度器运行时。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/236910.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

网工内推 | 项目经理专场,最高20K*13薪,软考证书优先

01 Trasen 招聘岗位&#xff1a;大项目经理&#xff08;医疗行业/HIS&#xff09; 职责描述&#xff1a; 1.负责项目按计划完成交付并顺利验收结项&#xff1b; 2.参与项目前期预算、评审、方案设计等&#xff1b; 3.负责具体项目实施&#xff0c;制定项目计划、组织项目资源、…

树莓派上电发送IP地址到邮箱

创建python脚本文件 auto_send_email.py #!/usr/bin/python3import subprocess import smtplib from email.mime.text import MIMEText import datetime import time import osdef check_ping():hostname "www.baidu.com"response os.system("ping -c 1 &quo…

AI 与胚胎结合?系统生物学家 Patrick Müller 利用孪生网络对斑马鱼胚胎展开研究

300 万张图片1.5 万个斑马鱼胚胎的数据集&#xff0c;系统生物学家 Patrick Mller 成功实现基于 AI 的胚胎识别。 作者&#xff5c;加零 编辑&#xff5c;三羊 在动物发育过程中&#xff0c;胚胎随着时间的推移会发生复杂的形态变化&#xff0c;研究者们希望能够客观地量化发…

SpringBootWeb请求响应之前言及状态码的详细解析

SpringBootWeb请求响应 前言 在上一次的课程中&#xff0c;我们开发了springbootweb的入门程序。 基于SpringBoot的方式开发一个web应用&#xff0c;浏览器发起请求 /hello 后 &#xff0c;给浏览器返回字符串 “Hello World ~”。 其实呢&#xff0c;是我们在浏览器发起请求…

WebRTC AEC回声消除算法拆解

WebRTC AEC算法流程分析——时延估计&#xff08;一&#xff09; 其实&#xff0c;网上有很多类似资料&#xff0c;各个大厂研发不同应用场景设备的音频工程师基本都对其进行了拆解&#xff0c;有些闪烁其词&#xff0c;有些却很深奥&#xff0c;笔者随着对WebRTC了解的深入&a…

算法Day28 二进制差异序列(格雷码)

二进制差异序列&#xff08;格雷码&#xff09; Description n 位二进制差异序列是一个由2^n个整数组成的序列&#xff0c;其中&#xff1a; 每个整数都在范围[0, 2^n - 1]内&#xff08;含0和2^n - 1&#xff09; 第一个整数是0 一个整数在序列中出现不超过一次 每对相邻整数…

scripty妙用

在monorepo项目中&#xff0c;随着子模块增多&#xff0c; 每个子项目都需要配置各自的package.json,并且大同小异&#xff0c;为了进一步提高配置效率&#xff0c;引入了scripty&#xff0c;自己写脚本&#xff0c;直接就可以用哦 1、安装 npm install scripty --save-dev 2…

STM32MP157D-DK1开发板固件烧录

本篇介绍STM32MP157D-DK1开发板如何烧录官方固件。 1 开发板基础硬件介绍 1.1 常用接口 板子上的各种接口功如下&#xff0c;本篇固件烧录&#xff0c;主要用的接口包括&#xff1a; CN6&#xff1a;供电接口B2&#xff1a;复位按键CN11&#xff1a;ST-LINK USB&#xff08…

MYSQL索引和事务

Mysql 索引 事务 存储引擎 索引&#xff1a;索引是一个排序的列表&#xff0c;列表当中存储的是索引的值和包含这个值的数据所在行的物理地址 索引的作用加快查询速度 索引的作用&#xff1a; 利用索引数据库可以快速定位&#xff0c;大大加快查询速度&#xff0c;主要作用表…

LINUX:如何以树形结构显示文件目录结构

tree tree命令用于以树状图列出目录的内容。 第一步&#xff0c;先安装tree这个包 sudo apt-get install tree 第二步&#xff0c;在指定文件目录输入下面命令&#xff0c;7代表7级子目录 tree -L 7 第三步&#xff0c;效果图 第四步&#xff0c;拓展学习 颜色显示 tree -C显…

Go json 差异比较 json-diff(RFC6902)

Go json 差异比较 json-diff(RFC 6902) 毕业设计中过程中为了比较矢量图的差异而依据 RFC 6902 编写的一个包&#xff0c;现已开源&#xff1a; Json-diff 使用 go get -u github.com/520MianXiangDuiXiang520/json-diff序列化与反序列化 与官方 json 包的序列化和反序列化不…

川崎ZX-6R确定引进,636它真的来了,3C认证已过。

最新消息&#xff0c;兄弟们&#xff0c;你们期待已久的川崎ZX6R&#xff08;636&#xff09;基本已经确定引进了&#xff0c;官方的3C认证已经通过&#xff0c;那么从3C里面我们可以看到哪几个信息&#xff1f;产品代号ZX636J就是心心念念的ZX-6R了。 有些小伙伴不太清楚3C认…

数据结构:第13关:查找两个单词链表共同后缀的起始结点

任务描述编程要求 输入输出测试说明来源 任务描述 本关任务&#xff1a;假定采用带头结点的单链表保存单词&#xff0c;当两个单词有相同的后缀时&#xff0c;则可共享相同的后缀空间。 例如&#xff0c;“loading”和“being”的存储映像如下图所示&#xff1a; 设str1和str2…

detectron2中save_text_instance_predictions⭐

save_text_instance_predictions demo.py中修改关于路径os.path.join()函数用于路径拼接文件路径&#xff0c;可以传入多个路径os.path.basename(path)就是给定一串路径的最终找到的那个文件python官方文档链接 将 Python 对象序列化为 JSON 字符串with open 打开文件&#xff…

PostGIS学习教程十三:几何图形创建函数

PostGIS学习教程十三&#xff1a;几何图形创建函数 目前我们看到的所有函数都可以处理已有的几何图形并返回结果&#xff1a; 分析几何图形&#xff08;ST_Length(geometry), ST_Area(geometry)) 几何图形的序列化&#xff08;ST_AsText(geometry), ST_AsGML(geometry)) 选取…

动态规划_不同路径||

//一个机器人位于一个 // m x n 网格的左上角 &#xff08;起始点在下图中标记为 “Start” &#xff09;。 // // 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角&#xff08;在下图中标记为 “Finish”&#xff09;。 // // 现在考虑网格中有障碍物。那么…

坚守数字化创新烽火之地 百望云入选新华社“品牌信用建设典型案例”

潮起海之南&#xff0c;风好正扬帆。2023年12月2日-5日&#xff0c;南海之滨&#xff0c;由新华通讯社、海南省人民政府、中国品牌建设促进会主办的主题为“聚焦新质生产力&#xff0c;增强发展新动能”的2023中国企业家博鳌论坛在海南博鳌隆重举行。 群贤毕至&#xff0c;高朋…

vue零基础

vue 与其他框架的对比 框架设计模式数据绑定灵活度文件模式复杂性学习曲线生态VueMVVM双向灵活单文件小缓完善ReactMVC单向较灵活all in js大陡丰富AngularMVC双向固定多文件较大较陡&#xff08;Typescript&#xff09;独立 更多对比细节&#xff1a;vue 官网&#xff1a;ht…

银河麒麟v10系统SSH远程管理及切换root用户的操作方法

&#x1f4da;&#x1f4da; &#x1f3c5;我是默&#xff0c;一个在CSDN分享笔记的博主。&#x1f4da;&#x1f4da; ​​ &#x1f31f;在这里&#xff0c;我要推荐给大家我的专栏《Linux》。&#x1f3af;&#x1f3af; &#x1f680;无论你是编程小白&#xff0c;还是有一…

深入解析C++中的虚函数和虚继承:实现多态性与继承关系的高级特性

这里写目录标题 虚函数虚函数实现动态绑定虚继承抽象类 虚函数 虚函数是在C中用于实现多态性的一种特殊函数。它通过使用关键字"virtual"进行声明&#xff0c;在基类中定义&#xff0c;可在派生类中进行重写。虚函数允许在运行时根据对象的实际类型来调用相应的函数…