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

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

public class ContainerPorts
extends java.lang.Object

PortPreference

Version:
$Id: multiscaleEclipseCodeTemplates.xml,v 1.1 2007/03/02 14:35:01 dervin Exp $
Author:
oster, ervin

Constructor Summary
ContainerPorts(java.lang.Integer port, java.lang.Integer shutdownPort)
           
 
Method Summary
 java.lang.Integer getPort()
          If specificPort is specified, that is returned.
 java.lang.Integer getShutdownPort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerPorts

public ContainerPorts(java.lang.Integer port,
                      java.lang.Integer shutdownPort)
Method Detail

getPort

public java.lang.Integer getPort()
                          throws NoAvailablePortException
If specificPort is specified, that is returned. Otherwise, will search the port range (inclusive) and find a port that can be bound to, which is not listed in the portExcludes.

Returns:
The port number
Throws:
NoAvailablePortException

getShutdownPort

public java.lang.Integer getShutdownPort()
                                  throws NoAvailablePortException
Throws:
NoAvailablePortException