Declaration

TnxBaseServer = class(TComponent)

 
Description

The text for this class has been generated automatically. This means that it is not documented.

 
Events

OnError

The text for this property has been generated automatically. This means that it is not documented.

OnShowLogin

Assign an event handler here if you want to have your own input or check. If the default platform implementations unit is linked into the project, you don't need a handler for showing the ling dialog.

 
Methods

ActivateAll

Calling this method activates all components that are descendent on the server engine.

Authenticate

This function initiates a logon. If OnShowLogin is assigned it is called and the username/password validated. If it's ok the function returns true otherwise it tries again for up to aTries times. If the last try fails too it returns false.

ClearAllStats

As the name tells, this methods clears the stats of all dependent components.

Create

constructor.

DeActivateAll

Call this method to de-activate all components that are descendent on the server engine.

LoadSettings

Calling this, stops all activated components, loads the settings from the specified file and re-starts the components.

SaveSettings

This methods saves the settings of ALL dependent components based on TnxComponent to the specified.

StartStoppedModules

This method re-starts the components that where de-activated with StopStartedModules

StopStartedModules

Stops all activated modules and flags them to be re-startable by StartStoppedModules.

 
Properties

AutoSaveConfig

Set AutoSaveConfig to false if the configuration should not be saved on exit and re-loaded on startup. The default is true.

LoginTries

Set the number of login tries possible. Only valid if SecureServer is active.

MaxUserCount

The text for this property has been generated automatically. This means that it is not documented.

OnLoginError

This is triggered every time the Security Monitor tries to validate an invalid username/password configuration.

Password

This is the password for logging onto the GUI of the server. Only valid if SecureServer is active.

SecureServer

Set this property to true if the server should enforce logins for the GUI and sessions that want to connect. Please make sure to have at least one Admin user in the user list of the SecurityMonitor otherwise the user gets locked out of the server GUI.

SecurityMonitor

This property returns the attached Security Monitor, if any. It does this by iterating through the dependents list of the server engine and returning the FIRST found instance derived from TnxAbstractSecurityMonitor.

Username

This is the username for logging onto the GUI of the server. Only valid if SecureServer is active.

 
File

 
nxBaseServerComp

Home | Site Contents | Documentation | NexusDB Manual V4 | Class Reference | Symbol Reference | Classes