org.openspaces.pu.container.jee.jetty.support
Class FileLockFreePortGenerator
java.lang.Object
  
org.openspaces.pu.container.jee.jetty.support.FileLockFreePortGenerator
- All Implemented Interfaces: 
 - FreePortGenerator
 
public class FileLockFreePortGenerator
- extends Object
- implements FreePortGenerator
  
A free port generator that uses file locks in order to obtain a port. Aimed at trying to fix the problem
 that several jetty connectors can be opened on the same port on windows.
- Author:
 
  - kimchy
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FileLockFreePortGenerator
public FileLockFreePortGenerator()
nextAvailablePort
public FreePortGenerator.PortHandle nextAvailablePort(int startFromPort,
                                                      int retryCount)
- Description copied from interface: 
FreePortGenerator 
- Generate the next available port from the start port and for retry count.
- Specified by:
 nextAvailablePort in interface FreePortGenerator
 
 
 
Copyright © GigaSpaces.