nimbus (1.2.4) | 2018-01-25 20:02 |
nimbus-sample (1.2.4) | 2018-01-26 17:06 |
jp.ossc.nimbus.service.test.action.ScheduleMakeActionServiceは、スケジュールを作成するTestAction実装サービスです。
このサービスは、複合的なサービスで、以下のサービスを下位サービスとして使用します。
下位サービスインタフェース | 用途 |
jp.ossc.nimbus.service.scheduler2.ScheduleManager | スケジュールの作成を依頼する。 |
リソースの書き方は、ここを参照。
以下に簡単なサービス定義を示します。
- <?xml version="1.0" encoding="Shift_JIS"?>
- <!DOCTYPE server PUBLIC
- "-//Nimbus//DTD Nimbus 1.0//JA"
- "http://nimbus.sourceforge.jp/dtd/nimbus-service_1_0.dtd">
- <server>
- <manager>
- <!-- スケジュールを作成するTestActionサービス -->
- <service name="ScheduleMakeAction"
- code="jp.ossc.nimbus.service.test.action.ScheduleMakeActionService">
- <!-- スケジュールを管理するScheduleManagerサービスのサービス名を設定する -->
- <attribute name="ScheduleManagerServiceName">#ScheduleManager</attribute>
- <!-- このテストアクションを使ってリソースを記述する際の予測コストを設定する -->
- <attribute name="ExpectedCost">5</attribute>
- <depends>
- <!-- スケジュールを管理するScheduleManagerサービス -->
- <service name="ScheduleManager"
- code="jp.ossc.nimbus.service.scheduler2.DatabaseScheduleManagerService">
- <attribute name="ConnectionFactoryServiceName">#JDBCConnectionFactory</attribute>
- <attribute name="MakeScheduleOnStart">false</attribute>
- <attribute name="NextScheduleIdSelectQuery">SELECT SEQ_SCHEDULER_ID.NEXTVAL AS NEXTVAL FROM DUAL</attribute>
- <attribute name="ControlStateCheckInterval">0</attribute>
- <attribute name="TimeoverCheckInterval">0</attribute>
- <attribute name="TimeoverCheckInterval">0</attribute>
- <attribute name="UpdateUserId">TEST</attribute>
- <depends>
- <!-- JDBC接続を取得するConnectionFactoryサービス -->
- <service name="JDBCConnectionFactory"
- code="jp.ossc.nimbus.service.connection.JDBCConnectionFactoryService">
- <attribute name="DriverName">sample.jdbc.Driver</attribute>
- <attribute name="ConnectionURL">jdbc:sample://server:1521/database</attribute>
- <attribute name="UserName">user</attribute>
- <attribute name="Password">pass</attribute>
- </service>
- </depends>
- </service>
- </depends>
- </service>
- </manager>
- </server>