public class FileBasedConfiguration
extends org.waarp.ftp.core.config.FtpConfiguration
Modifier and Type | Field and Description |
---|---|
String |
ADMINNAME
Admin name Id
|
org.waarp.snmp.WaarpSnmpAgent |
agentSnmp
SNMP Agent (if any)
|
FtpConstraintLimitHandler |
constraintLimitHandler
Limit on CPU and Connection
|
org.waarp.common.crypto.Des |
cryptoKey
Crypto Key
|
long |
delayLimit
Delay in ms between two checks
|
static FileBasedConfiguration |
fileBasedConfiguration
Use to access directly the configuration
|
FtpPrivateMib |
ftpMib
Associated MIB
|
String |
HOST_ID
FTP server ID
|
String |
httpBasePath
Http Admin base
|
FtpMonitoring |
monitoring
Monitoring object
|
String |
snmpConfig
Monitoring: snmp configuration file (empty means no snmp support)
|
boolean |
useHttpCompression
Does this server will try to compress HTTP connections
|
boolean |
useLocalExec
Does this server will use Waarp LocalExec Daemon for Execute
|
static String |
XML_DELAYRETRIEVE_COMMAND
DELAY RETRIEVE COMMAND
|
static String |
XML_DELAYSTORE_COMMAND
DELAY STORE COMMAND
|
static String |
XML_RETRIEVE_COMMAND
RETRIEVE COMMAND
|
static String |
XML_STORE_COMMAND
STORE COMMAND
|
Constructor and Description |
---|
FileBasedConfiguration(Class<?> classtype,
Class<? extends org.waarp.ftp.core.control.BusinessHandler> businessHandler,
Class<? extends org.waarp.ftp.core.data.handler.DataBusinessHandler> dataBusinessHandler,
org.waarp.common.file.FileParameterInterface fileParameter) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(String password)
Check the password for Shutdown
|
void |
configureConstraint()
Configure ConstraintLimitHandler
|
void |
configureHttps()
Configure HTTPS
|
void |
configureLExec()
Configure LocalExec
|
void |
configureSnmp()
Configure the SNMP support if needed
|
String |
getAuthenticationFile() |
String |
getHtmlAuth(String format) |
String |
getHtmlTransfer(String format,
int limit)
Only available with Database support for Waarp
|
io.netty.channel.group.ChannelGroup |
getHttpChannelGroup() |
io.netty.util.concurrent.EventExecutorGroup |
getHttpPipelineExecutor() |
int |
getNextRangePort() |
SimpleAuth |
getSimpleAuth(String user) |
boolean |
initializeAuthent(String filename,
boolean purge)
Initialize Authentication from current authenticationFile
|
void |
inShutdownProcess() |
protected boolean |
loadSsl() |
void |
releaseResources() |
boolean |
saveAuthenticationFile(String filename)
Export the Authentication to the original files
|
void |
setAuthenticationFile(String authenticationFile) |
boolean |
setConfigurationServerFromXml(String filename)
Initiate the configuration from the xml file for server
|
void |
setSERVERKEY(byte[] serverkey) |
bindLock, bindUnlock, changeNetworkLimit, computeNbThreads, delFtpSession, getBaseDirectory, getBLOCKSIZE, getCLIENT_THREAD, getDataBusinessHandler, getDATATIMEOUTCON, getDelayLimit, getFileParameter, getFileProperty, getFtpInternalConfiguration, getFtpSession, getFtpSessionNoRemove, getIntProperty, getLock, getMaxGlobalMemory, getProperty, getSERVER_THREAD, getServerAddress, getServerChannelReadLimit, getServerChannelWriteLimit, getServerGlobalReadLimit, getServerGlobalWriteLimit, getServerPort, getShutdownConfiguration, getStringProperty, getTIMEOUTCON, getUniqueExtension, hasFtpSession, isDeleteOnAbort, isShutdown, serverStartup, setBaseDirectory, setBLOCKSIZE, setCLIENT_THREAD, setDATATIMEOUTCON, setDeleteOnAbort, setFileProperty, setIntProperty, setMaxGlobalMemory, setNewFtpSession, setPassword, setProperty, setSERVER_THREAD, setServerAddress, setServerPort, setShutdown, setStringProperty, setTIMEOUTCON
public static final String XML_RETRIEVE_COMMAND
public static final String XML_STORE_COMMAND
public static final String XML_DELAYRETRIEVE_COMMAND
public static final String XML_DELAYSTORE_COMMAND
public static FileBasedConfiguration fileBasedConfiguration
public String httpBasePath
public long delayLimit
public boolean useHttpCompression
public boolean useLocalExec
public org.waarp.common.crypto.Des cryptoKey
public String HOST_ID
public String ADMINNAME
public FtpConstraintLimitHandler constraintLimitHandler
public String snmpConfig
public org.waarp.snmp.WaarpSnmpAgent agentSnmp
public FtpPrivateMib ftpMib
public FtpMonitoring monitoring
public FileBasedConfiguration(Class<?> classtype, Class<? extends org.waarp.ftp.core.control.BusinessHandler> businessHandler, Class<? extends org.waarp.ftp.core.data.handler.DataBusinessHandler> dataBusinessHandler, org.waarp.common.file.FileParameterInterface fileParameter)
classtype
- businessHandler
- class that will be used for BusinessHandlerdataBusinessHandler
- class that will be used for DataBusinessHandlerfileParameter
- the FileParameter to useprotected boolean loadSsl()
public boolean setConfigurationServerFromXml(String filename)
filename
- public void configureHttps()
public void configureConstraint()
public void configureLExec()
public void configureSnmp() throws org.waarp.ftp.core.exception.FtpNoConnectionException
org.waarp.ftp.core.exception.FtpNoConnectionException
public void setSERVERKEY(byte[] serverkey)
serverkey
- the SERVERADMINKEY to setpublic boolean checkPassword(String password)
checkPassword
in class org.waarp.ftp.core.config.FtpConfiguration
password
- public boolean initializeAuthent(String filename, boolean purge)
filename
- the filename from which authentication will be loadedpurge
- if True, the current authentications are totally replaced by the new onespublic boolean saveAuthenticationFile(String filename)
filename
- the filename where the authentication will be exportedpublic SimpleAuth getSimpleAuth(String user)
user
- public String getHtmlAuth(String format)
format
- Format in HTML to use as ouput formatpublic String getHtmlTransfer(String format, int limit)
format
- Format in HTML to use as ouput formatlimit
- number of TransferLog to populatepublic int getNextRangePort()
getNextRangePort
in class org.waarp.ftp.core.config.FtpConfiguration
FtpConfiguration.getNextRangePort()
public io.netty.util.concurrent.EventExecutorGroup getHttpPipelineExecutor()
public io.netty.channel.group.ChannelGroup getHttpChannelGroup()
public void releaseResources()
releaseResources
in class org.waarp.ftp.core.config.FtpConfiguration
public void inShutdownProcess()
inShutdownProcess
in class org.waarp.ftp.core.config.FtpConfiguration
public String getAuthenticationFile()
public void setAuthenticationFile(String authenticationFile)
authenticationFile
- the authenticationFile to setCopyright © 2009–2019 Waarp. All rights reserved.