return Optional.of(Double.toString(((Default.Double) annotation).value())); } else if (annotation instanceof Default.Enum) { return Optional.of(((Default.Enum) annotation).value()); } else if (annotation instanceof Default.InstanceFactory) { return Optional.of(((Default.InstanceFactory) annotation).value().getSimpleName());
} else if (annotation instanceof Default.Enum) { return Enum.valueOf( (Class<Enum>) method.getReturnType(), ((Default.Enum) annotation).value()); } else if (annotation instanceof Default.InstanceFactory) { return InstanceBuilder.ofType(((Default.InstanceFactory) annotation).value())
@Default.Enum("MyEnum") EnumType getEnum();
@Description("The checkpointing mode that defines consistency guarantee.") @Default.Enum("EXACTLY_ONCE") CheckpointingMode getCheckpointingMode();
@Description("The checkpointing mode that defines consistency guarantee.") @Default.Enum("EXACTLY_ONCE") CheckpointingMode getCheckpointingMode();
@Description("The checkpointing mode that defines consistency guarantee.") @Default.Enum("AT_LEAST_ONCE") CheckpointingMode getCheckpointingMode(); void setCheckpointingMode(CheckpointingMode mode);
/** This option controls the default log level of all loggers without a log level override. */ @Description("Controls the default log level of all loggers without a log level override.") @Default.Enum("INFO") LogLevel getDefaultSdkHarnessLogLevel();
/** * Controls the log level given to messages printed to {@code System.err}. * * <p>Note that the message may be filtered depending on the {@link #getDefaultWorkerLogLevel * defaultWorkerLogLevel} or if a {@code System.err} override is specified via {@link * #getWorkerLogLevelOverrides workerLogLevelOverrides}. */ @Description( "Controls the log level given to messages printed to System.err. Note that the " + "message may be filtered depending on the defaultWorkerLogLevel or if a 'System.err' " + "override is specified via workerLogLevelOverrides.") @Default.Enum("ERROR") Level getWorkerSystemErrMessageLevel();
/** This option controls the default log level of all loggers without a log level override. */ @Description("Controls the default log level of all loggers without a log level override.") @Default.Enum("INFO") Level getDefaultWorkerLogLevel();
@Description( "Flink mode for data exchange of batch pipelines. " + "Reference {@link org.apache.flink.api.common.ExecutionMode}. " + "Set this to BATCH_FORCED if pipelines get blocked, see " + "https://issues.apache.org/jira/browse/FLINK-10672") @Default.Enum(PIPELINED) ExecutionMode getExecutionModeForBatch();
@Description( "Flink mode for data exchange of batch pipelines. " + "Reference {@link org.apache.flink.api.common.ExecutionMode}. " + "Set this to BATCH_FORCED if pipelines get blocked, see " + "https://issues.apache.org/jira/browse/FLINK-10672") @Default.Enum(PIPELINED) ExecutionMode getExecutionModeForBatch();
/** * Whether to check for stable unique names on each transform. This is necessary to support * updating of pipelines. */ @Validation.Required @Description( "Whether to check for stable unique names on each transform. This is necessary to " + "support updating of pipelines.") @Default.Enum("WARNING") CheckEnabled getStableUniqueNames();
@Description("Whether to check for chained cogroups") @Default.Enum("WARNING") CheckEnabled getChainedCogroups();
/** * Controls the log level given to messages printed to {@code System.out}. * * <p>Note that the message may be filtered depending on the {@link #getDefaultWorkerLogLevel * defaultWorkerLogLevel} or if a {@code System.out} override is specified via {@link * #getWorkerLogLevelOverrides workerLogLevelOverrides}. */ @Description( "Controls the log level given to messages printed to System.out. Note that the " + "message may be filtered depending on the defaultWorkerLogLevel or if a 'System.out' " + "override is specified via workerLogLevelOverrides.") @Default.Enum("INFO") Level getWorkerSystemOutMessageLevel();