Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
Remove CallBackAdress parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
aabherve committed Apr 28, 2017
1 parent ee61188 commit 5fe02b1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target/
target/
application.properties
5 changes: 2 additions & 3 deletions application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
measure.repository.path=C:/Users/aabherve/Desktop/Platform/storage/repository_remote
measure.repository.path=C:/work/MEASURE/Platform/storage/repository_remote
measure.server.adress=localhost:80
measure.callback.adress=localhost
measure.agent.name=TestAgent
measure.agent.name=AABAgent
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public class PlatformRegistrator implements SchedulingConfigurer {
@Value("${measure.server.adress}")
private String serverAdress;

@Value("${measure.callback.adress}")
private String callbackAdress;

@Value("${measure.agent.name}")
private String agentName;

Expand Down Expand Up @@ -54,8 +51,6 @@ public void reportCurrentTime() {

private void registerMeasures(){
for (SMMMeasure measure : catalogueService.getAllMeasures()) {

measure.setCallbackAdress(callbackAdress);
measure.setCallbackLable(agentName);
measure.setName(measure.getName() + " (" + agentName + ")");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public class RemoteExecutionService implements IRemoteExecutionService {
@Value("${measure.server.adress}")
private String serverAdress;

@Value("${measure.callback.adress}")
private String callbackAdress;

@Value("${measure.agent.name}")
private String agentName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public class MeasureSchedulingConfigurer implements SchedulingConfigurer {
@Value("${measure.server.adress}")
private String serverAdress;

@Value("${measure.callback.adress}")
private String callbackAdress;

@Value("${measure.agent.name}")
private String agentName;

Expand Down Expand Up @@ -63,7 +60,7 @@ public void reportCurrentTime() {
System.out.println(url);

MultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();
map.add("id", callbackAdress);
map.add("id", agentName);



Expand Down

0 comments on commit 5fe02b1

Please sign in to comment.