public class GridFTPServerFacade extends FTPServerFacade
FTPServerFacade.LocalControlChannel| Modifier and Type | Field and Description |
|---|---|
protected GridFTPSession |
gSession |
protected SocketPool |
socketPool |
protected StripeContextManager |
stripeRetrContextManager |
protected TransferThreadManager |
transferThreadManager |
ANY_PORT, dataChannelFactory, DEFAULT_QUEUE, localControlChannel, remoteControlChannel, remoteServerAddress, serverSocket, session| Constructor and Description |
|---|
GridFTPServerFacade(GridFTPControlChannel remoteControlChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
close data channels, but not control, nor the server
|
static java.net.Socket |
authenticate(java.net.Socket simpleSocket,
boolean isClientSocket,
org.ietf.jgss.GSSCredential credential,
int protection,
DataChannelAuthentication dcau)
authenticate socket.
|
void |
close() |
protected TransferContext |
createTransferContext() |
TransferThreadManager |
createTransferThreadManager() |
void |
retrieve(DataSource source)
Retrieve the data from the data source and write to the data channel.
|
void |
setActive(HostPort hp)
Asynchronous; return before completion.
|
void |
setCredential(org.ietf.jgss.GSSCredential cred) |
void |
setDataChannelAuthentication(DataChannelAuthentication authentication) |
void |
setDataChannelProtection(int protection) |
void |
setOptions(Options opts)
Do nothing; this class does not support any options
|
HostPort |
setPassive(int port,
int queue)
Start the local server
|
void |
setStripedActive(HostPortList hpl) |
HostPortList |
setStripedPassive() |
HostPortList |
setStripedPassive(int port,
int queue) |
void |
setTCPBufferSize(int size)
This method needs to be called BEFORE the local socket(s) get created.
|
void |
store(DataSink sink)
Store the data from the data channel to the data sink.
|
protected void |
transferAbort() |
authorize, cannotPropagateError, exceptionToControlChannel, exceptionToControlChannel, getControlChannel, getSession, setPassive, setProtectionBufferSize, setTransferMode, setTransferType, stopTaskThread, unblockServerprotected GridFTPSession gSession
protected SocketPool socketPool
protected TransferThreadManager transferThreadManager
protected StripeContextManager stripeRetrContextManager
public GridFTPServerFacade(GridFTPControlChannel remoteControlChannel)
public void setCredential(org.ietf.jgss.GSSCredential cred)
public void setDataChannelProtection(int protection)
public void setDataChannelAuthentication(DataChannelAuthentication authentication)
public void setOptions(Options opts)
FTPServerFacadesetOptions in class FTPServerFacadepublic void setTCPBufferSize(int size)
throws ClientException
ClientExceptionprotected void transferAbort()
transferAbort in class FTPServerFacadepublic void setActive(HostPort hp) throws java.net.UnknownHostException, ClientException, java.io.IOException
FTPServerFacadesetActive in class FTPServerFacadejava.net.UnknownHostExceptionClientExceptionjava.io.IOExceptionpublic void setStripedActive(HostPortList hpl) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostExceptionjava.io.IOExceptionpublic HostPort setPassive(int port, int queue) throws java.io.IOException
FTPServerFacadesetPassive in class FTPServerFacadeport - required server port; can be set to ANY_PORTqueue - max size of queue of awaiting new connection
requestsjava.io.IOExceptionpublic HostPortList setStripedPassive() throws java.io.IOException
java.io.IOExceptionpublic HostPortList setStripedPassive(int port, int queue) throws java.io.IOException
java.io.IOExceptionpublic void store(DataSink sink)
store in class FTPServerFacadesink - source of datapublic void retrieve(DataSource source)
retrieve in class FTPServerFacadesource - source of datapublic void abort()
throws java.io.IOException
FTPServerFacadeabort in class FTPServerFacadejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class FTPServerFacadejava.io.IOExceptionpublic static java.net.Socket authenticate(java.net.Socket simpleSocket,
boolean isClientSocket,
org.ietf.jgss.GSSCredential credential,
int protection,
DataChannelAuthentication dcau)
throws java.lang.Exception
java.lang.Exceptionprotected TransferContext createTransferContext()
createTransferContext in class FTPServerFacadepublic TransferThreadManager createTransferThreadManager()
Copyright © 2013. All Rights Reserved.