|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.kernel.mux.ListenPortTable
public class ListenPortTable
The object that manages a multiplexers listen ports. The port number is allocated using a LocalDescriptorTable. Thread safe.
| Constructor Summary | |
|---|---|
ListenPortTable(LocalDescriptorTable ldt)
|
|
| Method Summary | |
|---|---|
ListenPort[] |
clear()
Removes and returns all ListenPorts in the table. |
java.lang.Integer[] |
copyKeys()
|
ListenPort |
create(int portNumber,
int backlog,
java.lang.String[] secSuites)
Creates a new listen port with the specified listen port number. |
ListenPort |
create(int backlog,
java.lang.String[] secSuites)
Creates a new listen port, and allocates an available port number from the top of the number range. |
java.lang.String[] |
getSecSuitesUnion(java.lang.String[] secSuites)
Return the union of the allowed security suites of all the listening ports |
ListenPort |
lookup(int portNumber)
Looks up an existing listen port. |
ListenPort |
remove(int portNumber)
Removes a listen port from the table, and deallocates the port number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListenPortTable(LocalDescriptorTable ldt)
| Method Detail |
|---|
public ListenPort lookup(int portNumber)
portNumber - the port number
public ListenPort create(int portNumber,
int backlog,
java.lang.String[] secSuites)
throws BadArgumentException
portNumber - a positive port numberbacklog - maximum number of pending connections allowed,
0 to leave unspecifiedsecSuites - a series of cipher suites acceptable to the caller, or
null or empty to leave unspecified
IOException - if the port number is already in use
BadArgumentException
public ListenPort create(int backlog,
java.lang.String[] secSuites)
throws LimitExceededException
backlog - maximum number of pending connections allowed,
0 to leave unspecifiedsecSuites - a series of cipher suites acceptable to the caller, or
null or empty to leave unspecified
LimitExceededExceptionpublic ListenPort remove(int portNumber)
public ListenPort[] clear()
public java.lang.String[] getSecSuitesUnion(java.lang.String[] secSuites)
secSuites - the set of security suites for the new portpublic java.lang.Integer[] copyKeys()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||