GigaSpaces XAP 9.5 API

org.openspaces.pu.container.jee.jetty.support
Class FileLockFreePortGenerator

java.lang.Object
  extended by 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

Nested Class Summary
static class FileLockFreePortGenerator.FileLockPortHandle
           
 
Nested classes/interfaces inherited from interface org.openspaces.pu.container.jee.jetty.support.FreePortGenerator
FreePortGenerator.PortHandle
 
Constructor Summary
FileLockFreePortGenerator()
           
 
Method Summary
 FreePortGenerator.PortHandle nextAvailablePort(int startFromPort, int retryCount)
          Generate the next available port from the start port and for retry count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLockFreePortGenerator

public FileLockFreePortGenerator()
Method Detail

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

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.