org.iids.aos.kernel.mux
Class ListenPort

java.lang.Object
  extended by org.iids.aos.kernel.mux.ListenPort
All Implemented Interfaces:
KernelResource, SelectableKernelResource

public class ListenPort
extends java.lang.Object
implements SelectableKernelResource

The object that represents a listen port and therefore a virtual contact point, and buffers incoming virtual connections. A ListenPort is created by a ListenPortTable. Thread safe.

Author:
Patrick Verkaik

Constructor Summary
ListenPort(int portNumber, int backlog, java.lang.String[] secSuites)
          Constructor.
 
Method Summary
 Role getOwner()
          Returns the owner of this port
 int getPortNumber()
          Returns the port number allocated to this port.
 java.lang.String[] getSecSuites()
          Returns the security suites allowed for this port.
 SelectRendezvous getSelectRendezvous()
           
 void notifyAccepters()
          Notify blocking accepters
 void notifySelecters()
           
 void setOwner(Role r)
          Sets the owner of this port
 void setSelectRendezvous(SelectRendezvous sr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenPort

public ListenPort(int portNumber,
                  int backlog,
                  java.lang.String[] secSuites)
Constructor. Normally only called by ListenPortTable.

Parameters:
portNumber - the port number allocated to this port
backlog - maximum number of pending connections allowed, 0 to leave unspecified
secSuites - a series of cipher suites acceptable to the caller, or null or empty to leave unspecified
Method Detail

getPortNumber

public int getPortNumber()
Returns the port number allocated to this port.


getSecSuites

public java.lang.String[] getSecSuites()
Returns the security suites allowed for this port.

Returns:
the allowed security suites for this port

setOwner

public void setOwner(Role r)
              throws KernelException
Sets the owner of this port

Specified by:
setOwner in interface KernelResource
Specified by:
setOwner in interface SelectableKernelResource
Parameters:
r - the owner role
Throws:
KernelException

getOwner

public Role getOwner()
Returns the owner of this port

Specified by:
getOwner in interface KernelResource
Specified by:
getOwner in interface SelectableKernelResource
Returns:
the owner role

getSelectRendezvous

public SelectRendezvous getSelectRendezvous()
Specified by:
getSelectRendezvous in interface SelectableKernelResource

setSelectRendezvous

public void setSelectRendezvous(SelectRendezvous sr)
Specified by:
setSelectRendezvous in interface SelectableKernelResource

notifySelecters

public void notifySelecters()

notifyAccepters

public void notifyAccepters()
Notify blocking accepters



Copyright © 2003, 2004 IIDS Group. All Rights Reserved.