TestAction実装サービス jp.ossc.nimbus.service.test.action.ScheduleMakeActionService

jp.ossc.nimbus.service.test.action.ScheduleMakeActionServiceは、スケジュールを作成するTestAction実装サービスです。

このサービスは、複合的なサービスで、以下のサービスを下位サービスとして使用します。

下位サービスインタフェース用途
jp.ossc.nimbus.service.scheduler2.ScheduleManagerスケジュールの作成を依頼する。


リソースの書き方は、ここを参照。

以下に簡単なサービス定義を示します。

  1. <?xml version="1.0" encoding="Shift_JIS"?>
  2. <!DOCTYPE server PUBLIC
  3. "-//Nimbus//DTD Nimbus 1.0//JA"
  4. "http://nimbus.sourceforge.jp/dtd/nimbus-service_1_0.dtd">
  5. <server>
  6. <manager>
  7. <!-- スケジュールを作成するTestActionサービス -->
  8. <service name="ScheduleMakeAction"
  9. code="jp.ossc.nimbus.service.test.action.ScheduleMakeActionService">
  10. <!-- スケジュールを管理するScheduleManagerサービスのサービス名を設定する -->
  11. <attribute name="ScheduleManagerServiceName">#ScheduleManager</attribute>
  12. <!-- このテストアクションを使ってリソースを記述する際の予測コストを設定する -->
  13. <attribute name="ExpectedCost">5</attribute>
  14. <depends>
  15. <!-- スケジュールを管理するScheduleManagerサービス -->
  16. <service name="ScheduleManager"
  17. code="jp.ossc.nimbus.service.scheduler2.DatabaseScheduleManagerService">
  18. <attribute name="ConnectionFactoryServiceName">#JDBCConnectionFactory</attribute>
  19. <attribute name="MakeScheduleOnStart">false</attribute>
  20. <attribute name="NextScheduleIdSelectQuery">SELECT SEQ_SCHEDULER_ID.NEXTVAL AS NEXTVAL FROM DUAL</attribute>
  21. <attribute name="ControlStateCheckInterval">0</attribute>
  22. <attribute name="TimeoverCheckInterval">0</attribute>
  23. <attribute name="TimeoverCheckInterval">0</attribute>
  24. <attribute name="UpdateUserId">TEST</attribute>
  25. <depends>
  26. <!-- JDBC接続を取得するConnectionFactoryサービス -->
  27. <service name="JDBCConnectionFactory"
  28. code="jp.ossc.nimbus.service.connection.JDBCConnectionFactoryService">
  29. <attribute name="DriverName">sample.jdbc.Driver</attribute>
  30. <attribute name="ConnectionURL">jdbc:sample://server:1521/database</attribute>
  31. <attribute name="UserName">user</attribute>
  32. <attribute name="Password">pass</attribute>
  33. </service>
  34. </depends>
  35. </service>
  36. </depends>
  37. </service>
  38. </manager>
  39. </server>


テストフレームワーク/テストアクション