Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jet.server.api.custom.schedule
Interface ParameterGenerator

    public interface ParameterGenerator

ParameterGenerator. Instances of classes that implement this interface are used to get report parameters. These instances are used to work out parameters’ value and provide value to server for running report at the schedule runtime.

Since:
  v8.0

Method Summary
`void` | `close()` use to release resources of generator
`java.lang.String` | `getParameterValue(java.lang.String pmName)` Get the value of a specified parameter
`void` | `initByReportContext(ServerInfo srvInfo)` init the generator by report context.

Method Detail

### initByReportContext

    void initByReportContext(ServerInfo srvInfo)

  init the generator by report context.

  Parameters:
    `srvInfo` - the `ServerInfo`>, it provide some methods for getting infos of the server and task. e.g. task ID, task class, next run time, schedule type...

### getParameterValue

    java.lang.String getParameterValue(java.lang.String pmName)

  Get the value of a specified parameter

  Parameters:
    `pmName` - the parameter name
  Returns:
    the parameter value String

### close

    void close()

  use to release resources of generator

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD