forked from RUB-NDS/WS-TLS-Scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new debugging functionalilities and fixed some bugs
- Loading branch information
Showing
11 changed files
with
257 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
target/ | ||
release.properties | ||
/nbproject/ | ||
/nbproject/ | ||
apps/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* SIWECOS-TLS-Scanner - A Webservice for the TLS-Scanner Module of TLS-Attacker | ||
* | ||
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH | ||
* | ||
* Licensed under Apache License 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
*/ | ||
package de.rub.nds.siwecos.tls; | ||
|
||
public class DebugManager { | ||
|
||
private boolean debugEnabled = false; | ||
|
||
private static DebugManager instance = null; | ||
|
||
private DebugManager() { | ||
} | ||
|
||
public synchronized boolean isDebugEnabled() { | ||
return debugEnabled; | ||
} | ||
|
||
public synchronized void setDebugEnabled(boolean debugEnabled) { | ||
this.debugEnabled = debugEnabled; | ||
} | ||
|
||
public static DebugManager getInstance() { | ||
if (instance == null) { | ||
instance = new DebugManager(); | ||
} | ||
return instance; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,5 @@ | |
public class Main { | ||
|
||
public static void main(String args[]) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/** | ||
* SIWECOS-TLS-Scanner - A Webservice for the TLS-Scanner Module of TLS-Attacker | ||
* | ||
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH | ||
* | ||
* Licensed under Apache License 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
*/ | ||
package de.rub.nds.siwecos.tls.ws; | ||
|
||
public class DebugOutput { | ||
|
||
private Integer initialQueueLenght; | ||
|
||
private Integer finalQueueSize; | ||
|
||
private Long timeInQueue; | ||
|
||
private Long enteredQueueAt; | ||
|
||
private Long leftQueueAt; | ||
|
||
private Long scanStartedAt; | ||
|
||
private Long scanFinisedAt; | ||
|
||
public DebugOutput(Integer initialQueueLenght, long enteredQueueAt) { | ||
this.initialQueueLenght = initialQueueLenght; | ||
this.enteredQueueAt = enteredQueueAt; | ||
} | ||
|
||
public Integer getInitialQueueLenght() { | ||
return initialQueueLenght; | ||
} | ||
|
||
public void setInitialQueueLenght(Integer initialQueueLenght) { | ||
this.initialQueueLenght = initialQueueLenght; | ||
} | ||
|
||
public Integer getFinalQueueSize() { | ||
return finalQueueSize; | ||
} | ||
|
||
public void setFinalQueueSize(Integer finalQueueSize) { | ||
this.finalQueueSize = finalQueueSize; | ||
} | ||
|
||
public Long getTimeInQueue() { | ||
return timeInQueue; | ||
} | ||
|
||
public void setTimeInQueue(Long timeInQueue) { | ||
this.timeInQueue = timeInQueue; | ||
} | ||
|
||
public Long getEnteredQueueAt() { | ||
return enteredQueueAt; | ||
} | ||
|
||
public void setEnteredQueueAt(Long enteredQueueAt) { | ||
this.enteredQueueAt = enteredQueueAt; | ||
} | ||
|
||
public Long getLeftQueueAt() { | ||
return leftQueueAt; | ||
} | ||
|
||
public void setLeftQueueAt(Long leftQueueAt) { | ||
this.leftQueueAt = leftQueueAt; | ||
} | ||
|
||
public Long getScanStartedAt() { | ||
return scanStartedAt; | ||
} | ||
|
||
public void setScanStartedAt(Long scanStartedAt) { | ||
this.scanStartedAt = scanStartedAt; | ||
} | ||
|
||
public Long getScanFinisedAt() { | ||
return scanFinisedAt; | ||
} | ||
|
||
public void setScanFinisedAt(Long scanFinisedAt) { | ||
this.scanFinisedAt = scanFinisedAt; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/de/rub/nds/siwecos/tls/ws/PoolsizeChangeRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* SIWECOS-TLS-Scanner - A Webservice for the TLS-Scanner Module of TLS-Attacker | ||
* | ||
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH | ||
* | ||
* Licensed under Apache License 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
*/ | ||
package de.rub.nds.siwecos.tls.ws; | ||
|
||
public class PoolsizeChangeRequest { | ||
|
||
private int size; | ||
|
||
public PoolsizeChangeRequest(int size) { | ||
this.size = size; | ||
} | ||
|
||
public PoolsizeChangeRequest() { | ||
} | ||
|
||
public int getSize() { | ||
return size; | ||
} | ||
|
||
public void setSize(int size) { | ||
this.size = size; | ||
} | ||
} |
Oops, something went wrong.