public class FTPDataSessionTable
extends java.lang.Object
Keeps track of FTP data session objects using the local port number as the index.
| Constructor and Description |
|---|
FTPDataSessionTable()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(int port,
FTPDataSession sess)
Add a session to the table
|
FTPDataSession |
findSession(int port)
Find the session using the specified local port
|
int |
numberOfSessions()
Return the number of sessions in the table
|
void |
removeAllSessions()
Remove all sessions from the table
|
FTPDataSession |
removeSession(FTPDataSession sess)
Remove a session from the table
|
public final void addSession(int port,
FTPDataSession sess)
port - intsess - FTPDataSessionpublic final FTPDataSession findSession(int port)
port - intpublic final int numberOfSessions()
public final FTPDataSession removeSession(FTPDataSession sess)
sess - FTPDataSessionpublic final void removeAllSessions()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.