|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ftp.vanilla.FTPServerFacade
org.globus.ftp.extended.GridFTPServerFacade
public class GridFTPServerFacade
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.globus.ftp.vanilla.FTPServerFacade |
---|
FTPServerFacade.LocalControlChannel |
Field Summary | |
---|---|
protected GridFTPSession |
gSession
|
protected SocketPool |
socketPool
|
protected StripeContextManager |
stripeRetrContextManager
|
protected TransferThreadManager |
transferThreadManager
|
Fields inherited from class org.globus.ftp.vanilla.FTPServerFacade |
---|
ANY_PORT, dataChannelFactory, DEFAULT_QUEUE, localControlChannel, remoteControlChannel, remoteServerAddress, serverSocket, session |
Constructor Summary | |
---|---|
GridFTPServerFacade(GridFTPControlChannel remoteControlChannel)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.globus.ftp.vanilla.FTPServerFacade |
---|
authorize, cannotPropagateError, exceptionToControlChannel, exceptionToControlChannel, getControlChannel, getSession, setPassive, setProtectionBufferSize, setTransferMode, setTransferType, stopTaskThread, unblockServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GridFTPSession gSession
protected SocketPool socketPool
protected TransferThreadManager transferThreadManager
protected StripeContextManager stripeRetrContextManager
Constructor Detail |
---|
public GridFTPServerFacade(GridFTPControlChannel remoteControlChannel)
Method Detail |
---|
public void setCredential(org.ietf.jgss.GSSCredential cred)
public void setDataChannelProtection(int protection)
public void setDataChannelAuthentication(DataChannelAuthentication authentication)
public void setOptions(Options opts)
FTPServerFacade
setOptions
in class FTPServerFacade
public void setTCPBufferSize(int size) throws ClientException
ClientException
protected void transferAbort()
transferAbort
in class FTPServerFacade
public void setActive(HostPort hp) throws java.net.UnknownHostException, ClientException, java.io.IOException
FTPServerFacade
setActive
in class FTPServerFacade
java.net.UnknownHostException
ClientException
java.io.IOException
public void setStripedActive(HostPortList hpl) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
public HostPort setPassive(int port, int queue) throws java.io.IOException
FTPServerFacade
setPassive
in class FTPServerFacade
port
- required server port; can be set to ANY_PORTqueue
- max size of queue of awaiting new connection
requests
java.io.IOException
public HostPortList setStripedPassive() throws java.io.IOException
java.io.IOException
public HostPortList setStripedPassive(int port, int queue) throws java.io.IOException
java.io.IOException
public void store(DataSink sink)
store
in class FTPServerFacade
sink
- source of datapublic void retrieve(DataSource source)
retrieve
in class FTPServerFacade
source
- source of datapublic void abort() throws java.io.IOException
FTPServerFacade
abort
in class FTPServerFacade
java.io.IOException
public void close() throws java.io.IOException
close
in class FTPServerFacade
java.io.IOException
public 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.Exception
protected TransferContext createTransferContext()
createTransferContext
in class FTPServerFacade
public TransferThreadManager createTransferThreadManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |