Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from lordofthejars/master
resolves issue #110 by adding connection mode
- Loading branch information
Showing
8 changed files
with
163 additions
and
32 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
docker/src/main/java/org/arquillian/cube/impl/client/ConnectionMode.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,21 @@ | ||
package org.arquillian.cube.impl.client; | ||
|
||
public enum ConnectionMode { | ||
STARTANDSTOP(false, true), STARTORCONNECT(true, true), STARTORCONNECTANDLEAVE(true, false); | ||
|
||
private boolean allowReconnect = false; | ||
private boolean stoppable = true; | ||
|
||
private ConnectionMode(boolean allowReconnect, boolean stoppable) { | ||
this.allowReconnect = allowReconnect; | ||
this.stoppable = stoppable; | ||
} | ||
|
||
public boolean isAllowReconnect() { | ||
return allowReconnect; | ||
} | ||
|
||
public boolean isStoppable() { | ||
return stoppable; | ||
} | ||
} |
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
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
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