diff --git a/VerteilteSysteme-Examples/src/verteiltesysteme/aws/TCPTimeCounterRESTService.java b/VerteilteSysteme-Examples/src/verteiltesysteme/aws/TCPTimeCounterRESTService.java index 00f4e0c..377978e 100644 --- a/VerteilteSysteme-Examples/src/verteiltesysteme/aws/TCPTimeCounterRESTService.java +++ b/VerteilteSysteme-Examples/src/verteiltesysteme/aws/TCPTimeCounterRESTService.java @@ -14,9 +14,6 @@ public class TCPTimeCounterRESTService { static final String bucketName = "vertsys-counter"; static final String bucketRegion = "eu-central-1"; - static final String dnsNameELB = "cloudcomp-loadbalancer-1492513132.eu-central-1.elb.amazonaws.com"; - static final int portELBTarget = 36042; - private Long getCounter() { // Verbindung zu S3 AmazonS3 s3Client = AmazonS3ClientBuilder.defaultClient(); @@ -41,8 +38,11 @@ public class TCPTimeCounterRESTService { public String getCounterHtml() { return "TCPTimeCounter REST Service" + "" + - "

Cloud Computing HS Fulda - TCPTimeCounter REST Service

"+ - "

HTML-Output: " + getCounter() + "

"; + "

HS Fulda - TCPTimeCounter REST Service

"+ + "

HTML-Output: " + getCounter() + "

"+ + "
" + + ""+ + "
"; } @GET @@ -68,12 +68,13 @@ public class TCPTimeCounterRESTService { Long currentCounterValue = getCounter(); currentCounterValue = currentCounterValue + (new Long(input)).longValue(); setCounter(currentCounterValue); - return "TCPTimeCounter REST Service" + - "

Cloud Computing HS Fulda - TCPTimeCounter REST Service

" + - "

HTML-Output: counter increased by " + - input + " to " + currentCounterValue + "

" + - "
" + - "
"; + return "TCPTimeCounter REST Service" + + "" + + "

HS Fulda - TCPTimeCounter REST Service

"+ + "

HTML-Output: " + getCounter() + "

"+ + "
" + + ""+ + "
"; } @POST