gov.nih.nci.cagrid.testing.system.deployment
Class PortFactory

java.lang.Object
  extended by gov.nih.nci.cagrid.testing.system.deployment.PortFactory

public class PortFactory
extends java.lang.Object

PortFactory Utility to hand out PortPreference instances in a static way. This should help in the static initialization which Haste uses when setting up story steps.

Version:
$Id: PortFactory.java,v 1.7 2008/02/25 16:04:52 hastings Exp $
Author:
David Ervin

Constructor Summary
PortFactory()
           
 
Method Summary
static java.util.List<java.lang.Integer> getAssignedPortNumbers()
           
static ContainerPorts getContainerPorts()
           
static void reclaimPorts()
          Iterates through all assigned ports and checks if they are currently bound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortFactory

public PortFactory()
Method Detail

getContainerPorts

public static ContainerPorts getContainerPorts()
                                        throws NoAvailablePortException
Throws:
NoAvailablePortException

getAssignedPortNumbers

public static java.util.List<java.lang.Integer> getAssignedPortNumbers()

reclaimPorts

public static void reclaimPorts()
Iterates through all assigned ports and checks if they are currently bound. All unbound ports will be removed from the assignment list, and made available for future assignment.