code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
CRStage stageToCRStage(StageConfig stageConfig) {
CRStage crStage = new CRStage(stageConfig.name().toString());
for (JobConfig job : stageConfig.getJobs()) {
crStage.addJob(jobToCRJob(job));
}
for (EnvironmentVariableConfig var : stageConfig.getVariables()) {
cr... | Helper to transform config repo classes to config-api classes | stageToCRStage | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRApproval approvalToCRApproval(Approval approval) {
CRApproval crApproval = new CRApproval();
for (AdminUser user : approval.getAuthConfig().getUsers()) {
crApproval.addAuthorizedUser(user.getName().toString());
}
for (AdminRole role : approval.getAuthConfig().getRo... | Helper to transform config repo classes to config-api classes | approvalToCRApproval | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
CRJob jobToCRJob(JobConfig jobConfig) {
CRJob job = new CRJob();
job.setName(jobConfig.name().toString());
job.setResources(jobConfig.resourceConfigs().resourceNames());
job.setElasticProfileId(jobConfig.getElasticProfileId());
for (EnvironmentVariableConfig var : jobConfig.getV... | Helper to transform config repo classes to config-api classes | jobToCRJob | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
CRTask taskToCRTask(Task task) {
if (task == null)
throw new ConfigConvertionException("task cannot be null");
if (task instanceof PluggableTask)
return pluggableTaskToCRPluggableTask((PluggableTask) task);
else if (task instanceof BuildTask) {
return buildTa... | Helper to transform config repo classes to config-api classes | taskToCRTask | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRFetchPluggableArtifactTask fetchPluggableArtifactTaskToCRFetchPluggableTask(FetchPluggableArtifactTask task) {
List<CRConfigurationProperty> configuration = configurationToCRConfiguration(task.getConfiguration());
CRFetchPluggableArtifactTask crTask = new CRFetchPluggableArtifactTask(
... | Helper to transform config repo classes to config-api classes | fetchPluggableArtifactTaskToCRFetchPluggableTask | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRFetchArtifactTask fetchTaskToCRFetchTask(FetchTask task) {
CRFetchArtifactTask fetchTask = new CRFetchArtifactTask(null, null, null, task.getStage().toString(), task.getJob().toString(), task.getSrc(), null, false);
fetchTask.setDestination(task.getDest());
fetchTask.setPipeline(Objec... | Helper to transform config repo classes to config-api classes | fetchTaskToCRFetchTask | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRPluggableTask pluggableTaskToCRPluggableTask(PluggableTask pluggableTask) {
CRPluginConfiguration pluginConfiguration = new CRPluginConfiguration(pluggableTask.getPluginConfiguration().getId(), pluggableTask.getPluginConfiguration().getVersion());
List<CRConfigurationProperty> configuration = ... | Helper to transform config repo classes to config-api classes | pluggableTaskToCRPluggableTask | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRExecTask execTasktoCRExecTask(ExecTask task) {
CRExecTask crExecTask = new CRExecTask(null, null, task.getCommand(), null, 0);
crExecTask.setTimeout(task.getTimeout());
crExecTask.setWorkingDirectory(task.workingDirectory());
Arguments arguments;
if (task.getArgs().isE... | Helper to transform config repo classes to config-api classes | execTasktoCRExecTask | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRBuildTask buildTaskToCRBuildTask(BuildTask buildTask) {
CRBuildTask crBuildTask;
if (buildTask instanceof RakeTask) {
crBuildTask = CRBuildTask.rake();
} else if (buildTask instanceof AntTask) {
crBuildTask = CRBuildTask.ant();
} else if (buildTask insta... | Helper to transform config repo classes to config-api classes | buildTaskToCRBuildTask | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private void commonCRTaskMembers(CRTask crTask, AbstractTask task) {
Task taskOnCancel = task.cancelTask();
if (taskOnCancel != null && !(taskOnCancel instanceof KillAllChildProcessTask) && !(taskOnCancel instanceof NullTask))
crTask.setOnCancel(taskToCRTask(taskOnCancel));
crTask.se... | Helper to transform config repo classes to config-api classes | commonCRTaskMembers | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRRunIf crRunIfs(RunIfConfigs runIfs) {
if (runIfs == null || runIfs.isEmpty())
return CRRunIf.passed;
RunIfConfig runIf = runIfs.first();
if (runIf.equals(RunIfConfig.ANY)) {
return CRRunIf.any;
} else if (runIf.equals(RunIfConfig.PASSED)) {
r... | Helper to transform config repo classes to config-api classes | crRunIfs | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private List<CRConfigurationProperty> configurationToCRConfiguration(Configuration config) {
List<CRConfigurationProperty> properties = new ArrayList<>();
if (config != null) {
for (ConfigurationProperty p : config) {
CRConfigurationProperty crProp = new CRConfigurationProper... | Helper to transform config repo classes to config-api classes | configurationToCRConfiguration | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRArtifact artifactConfigToCRArtifact(ArtifactTypeConfig artifactTypeConfig) {
if (artifactTypeConfig instanceof BuildArtifactConfig buildArtifact) {
return new CRBuiltInArtifact(buildArtifact.getSource(), buildArtifact.getDestination(), CRArtifactType.build);
} else if (artifactType... | Helper to transform config repo classes to config-api classes | artifactConfigToCRArtifact | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRTrackingTool trackingToolToCRTrackingTool(TrackingTool trackingTool) {
if (trackingTool == null)
return null;
return new CRTrackingTool(trackingTool.getLink(), trackingTool.getRegex());
} | Helper to transform config repo classes to config-api classes | trackingToolToCRTrackingTool | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRParameter paramToCRParam(ParamConfig paramConfig) {
return new CRParameter(paramConfig.getName(), paramConfig.getValue());
} | Helper to transform config repo classes to config-api classes | paramToCRParam | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRTimer timerConfigToCRTimer(TimerConfig timerConfig) {
if (timerConfig == null)
return null;
String spec = timerConfig.getTimerSpec();
if (StringUtils.isBlank(spec))
throw new RuntimeException("timer schedule is not specified");
return new CRTimer(spec, t... | Helper to transform config repo classes to config-api classes | timerConfigToCRTimer | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
CREnvironmentVariable environmentVariableConfigToCREnvironmentVariable(EnvironmentVariableConfig environmentVariableConfig) {
if (environmentVariableConfig.isSecure()) {
return new CREnvironmentVariable(environmentVariableConfig.getName(), null, environmentVariableConfig.getEncryptedValue());
... | Helper to transform config repo classes to config-api classes | environmentVariableConfigToCREnvironmentVariable | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRPluggableScmMaterial pluggableScmMaterialConfigToCRPluggableScmMaterial(PluggableSCMMaterialConfig pluggableScmMaterialConfig) {
SCMs scms = existingServerSCMs();
String id = pluggableScmMaterialConfig.getScmId();
SCM scmConfig = scms.find(id);
if (scmConfig == null)
... | Helper to transform config repo classes to config-api classes | pluggableScmMaterialConfigToCRPluggableScmMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRPackageMaterial packageMaterialToCRPackageMaterial(PackageMaterialConfig packageMaterialConfig) {
return new CRPackageMaterial(packageMaterialConfig.getName().toString(), packageMaterialConfig.getPackageId());
} | Helper to transform config repo classes to config-api classes | packageMaterialToCRPackageMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRDependencyMaterial dependencyMaterialConfigToCRDependencyMaterial(DependencyMaterialConfig dependencyMaterialConfig) {
CRDependencyMaterial crDependencyMaterial = new CRDependencyMaterial(
dependencyMaterialConfig.getPipelineName().toString(),
dependencyMaterialConfig.g... | Helper to transform config repo classes to config-api classes | dependencyMaterialConfigToCRDependencyMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRScmMaterial scmMaterialToCRScmMaterial(ScmMaterialConfig scmConfig) {
String name = null;
if (scmConfig.getName() != null) {
name = scmConfig.getName().toString();
}
if (scmConfig instanceof GitMaterialConfig)
return gitMaterialToCRGitMaterial(name, (Gi... | Helper to transform config repo classes to config-api classes | scmMaterialToCRScmMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRHgMaterial hgMaterialToCRHgMaterial(String materialName, HgMaterialConfig hgMaterialConfig) {
CRHgMaterial crHgMaterial = new CRHgMaterial(materialName, hgMaterialConfig.getFolder(), hgMaterialConfig.isAutoUpdate(), hgMaterialConfig.isInvertFilter(), hgMaterialConfig.getUserName(), hgMaterialConfig.fi... | Helper to transform config repo classes to config-api classes | hgMaterialToCRHgMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRGitMaterial gitMaterialToCRGitMaterial(String materialName, GitMaterialConfig gitMaterialConfig) {
CRGitMaterial crGitMaterial = new CRGitMaterial(materialName, gitMaterialConfig.getFolder(), gitMaterialConfig.isAutoUpdate(), gitMaterialConfig.isInvertFilter(), gitMaterialConfig.getUserName(), gitMate... | Helper to transform config repo classes to config-api classes | gitMaterialToCRGitMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRP4Material p4MaterialToCRP4Material(String materialName, P4MaterialConfig p4MaterialConfig) {
CRP4Material crP4Material = new CRP4Material(materialName, p4MaterialConfig.getFolder(), p4MaterialConfig.isAutoUpdate(), p4MaterialConfig.isInvertFilter(), p4MaterialConfig.getUserName(), p4MaterialConfig.fi... | Helper to transform config repo classes to config-api classes | p4MaterialToCRP4Material | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRSvnMaterial svnMaterialToCRSvnMaterial(String materialName, SvnMaterialConfig svnMaterial) {
CRSvnMaterial crSvnMaterial = new CRSvnMaterial(materialName, svnMaterial.getFolder(), svnMaterial.isAutoUpdate(), svnMaterial.isInvertFilter(), svnMaterial.getUserName(), svnMaterial.filter().ignoredFileNames... | Helper to transform config repo classes to config-api classes | svnMaterialToCRSvnMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
private CRTfsMaterial tfsMaterialToCRTfsMaterial(String materialName, TfsMaterialConfig tfsMaterialConfig) {
CRTfsMaterial crTfsMaterial = new CRTfsMaterial(materialName,
tfsMaterialConfig.getFolder(),
tfsMaterialConfig.isAutoUpdate(),
tfsMaterialConfig.isInvertFi... | Helper to transform config repo classes to config-api classes | tfsMaterialToCRTfsMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
CRMaterial materialToCRMaterial(MaterialConfig materialConfig) {
if (materialConfig == null)
throw new ConfigConvertionException("material cannot be null");
if (materialConfig instanceof DependencyMaterialConfig) {
return dependencyMaterialConfigToCRDependencyMaterial((Dependenc... | Helper to transform config repo classes to config-api classes | materialToCRMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigConverter.java | Apache-2.0 |
public String getUserName() {
return userName;
} | Understands who modified config for a particular update command | getUserName | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigModifyingUser.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigModifyingUser.java | Apache-2.0 |
public static List<CRConfigurationProperty> getCrConfigurations(Configuration configuration) {
return configuration.stream().
map((prop) -> new CRConfigurationProperty(
prop.getConfigKeyName(),
prop.getValue(), // decrypt any secrets
... | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | getCrConfigurations | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
@Override
public PartialConfig load(File configRepoCheckoutDirectory, PartialConfigLoadContext context) {
Collection<CRConfigurationProperty> cRconfigurations = getCrConfigurations(context.configuration());
CRParseResult crPartialConfig = parseDirectory(configRepoCheckoutDirectory, cRconfigurations)... | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | load | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
public String id() {
return this.pluginId;
} | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | id | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
@Override
public String displayName() {
return "Plugin " + this.pluginId;
} | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | displayName | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
public ExportedConfig pipelineExport(PipelineConfig pipelineConfig, String groupName) {
CRPipeline crPipeline = configConverter.pipelineConfigToCRPipeline(pipelineConfig, groupName);
return this.crExtension.pipelineExport(this.pluginId, crPipeline);
} | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | pipelineExport | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
public ConfigFileList getConfigFiles(File configRepoCheckoutDirectory, Collection<CRConfigurationProperty> crConfigurationProperties) {
return this.crExtension.getConfigFiles(this.pluginId, configRepoCheckoutDirectory.getAbsolutePath(), crConfigurationProperties);
} | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | getConfigFiles | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
public PartialConfig parseContent(Map<String, String> content, PartialConfigLoadContext context) {
CRParseResult parseResult = this.crExtension.parseContent(pluginId, content);
if (parseResult.hasErrors()) {
throw new InvalidPartialConfigException(parseResult, parseResult.getErrors().yamlFor... | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | parseContent | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
public CRParseResult parseDirectory(File configRepoCheckoutDirectory, Collection<CRConfigurationProperty> cRconfigurations) {
CRParseResult crParseResult = this.crExtension.parseDirectory(this.pluginId, configRepoCheckoutDirectory.getAbsolutePath(), cRconfigurations);
if (crParseResult.hasErrors())
... | Provides decrypted configuration properties to the config-repo plugin request.
@param configuration the raw properties
@return a list of decrypted, serializable configuration properties | parseDirectory | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigRepoPlugin.java | Apache-2.0 |
public PartialConfigParseResult get(String fingerprint) {
PartialConfigParseResult result = fingerprintOfPartialToParseResultMap.get(fingerprint);
// config repository was never parsed, check if there are any material clone or update related errors
if (result == null) {
result = chec... | Tracks all config-repo parsing states | get | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
void attachConfigUpdateListeners(GoConfigService configService) {
configService.register(new ConfigRepoReparseListener(this));
} | Registers the EntityChangedListener for various classes to mark config-repos for reparse on config updates.
@param configService the {@link GoConfigService} to register events | attachConfigUpdateListeners | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
void markFailedResultsForReparse() {
for (Map.Entry<String, PartialConfigParseResult> entry : fingerprintOfPartialToParseResultMap.entrySet()) {
String fingerprint = entry.getKey();
PartialConfigParseResult result = entry.getValue();
HealthStateScope scope = HealthStateScope... | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | markFailedResultsForReparse | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
private PartialConfigParseResult checkForMaterialErrors(String fingerprint) {
MaterialConfig material = configRepoService.findByFingerprint(fingerprint).getRepo();
HealthStateScope healthStateScope = HealthStateScope.forMaterialConfig(material);
List<ServerHealthState> serverHealthStates = serve... | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | checkForMaterialErrors | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
private Exception asError(ServerHealthState serverHealthState) {
return new Exception(serverHealthState.getMessage().toUpperCase() + "\n" + serverHealthState.getDescription());
} | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | asError | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
Set<String> allFingerprints() {
return fingerprintOfPartialToParseResultMap.keySet();
} | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | allFingerprints | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
PartialConfigParseResult parseFailed(String fingerprint, Modification modification, Exception exception) {
PartialConfigParseResult existingResult = get(fingerprint);
if (existingResult == null) { //if no result exists in the map, create a new one
return fingerprintOfPartialToParseResultMap.... | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | parseFailed | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
PartialConfigParseResult parseSuccess(String fingerprint, Modification modification, PartialConfig newPart) {
//if no result exists in the map, create a new one
//if already a result exists in the map, override the result, as the latest modification is successful. regardless of the result being successf... | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | parseSuccess | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
@Override
public boolean shouldCareAbout(Object entity) {
return configClassesToCareAbout.stream().anyMatch(aClass -> aClass.isAssignableFrom(entity.getClass()));
} | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | shouldCareAbout | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
@Override
public void onEntityConfigChange(Object entity) {
configReposMaterialParseResultManager.markFailedResultsForReparse();
} | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | onEntityConfigChange | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
@Override
public void onConfigChange(CruiseConfig newCruiseConfig) {
configReposMaterialParseResultManager.markFailedResultsForReparse();
} | After a successful update of the server config, we should reparse any failed config-repos in case
any upstream dependency issues have been resolved.
<p>
This clears the last parse states and errors related to config-repos so as to allow reparsing. Should be
used by ConfigChangedListener and EntityConfigChangedListener ... | onConfigChange | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManager.java | Apache-2.0 |
public String fileLocation() {
return cachedConfigService.getFileLocation();
} | Understands how to modify the cruise config sources | fileLocation | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public void addPipeline(PipelineConfig pipelineConfig, String groupName) {
updateConfig(pipelineAdder(pipelineConfig, groupName));
} | Understands how to modify the cruise config sources | addPipeline | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public void addEnvironment(final EnvironmentConfig environmentConfig) {
updateConfig(cruiseConfig -> {
cruiseConfig.getEnvironments().add(environmentConfig);
return cruiseConfig;
});
} | Understands how to modify the cruise config sources | addEnvironment | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public CruiseConfig loadForEditing() {
return cachedConfigService.loadForEditing();
} | Understands how to modify the cruise config sources | loadForEditing | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public CruiseConfig loadMergedForEditing() {
return cachedConfigService.loadMergedForEditing();
} | Understands how to modify the cruise config sources | loadMergedForEditing | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public CruiseConfig load() {
return cachedConfigService.currentConfig();
} | Understands how to modify the cruise config sources | load | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public String md5OfConfigFile() {
return cachedConfigService.currentConfig().getMd5();
} | Understands how to modify the cruise config sources | md5OfConfigFile | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public void updateConfig(EntityConfigUpdateCommand<?> command, Username currentUser) {
LOGGER.info("Config update for entity request by {} is in queue - {}", currentUser, command);
synchronized (GoConfigWriteLock.class) {
try {
LOGGER.info("Config update for entity request by... | Understands how to modify the cruise config sources | updateConfig | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public ConfigSaveState updateConfig(UpdateConfigCommand command) {
ConfigSaveState configSaveState;
LOGGER.info("Config update request by {} is in queue - {}", SessionUtils.currentUsername().getUsername(), command);
synchronized (GoConfigWriteLock.class) {
try {
LOGGE... | Understands how to modify the cruise config sources | updateConfig | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public ConfigSaveState updateFullConfig(FullConfigUpdateCommand command) {
ConfigSaveState configSaveState;
LOGGER.info("Config update request by {} is in queue - {}", SessionUtils.currentUsername().getUsername(), command);
synchronized (GoConfigWriteLock.class) {
try {
... | Understands how to modify the cruise config sources | updateFullConfig | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
private CruiseConfig clonedConfig() {
return cloner.deepClone(cachedConfigService.currentConfig());
} | Understands how to modify the cruise config sources | clonedConfig | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public GoConfigValidity checkConfigFileValid() {
return cachedConfigService.checkConfigFileValid();
} | Understands how to modify the cruise config sources | checkConfigFileValid | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@TestOnly
public void reloadListeners() {
cachedConfigService.reloadListeners();
} | Understands how to modify the cruise config sources | reloadListeners | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@TestOnly
public void forceReload() {
cachedConfigService.forceReload();
} | Understands how to modify the cruise config sources | forceReload | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public List<UpdateConfigCommand> getCommands() {
return commands;
} | Understands how to modify the cruise config sources | getCommands | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public CruiseConfig update(CruiseConfig cruiseConfig) throws Exception {
for (UpdateConfigCommand command : commands) {
cruiseConfig = command.update(cruiseConfig);
}
return cruiseConfig;
} | Understands how to modify the cruise config sources | update | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CompositeConfigCommand command = (CompositeConfigCommand) o;
return... | Understands how to modify the cruise config sources | equals | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public int hashCode() {
return commands.hashCode();
} | Understands how to modify the cruise config sources | hashCode | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public String toString() {
return "CompositeConfigCommand{" +
"commands=" + commands +
'}';
} | Understands how to modify the cruise config sources | toString | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public String unmodifiedMd5() {
return md5;
} | Understands how to modify the cruise config sources | unmodifiedMd5 | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
private UpdateConfigCommand pipelineAdder(final PipelineConfig pipelineConfig, final String groupName) {
return cruiseConfig -> {
cruiseConfig.addPipeline(groupName, pipelineConfig);
return cruiseConfig;
};
} | Understands how to modify the cruise config sources | pipelineAdder | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public UpdateConfigCommand mailHostUpdater(final MailHost mailHost) {
return cruiseConfig -> {
cruiseConfig.server().updateMailHost(mailHost);
return cruiseConfig;
};
} | Understands how to modify the cruise config sources | mailHostUpdater | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public CruiseConfig update(CruiseConfig cruiseConfig) {
RolesConfig rolesConfig = cruiseConfig.server().security().getRoles();
String roleName = roleSelection.getValue();
Role role = rolesConfig.findByName(new CaseInsensitiveString(roleName));
switch (ro... | Understands how to modify the cruise config sources | update | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public CruiseConfig update(CruiseConfig cruiseConfig) {
final AdminsConfig adminsConfig = cruiseConfig.server().security().adminsConfig();
switch (adminPrivilegeSelection.getAction()) {
case add:
if (!adminsConfig.hasUser(new CaseInsensitiveS... | Understands how to modify the cruise config sources | update | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
public GoConfigHolder loadConfigHolder() {
return cachedConfigService.loadConfigHolder();
} | Understands how to modify the cruise config sources | loadConfigHolder | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigDao.java | Apache-2.0 |
@Override
public void onEntityConfigChange(ConfigRepoConfig entity) {
onConfigRepoConfigChange(entity);
} | Parses partial configurations and exposes latest configurations as soon as possible. | onEntityConfigChange | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
public boolean hasListener(PartialConfigUpdateCompletedListener listener) {
return this.listeners.contains(listener);
} | Parses partial configurations and exposes latest configurations as soon as possible. | hasListener | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
@TestOnly
public boolean latestParseHasFailedForMaterial(MaterialConfig material) {
PartialConfigParseResult result = getLastParseResult(material);
if (result == null)
return false;
return !result.isSuccessful();
} | Parses partial configurations and exposes latest configurations as soon as possible. | latestParseHasFailedForMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
public PartialConfigParseResult getLastParseResult(MaterialConfig material) {
return configReposMaterialParseResultManager.get(material.getFingerprint());
} | Parses partial configurations and exposes latest configurations as soon as possible. | getLastParseResult | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
public PartialConfig latestPartialConfigForMaterial(MaterialConfig material) throws Exception {
PartialConfigParseResult result = getLastParseResult(material);
if (result == null)
return null;
if (!result.isSuccessful())
throw result.getLastFailure();
return resu... | Parses partial configurations and exposes latest configurations as soon as possible. | latestPartialConfigForMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
public boolean hasConfigRepoConfigChangedSinceLastUpdate(MaterialConfig material) {
return modifiedConfigRepoConfigsAwaitingParse.contains(configWatchList.getConfigRepoForMaterial(material));
} | Parses partial configurations and exposes latest configurations as soon as possible. | hasConfigRepoConfigChangedSinceLastUpdate | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
@Override
public void onChangedRepoConfigWatchList(ConfigReposConfig newConfigRepos) {
// remove partial configs from map which are no longer on the list
for (String fingerprint : this.configReposMaterialParseResultManager.allFingerprints()) {
if (!newConfigRepos.hasMaterialWithFingerpri... | Parses partial configurations and exposes latest configurations as soon as possible. | onChangedRepoConfigWatchList | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
public void onCheckoutComplete(MaterialConfig material, File folder, Modification modification) {
// called when pipelines/flyweight/[flyweight] has a clean checkout of latest material
// Having modifications in signature might seem like an overkill
// but on the other hand if plugin is smart e... | Parses partial configurations and exposes latest configurations as soon as possible. | onCheckoutComplete | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
private void notifyFailureListeners(ConfigRepoConfig repoConfig, Exception ex) {
for (PartialConfigUpdateCompletedListener listener : this.listeners) {
try {
listener.onFailedPartialConfig(repoConfig, ex);
} catch (Exception e) {
LOGGER.error("Failed to fi... | Parses partial configurations and exposes latest configurations as soon as possible. | notifyFailureListeners | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
private void notifySuccessListeners(ConfigRepoConfig repoConfig, PartialConfig newPart) {
if (this.listeners.isEmpty()) {
// likely to never get here, but including for logical completeness
serverHealthService.removeByScope(HealthStateScope.forPartialConfigRepo(repoConfig));
... | Parses partial configurations and exposes latest configurations as soon as possible. | notifySuccessListeners | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
public String getRevisionAtLastAttempt(MaterialConfig material) {
PartialConfigParseResult result = getLastParseResult(material);
if (result == null || result.getLatestParsedModification() == null)
return null;
return result.getLatestParsedModification().getRevision();
} | Parses partial configurations and exposes latest configurations as soon as possible. | getRevisionAtLastAttempt | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
@Override
public Configuration configuration() {
return repoConfig.getConfiguration();
} | Parses partial configurations and exposes latest configurations as soon as possible. | configuration | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
@Override
public MaterialConfig configMaterial() {
return this.repoConfig.getRepo();
} | Parses partial configurations and exposes latest configurations as soon as possible. | configMaterial | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoConfigRepoConfigDataSource.java | Apache-2.0 |
public GoConfigHolder getConfigHolder() {
return configHolder;
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | getConfigHolder | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
public ConfigSaveState getConfigSaveState() {
return configSaveState;
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | getConfigSaveState | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public ReloadTestResult requiresReload(File configFile) {
return new ReloadTestResult(true, 0, 0);
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | requiresReload | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public void latestState(CruiseConfig config) {
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | latestState | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public void hasLatest(ReloadTestResult result) {
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | hasLatest | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public void performingReload(ReloadTestResult result) {
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | performingReload | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public ReloadTestResult requiresReload(File configFile) {
long lastModified = lastModified(configFile);
long length = length(configFile);
boolean requiresReload = requiresReload(configFile, lastModified, length);
return new ReloadTestResult(requiresReloa... | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | requiresReload | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public void latestState(CruiseConfig config) {
md5 = config.getMd5();
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | latestState | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public void hasLatest(ReloadTestResult result) {
rememberLatestFileAttributes(result);
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | hasLatest | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
@Override
public void performingReload(ReloadTestResult result) {
rememberLatestFileAttributes(result);
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | performingReload | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
boolean doesFileContentDiffer(File configFile) {
return !md5.equals(getConfigFileMd5(configFile));
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | doesFileContentDiffer | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
boolean doFileAttributesDiffer(long currentLastModified, long currentSize) {
return currentLastModified != lastModified ||
prevSize != currentSize;
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | doFileAttributesDiffer | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
private long length(File configFile) {
return configFile.length();
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | length | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
private long lastModified(File configFile) {
return configFile.lastModified();
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | lastModified | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
private boolean requiresReload(File configFile, long currentLastModified, long currentSize) {
return doFileAttributesDiffer(currentLastModified, currentSize) && doesFileContentDiffer(configFile);
} | This class find the location of cruise-config.xml and turn that into stream
and passing it into MagicLoader or MagicWriter. | requiresReload | java | gocd/gocd | server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/config/GoFileConfigDataSource.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.