OpenPetra
Free Administration Software for Non-Profits
|
Main class for Client connection and disconnection and other Client actions. More...
Public Member Functions | |
void | RecordUserLogout (String AUserID, Int32 AProcessID) |
Records the logging-out (=disconnection) of a Client, using ILoginLog More... | |
Static Public Member Functions | |
static String | FormatClientList (Boolean AListDisconnectedClients) |
Formats the client list array for output in a fixed-width font (eg. to the Console) More... | |
static String | FormatClientListSysadm (Boolean AListDisconnectedClients) |
Formats the client list array for output in the sysadm dialog for selection of a client id More... | |
static void | ResetStaticVariables () |
reset the static variables for each Web Request call. More... | |
static void | InitializeStaticVariables (IUserManager AUserManager, IErrorLog AErrorLog, ILoginLog ALoginLog, IMaintenanceLogonMessage AMaintenanceLogonMessage) |
initialize variables that are initialized from classes specific to the server, eg. with access to OpenPetra database More... | |
static bool | PerformLoginChecks (String AUserName, String APassword, String AClientComputerName, String AClientIPAddress, out Boolean ASystemEnabled, TDBTransaction ATransaction) |
public for stateless (webservice) authentication More... | |
static bool | ServerDisconnectClient (System.Int32 AClientID, String AReason, out String ACantDisconnectReason) |
Called by TClientManager to request the disconnection of a certain Client from the Petra Server. More... | |
static Int32 | QueueClientTask (System.Int32 AClientID, String ATaskGroup, String ATaskCode, System.Object ATaskParameter1, System.Object ATaskParameter2, System.Object ATaskParameter3, System.Object ATaskParameter4, System.Int16 ATaskPriority, System.Int32 AExceptClientID=-1) |
Called by TClientManager to queue a ClientTask for a certain Client. More... | |
static Int32 | QueueClientTask (String AUserID, String ATaskGroup, String ATaskCode, System.Object ATaskParameter1, System.Object ATaskParameter2, System.Object ATaskParameter3, System.Object ATaskParameter4, System.Int16 ATaskPriority, System.Int32 AExceptClientID) |
add client task to queue More... | |
static void | AddErrorLogEntry (String AErrorCode, String AContext, String AMessageLine1, String AMessageLine2, String AMessageLine3, Int32 AProcessID, String AUserID) |
add error to log, using IErrorLog More... | |
static ArrayList | BuildClientList (Boolean AListDisconnectedClients) |
Builds an array that contains information about the Clients that are currently connected to the Petra Server or were connected to the Petra Server at some time in the past. More... | |
static ArrayList | ClientList (Boolean AListDisconnectedClients) |
Called by TServerManager to request an array that contains information about the Clients that are currently connected to the Petra Server. More... | |
static TConnectedClient | ConnectClient (String AUserName, String APassword, String AClientComputerName, String AClientIPAddress, System.Version AClientExeVersion, TClientServerConnectionType AClientServerConnectionType, out System.Int32 AClientID, out String AWelcomeMessage, out Boolean ASystemEnabled, out System.Int64 ASiteKey, TDataBase ADataBase=null) |
Called by a Client to request connection to the Petra Server. More... | |
static eLoginEnum | LoginErrorFromException (Exception e) |
convert exception to error code More... | |
static Boolean | DisconnectClient (System.Int32 AClientID, out String ACantDisconnectReason) |
Called by a Client to request disconnection from the Petra Server. More... | |
static Boolean | DisconnectClient (System.Int32 AClientID, String AReason, out String ACantDisconnectReason) |
Called by a Client to request disconnection from the Petra Server. More... | |
static System.Int32 | GCGetApproxMemory () |
Can be called by a Client to get memory information from the GarbageCollection on the Server. More... | |
static System.Int32 | GCGetGCGeneration (object AObject) |
Can be called by a Client to request information about the GarbageCollection Generation of a certain remoted object. More... | |
static System.Int32 | GCPerformGC () |
Can be called by a Client to perform a GarbageCollection on the Server. More... | |
Properties | |
static System.Int32 | ClientsConnected [get] |
Called by TClientManager to request the number of Clients that are currently connected to the Petra Server. More... | |
static System.Int32 | ClientsConnectedTotal [get] |
Called by TClientManager to request the total number of Clients that connected to the Petra Server since the start of the Petra Server. More... | |
Main class for Client connection and disconnection and other Client actions.
TClientManager is also used by TServerManager to perform actions on connected Clients and to request information about Clients.
|
inlinestatic |
add error to log, using IErrorLog
|
inlinestatic |
Builds an array that contains information about the Clients that are currently connected to the Petra Server or were connected to the Petra Server at some time in the past.
AListDisconnectedClients | Lists only connected Clients if false and only disconnected Clients if true. |
|
inlinestatic |
|
inlinestatic |
Called by a Client to request connection to the Petra Server.
Authenticate the user and create a sesssion for the user.
AUserName | Username with which the Client connects |
APassword | Password with which the Client connects |
AClientComputerName | Computer name of the Client |
AClientExeVersion | |
AClientIPAddress | IP Address of the Client |
AClientServerConnectionType | Type of the connection (eg. LAN, Remote) |
AClientID | Server-assigned ID of the Client |
AWelcomeMessage | |
ASystemEnabled | |
ASiteKey | |
ADataBase |
|
inlinestatic |
Called by a Client to request disconnection from the Petra Server.
AClientID | Server-assigned ID of the Client that should be disconnected |
ACantDisconnectReason | In case the function returns false, this contains the reason why the disconnection cannot take place. |
|
inlinestatic |
Called by a Client to request disconnection from the Petra Server.
AClientID | Server-assigned ID of the Client that should be disconnected |
AReason | |
ACantDisconnectReason | In case the function returns false, this contains the reason why the disconnection cannot take place. |
|
inlinestatic |
Formats the client list array for output in a fixed-width font (eg. to the Console)
|
inlinestatic |
Formats the client list array for output in the sysadm dialog for selection of a client id
|
inlinestatic |
|
inlinestatic |
Can be called by a Client to request information about the GarbageCollection Generation of a certain remoted object.
@comment For debugging/memory tracking purposes only.
AObject | Remoted Object |
|
inlinestatic |
|
inlinestatic |
initialize variables that are initialized from classes specific to the server, eg. with access to OpenPetra database
|
inlinestatic |
convert exception to error code
|
inlinestatic |
public for stateless (webservice) authentication
AUserName | |
APassword | |
AClientComputerName | |
AClientIPAddress | |
ASystemEnabled | |
ATransaction | Instantiated DB Transaction. |
|
inlinestatic |
add client task to queue
AUserID | |
ATaskGroup | |
ATaskCode | |
ATaskParameter1 | |
ATaskParameter2 | |
ATaskParameter3 | |
ATaskParameter4 | |
ATaskPriority | |
AExceptClientID |
|
inlinestatic |
Called by TClientManager to queue a ClientTask for a certain Client.
AClientID | Server-assigned ID of the Client; use -1 to queue the ClientTask to all Clients |
ATaskGroup | Group of the Task |
ATaskCode | Code of the Task (depending on the TaskGroup this can be left empty) |
ATaskParameter1 | Parameter #1 for the Task (depending on the TaskGroup this can be left empty) |
ATaskParameter2 | Parameter #2 for the Task (depending on the TaskGroup this can be left empty) |
ATaskParameter3 | Parameter #3 for the Task (depending on the TaskGroup this can be left empty) |
ATaskParameter4 | Parameter #4 for the Task (depending on the TaskGroup this can be left empty) |
ATaskPriority | Priority of the Task |
AExceptClientID | Pass in a Server-assigned ID of the Client that should not get the ClientTask in its queue. Makes sense only if -1 is used for the AClientID parameter. Default is -1, which means no Client is excepted. |
|
inline |
Records the logging-out (=disconnection) of a Client, using ILoginLog
AUserID | UserID of the User for which a logout should be recorded. |
AProcessID | ProcessID of the User for which a logout should be recorded. This will need to be the number that got returned from an earlier call to AddLoginLogEntry(string, bool, string, bool, out int, TDBTransaction)! |
|
inlinestatic |
reset the static variables for each Web Request call.
|
inlinestatic |
Called by TClientManager to request the disconnection of a certain Client from the Petra Server.
AClientID | Server-assigned ID of the Client |
AReason | |
ACantDisconnectReason | In case the function returns false, this contains the reason why the disconnection cannot take place. |
|
staticget |
Called by TClientManager to request the number of Clients that are currently connected to the Petra Server.
|
staticget |
Called by TClientManager to request the total number of Clients that connected to the Petra Server since the start of the Petra Server.