Class GridFTPServerFacade
java.lang.Object
org.globus.ftp.vanilla.FTPServerFacade
org.globus.ftp.extended.GridFTPServerFacade
-
Nested Class Summary
Nested classes/interfaces inherited from class FTPServerFacade
FTPServerFacade.LocalControlChannel -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GridFTPSessionprivate static org.apache.commons.logging.Logprotected SocketPoolprotected StripeContextManagerprotected TransferThreadManagerFields inherited from class FTPServerFacade
ANY_PORT, dataChannelFactory, DEFAULT_QUEUE, localControlChannel, remoteControlChannel, remoteServerAddress, serverSocket, session -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()close data channels, but not control, nor the serverstatic Socketauthenticate(Socket simpleSocket, boolean isClientSocket, GSSCredential credential, int protection, DataChannelAuthentication dcau) authenticate socket.voidclose()private voidAll sockets opened when this server was active should send a special EBlock header before closing.protected TransferContextvoidretrieve(DataSource source) Retrieve the data from the data source and write to the data channel.voidAsynchronous; return before completion.voidsetCredential(GSSCredential cred) voidsetDataChannelAuthentication(DataChannelAuthentication authentication) voidsetDataChannelProtection(int protection) voidsetOptions(Options opts) Do nothing; this class does not support any optionssetPassive(int port, int queue) Start the local servervoidsetStripedPassive(int port, int queue) voidsetTCPBufferSize(int size) This method needs to be called BEFORE the local socket(s) get created.voidStore the data from the data channel to the data sink.protected void
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
gSession
-
socketPool
-
transferThreadManager
-
stripeRetrContextManager
-
-
Constructor Details
-
GridFTPServerFacade
-
-
Method Details
-
setCredential
-
setDataChannelProtection
public void setDataChannelProtection(int protection) -
setDataChannelAuthentication
-
setOptions
Description copied from class:FTPServerFacadeDo nothing; this class does not support any options- Overrides:
setOptionsin classFTPServerFacade
-
setTCPBufferSize
This method needs to be called BEFORE the local socket(s) get created. In other words, before setActive(), setPassive(), get(), put(), etc.- Throws:
ClientException
-
transferAbort
protected void transferAbort()- Overrides:
transferAbortin classFTPServerFacade
-
closeOutgoingSockets
All sockets opened when this server was active should send a special EBlock header before closing.- Throws:
ClientException
-
setActive
Description copied from class:FTPServerFacadeAsynchronous; return before completion. Connect to the remote server. Any exception that would occure will not be thrown but returned through the local control channel.- Overrides:
setActivein classFTPServerFacade- Throws:
UnknownHostExceptionClientExceptionIOException
-
setStripedActive
- Throws:
UnknownHostExceptionIOException
-
setPassive
Description copied from class:FTPServerFacadeStart the local server- Overrides:
setPassivein classFTPServerFacade- Parameters:
port- required server port; can be set to ANY_PORTqueue- max size of queue of awaiting new connection requests- Returns:
- the server address
- Throws:
IOException
-
setStripedPassive
- Throws:
IOException
-
setStripedPassive
- Throws:
IOException
-
store
Store the data from the data channel to the data sink. Does not block. If operation fails, exception might be thrown via local control channel.- Overrides:
storein classFTPServerFacade- Parameters:
sink- source of data
-
retrieve
Retrieve the data from the data source and write to the data channel. This method does not block. If operation fails, exception might be thrown via local control channel.- Overrides:
retrievein classFTPServerFacade- Parameters:
source- source of data
-
abort
Description copied from class:FTPServerFacadeclose data channels, but not control, nor the server- Overrides:
abortin classFTPServerFacade- Throws:
IOException
-
close
- Overrides:
closein classFTPServerFacade- Throws:
IOException
-
authenticate
public static Socket authenticate(Socket simpleSocket, boolean isClientSocket, GSSCredential credential, int protection, DataChannelAuthentication dcau) throws Exception authenticate socket. if protection on, return authenticated socket wrapped over the original simpleSocket, else return original socket.- Throws:
Exception
-
createTransferContext
- Overrides:
createTransferContextin classFTPServerFacade
-
createTransferThreadManager
-