fix: add job name config

This commit is contained in:
chaoc
2023-12-18 15:47:23 +08:00
parent b7c739a955
commit 59cabb4868
2 changed files with 10 additions and 1 deletions

View File

@@ -103,6 +103,6 @@ public class CorrelateApp {
.union(sipDoubleDirOperator.getSideOutput(SIPPairingFunction.SIP_OUTPUT_TAG))
.addSink(producer);
env.execute("SIP-RTP-CORRELATION");
env.execute(config.get(JOB_NAME));
}
}

View File

@@ -95,4 +95,13 @@ public class FusionConfigs {
.intType()
.defaultValue(6)
.withDescription("The interval at which RTP state data should be cleared.");
/**
* Configuration option for specifying the name of a job.
*/
public static final ConfigOption<String> JOB_NAME =
ConfigOptions.key("job.name")
.stringType()
.defaultValue("correlation_sip_rtp_session")
.withDescription("The name of current job.");
}