DBZ-1356 Define contextName
This commit is contained in:
parent
0154af0e38
commit
f9daa53a21
@ -22,11 +22,17 @@ public static String version() {
|
||||
return INFO.getProperty("version");
|
||||
}
|
||||
|
||||
/**
|
||||
* @return symbolic name of the connector plugin
|
||||
*/
|
||||
public static String name() {
|
||||
return "oracle";
|
||||
}
|
||||
|
||||
public static String connectorName() {
|
||||
/**
|
||||
* @return context name used in log MDC and JMX metrics
|
||||
*/
|
||||
public static String contextName() {
|
||||
return "Oracle";
|
||||
}
|
||||
}
|
||||
|
@ -353,7 +353,7 @@ protected SourceInfoStructMaker<? extends AbstractSourceInfo> getSourceInfoStruc
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getConnectorType() {
|
||||
return Module.connectorName();
|
||||
public String getContextName() {
|
||||
return Module.contextName();
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,6 @@
|
||||
public class OracleTaskContext extends CdcSourceTaskContext {
|
||||
|
||||
public OracleTaskContext(OracleConnectorConfig config, OracleDatabaseSchema schema) {
|
||||
super(config.getConnectorType(), config.getLogicalName(), schema::tableIds);
|
||||
super(config.getContextName(), config.getLogicalName(), schema::tableIds);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user