Class GWTCodeServerPortLeaserImpl
- java.lang.Object
-
- org.guvnor.ala.build.maven.executor.gwt.GWTCodeServerPortLeaserImpl
-
- All Implemented Interfaces:
GWTCodeServerPortLeaser
@ApplicationScoped public class GWTCodeServerPortLeaserImpl extends Object implements GWTCodeServerPortLeaser
-
-
Field Summary
Fields Modifier and Type Field Description protected static intCODE_SERVER_HIGHEST_PORTprotected static intCODE_SERVER_LOWEST_PORTprotected Map<String,Integer>codeServerByProjectprotected Set<Integer>leasedCodeServerPorts
-
Constructor Summary
Constructors Constructor Description GWTCodeServerPortLeaserImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.guvnor.ala.config.gwt.CodeServerPortHandlegetAvailableCodeServerPort()IntegergetCodeServerPortNumber(String projectName)booleanisCodeServerRunning(String projectName)voidsetCodeServerForProject(String projectName, Integer portNumber)
-
-
-
Field Detail
-
CODE_SERVER_LOWEST_PORT
protected static final int CODE_SERVER_LOWEST_PORT
- See Also:
- Constant Field Values
-
CODE_SERVER_HIGHEST_PORT
protected static final int CODE_SERVER_HIGHEST_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isCodeServerRunning
public boolean isCodeServerRunning(String projectName)
- Specified by:
isCodeServerRunningin interfaceGWTCodeServerPortLeaser
-
getCodeServerPortNumber
public Integer getCodeServerPortNumber(String projectName)
- Specified by:
getCodeServerPortNumberin interfaceGWTCodeServerPortLeaser
-
setCodeServerForProject
public void setCodeServerForProject(String projectName, Integer portNumber)
- Specified by:
setCodeServerForProjectin interfaceGWTCodeServerPortLeaser
-
getAvailableCodeServerPort
public org.guvnor.ala.config.gwt.CodeServerPortHandle getAvailableCodeServerPort()
- Specified by:
getAvailableCodeServerPortin interfaceGWTCodeServerPortLeaser
-
-