-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add blazemeter logo and fix line endings for consistency
Additionally: - Include in readme reference to forked emulators for clarity - Increase version for public release - Refactor RTEConfigPanel to ease maintenance
- Loading branch information
1 parent
3db5394
commit 78221bf
Showing
44 changed files
with
2,727 additions
and
2,659 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
76 changes: 38 additions & 38 deletions
76
src/main/java/com/blazemeter/jmeter/rte/core/AttentionKey.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 |
---|---|---|
@@ -1,38 +1,38 @@ | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
public enum AttentionKey { | ||
F1, | ||
F2, | ||
F3, | ||
F4, | ||
F5, | ||
F6, | ||
F7, | ||
F8, | ||
F9, | ||
F10, | ||
F11, | ||
F12, | ||
F13, | ||
F14, | ||
F15, | ||
F16, | ||
F17, | ||
F18, | ||
F19, | ||
F20, | ||
F21, | ||
F22, | ||
F23, | ||
F24, | ||
ENTER, | ||
ATTN, | ||
CLEAR, | ||
SYSRQ, | ||
RESET, | ||
ROLL_UP, | ||
ROLL_DN, | ||
PA1, | ||
PA2, | ||
PA3 | ||
} | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
public enum AttentionKey { | ||
F1, | ||
F2, | ||
F3, | ||
F4, | ||
F5, | ||
F6, | ||
F7, | ||
F8, | ||
F9, | ||
F10, | ||
F11, | ||
F12, | ||
F13, | ||
F14, | ||
F15, | ||
F16, | ||
F17, | ||
F18, | ||
F19, | ||
F20, | ||
F21, | ||
F22, | ||
F23, | ||
F24, | ||
ENTER, | ||
ATTN, | ||
CLEAR, | ||
SYSRQ, | ||
RESET, | ||
ROLL_UP, | ||
ROLL_DN, | ||
PA1, | ||
PA2, | ||
PA3 | ||
} |
40 changes: 20 additions & 20 deletions
40
src/main/java/com/blazemeter/jmeter/rte/core/CoordInput.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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
public class CoordInput { | ||
|
||
private final Position position; | ||
private final String input; | ||
|
||
public CoordInput(Position pos, String in) { | ||
position = pos; | ||
input = in; | ||
} | ||
|
||
public Position getPosition() { | ||
return position; | ||
} | ||
|
||
public String getInput() { | ||
return input; | ||
} | ||
} | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
public class CoordInput { | ||
|
||
private final Position position; | ||
private final String input; | ||
|
||
public CoordInput(Position pos, String in) { | ||
position = pos; | ||
input = in; | ||
} | ||
|
||
public Position getPosition() { | ||
return position; | ||
} | ||
|
||
public String getInput() { | ||
return input; | ||
} | ||
} |
90 changes: 45 additions & 45 deletions
90
src/main/java/com/blazemeter/jmeter/rte/core/ExceptionHandler.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 |
---|---|---|
@@ -1,45 +1,45 @@ | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
import com.blazemeter.jmeter.rte.core.listener.ConditionWaiter; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class ExceptionHandler { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(ExceptionHandler.class); | ||
|
||
private List<ConditionWaiter> listeners = new ArrayList<>(); | ||
private Throwable pendingError; | ||
|
||
public synchronized void setPendingError(Throwable ex) { | ||
if (pendingError == null) { | ||
pendingError = ex; | ||
listeners.forEach(ConditionWaiter::onException); | ||
} else { | ||
LOG.error("Exception ignored in step result due to previously thrown exception", ex); | ||
} | ||
} | ||
|
||
public synchronized boolean hasPendingError() { | ||
return pendingError != null; | ||
} | ||
|
||
public synchronized void throwAnyPendingError() throws RteIOException { | ||
if (pendingError != null) { | ||
Throwable ret = pendingError; | ||
pendingError = null; | ||
throw new RteIOException(ret); | ||
} | ||
} | ||
|
||
public void removeListener(ConditionWaiter listener) { | ||
listeners.remove(listener); | ||
} | ||
|
||
public void addListener(ConditionWaiter listener) { | ||
listeners.add(listener); | ||
} | ||
|
||
} | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
import com.blazemeter.jmeter.rte.core.listener.ConditionWaiter; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class ExceptionHandler { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(ExceptionHandler.class); | ||
|
||
private List<ConditionWaiter> listeners = new ArrayList<>(); | ||
private Throwable pendingError; | ||
|
||
public synchronized void setPendingError(Throwable ex) { | ||
if (pendingError == null) { | ||
pendingError = ex; | ||
listeners.forEach(ConditionWaiter::onException); | ||
} else { | ||
LOG.error("Exception ignored in step result due to previously thrown exception", ex); | ||
} | ||
} | ||
|
||
public synchronized boolean hasPendingError() { | ||
return pendingError != null; | ||
} | ||
|
||
public synchronized void throwAnyPendingError() throws RteIOException { | ||
if (pendingError != null) { | ||
Throwable ret = pendingError; | ||
pendingError = null; | ||
throw new RteIOException(ret); | ||
} | ||
} | ||
|
||
public void removeListener(ConditionWaiter listener) { | ||
listeners.remove(listener); | ||
} | ||
|
||
public void addListener(ConditionWaiter listener) { | ||
listeners.add(listener); | ||
} | ||
|
||
} |
42 changes: 21 additions & 21 deletions
42
src/main/java/com/blazemeter/jmeter/rte/core/Protocol.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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
import com.blazemeter.jmeter.rte.protocols.tn3270.Tn3270Client; | ||
import com.blazemeter.jmeter.rte.protocols.tn5250.Tn5250Client; | ||
import java.util.function.Supplier; | ||
|
||
public enum Protocol { | ||
TN5250(Tn5250Client::new), | ||
TN3270(Tn3270Client::new); | ||
|
||
private final Supplier<RteProtocolClient> factory; | ||
|
||
Protocol(Supplier<RteProtocolClient> s) { | ||
this.factory = s; | ||
} | ||
|
||
public RteProtocolClient createProtocolClient() { | ||
return factory.get(); | ||
} | ||
} | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
import com.blazemeter.jmeter.rte.protocols.tn3270.Tn3270Client; | ||
import com.blazemeter.jmeter.rte.protocols.tn5250.Tn5250Client; | ||
import java.util.function.Supplier; | ||
|
||
public enum Protocol { | ||
TN5250(Tn5250Client::new), | ||
TN3270(Tn3270Client::new); | ||
|
||
private final Supplier<RteProtocolClient> factory; | ||
|
||
Protocol(Supplier<RteProtocolClient> s) { | ||
this.factory = s; | ||
} | ||
|
||
public RteProtocolClient createProtocolClient() { | ||
return factory.get(); | ||
} | ||
} | ||
|
18 changes: 9 additions & 9 deletions
18
src/main/java/com/blazemeter/jmeter/rte/core/RteIOException.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
public class RteIOException extends Exception { | ||
|
||
public RteIOException(Throwable cause) { | ||
super("Communication error with RTE client", cause); | ||
} | ||
|
||
} | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
public class RteIOException extends Exception { | ||
|
||
public RteIOException(Throwable cause) { | ||
super("Communication error with RTE client", cause); | ||
} | ||
|
||
} |
48 changes: 24 additions & 24 deletions
48
src/main/java/com/blazemeter/jmeter/rte/core/TerminalType.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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
import java.awt.Dimension; | ||
|
||
public class TerminalType { | ||
|
||
private final String id; | ||
private final Dimension screenSize; | ||
|
||
public TerminalType(String id, Dimension screenSize) { | ||
this.id = id; | ||
this.screenSize = screenSize; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return id + ": " + screenSize.height + "x" + screenSize.width; | ||
} | ||
|
||
} | ||
package com.blazemeter.jmeter.rte.core; | ||
|
||
import java.awt.Dimension; | ||
|
||
public class TerminalType { | ||
|
||
private final String id; | ||
private final Dimension screenSize; | ||
|
||
public TerminalType(String id, Dimension screenSize) { | ||
this.id = id; | ||
this.screenSize = screenSize; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return id + ": " + screenSize.height + "x" + screenSize.width; | ||
} | ||
|
||
} |
Oops, something went wrong.