## Provided Capabilities (1)

Name | Dynamic | Other provider points
--- | --- | ---
org.wildfly.batch.job.repository | true | /subsystem=batch-jberet/in-memory-job-repository=*

## Attributes (2)

- data-source - The data source name used to connect to the database.

  Type | STRING
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | all-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "STRING"
          },
          "description" : "The data source name used to connect to the database.",
          "expressions-allowed" : false,
          "required" : true,
          "nillable" : false,
          "capability-reference" : "org.wildfly.data-source",
          "min-length" : 1,
          "max-length" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "all-services"
      }

- execution-records-limit - The maximum number of job execution records that should be returned by the job repository.

  Type | INT
  Is the attribute nillable? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | all-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "INT"
          },
          "description" : "The maximum number of job execution records that should be returned by the job repository.",
          "expressions-allowed" : false,
          "required" : false,
          "nillable" : true,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "all-services",
          "capability-reference" : null
      }

## Operations (2)

- add - Adds a JDBC job repository.

  Request Parameter | Type | Required | Expressions Allowed | Default value | Description
  --- | --- | --- | --- | --- | ---
  data-source | STRING | true | false |  | The data source name used to connect to the database.
  execution-records-limit | INT | false | false |  | The maximum number of job execution records that should be returned by the job repository.

  Raw DMR model |
      {
          "operation-name" : "add",
          "description" : "Adds a JDBC job repository.",
          "request-properties" : {
              "data-source" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "STRING"
                  },
                  "description" : "The data source name used to connect to the database.",
                  "expressions-allowed" : false,
                  "required" : true,
                  "nillable" : false,
                  "capability-reference" : "org.wildfly.data-source",
                  "min-length" : 1,
                  "max-length" : 2147483647,
                  "stability" : "default"
              },
              "execution-records-limit" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "INT"
                  },
                  "description" : "The maximum number of job execution records that should be returned by the job repository.",
                  "expressions-allowed" : false,
                  "required" : false,
                  "nillable" : true,
                  "stability" : "default"
              }
          },
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "runtime-only" : false
      }

- remove - Removes a JDBC job repository.

  Raw DMR model |
      {
          "operation-name" : "remove",
          "description" : "Removes a JDBC job repository.",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "all-services",
          "runtime-only" : false
      }

## Galleon Features

Galleon features are to be used when creating Galleon feature-packs.

- subsystem.batch-jberet.jdbc-job-repository

      <feature spec="subsystem.batch-jberet.jdbc-job-repository">
        <param name="jdbc-job-repository" value="{resource name}"/>
        <param name="data-source" value="{value}"/>
        <param name="execution-records-limit" value="{value}"/>
      <feature/>