add a property named "hetu.dc.catalogs.update.threshold" into dc configuration file, this property is used in method CatalogConnectorStore.getDCCatalogUpdateThreshold.
This commit is contained in:
parent
3423829ac7
commit
0f021a8f1a
|
|
@ -117,12 +117,26 @@ public class DataCenterConfig
|
||||||
|
|
||||||
private int maxIdleConnections = DEFAULT_MAX_IDLE_CONNECTIONS;
|
private int maxIdleConnections = DEFAULT_MAX_IDLE_CONNECTIONS;
|
||||||
|
|
||||||
|
private String updateThreshold = "1m";
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public URI getConnectionUrl()
|
public URI getConnectionUrl()
|
||||||
{
|
{
|
||||||
return connectionUrl;
|
return connectionUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getUpdateThreshold()
|
||||||
|
{
|
||||||
|
return updateThreshold;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Config("hetu.dc.catalog.update.threshold")
|
||||||
|
public DataCenterConfig setUpdateThreshold(String updateThreshold)
|
||||||
|
{
|
||||||
|
this.updateThreshold = updateThreshold;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set connection url, it is remote data center url.
|
* Set connection url, it is remote data center url.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue