/// <summary> /// Displays information about the Server we are connected to. /// </summary> static void DisplayPetraServerInformation() { int TotalConnectedClients; int CurrentlyConnectedClients; RetrieveConnectedClients(out TotalConnectedClients, out CurrentlyConnectedClients); TLogging.Log(TRemote.GetServerInfoVersion()); TLogging.Log(Catalog.GetString("Configuration file: " + TAppSettingsManager.ConfigFileName)); TLogging.Log(" Clients connections since Server start: " + TotalConnectedClients.ToString()); TLogging.Log(" Clients currently connected: " + CurrentlyConnectedClients.ToString()); TLogging.Log(TRemote.GetServerInfoState()); }
/// <summary> /// Displays information about the Server we are connected to. /// </summary> /// <param name="AServerManager">Instance of remote ServerManager</param> static void DisplayPetraServerInformation(IServerAdminInterface AServerManager) { int TotalConnectedClients; int CurrentlyConnectedClients; RetrieveConnectedClients(AServerManager, out TotalConnectedClients, out CurrentlyConnectedClients); TLogging.Log(AServerManager.ServerInfoVersion); TLogging.Log(Catalog.GetString("Configuration file: " + AServerManager.ConfigurationFileName)); TLogging.Log(" Clients connections since Server start: " + TotalConnectedClients.ToString()); TLogging.Log(" Clients currently connected: " + CurrentlyConnectedClients.ToString()); TLogging.Log(AServerManager.ServerInfoState); }
/// <summary> /// Displays information about the Server we are connected to. /// </summary> static void DisplayPetraServerInformation() { int TotalConnectedClients; int CurrentlyConnectedClients; Int64 SiteKey; RetrieveConnectedClients(out TotalConnectedClients, out CurrentlyConnectedClients, out SiteKey); TLogging.Log(TRemote.GetServerInfoVersion()); TLogging.Log(Catalog.GetString("Configuration file: " + TAppSettingsManager.ConfigFileName)); TLogging.Log(" * Clients connections since Server start: " + TotalConnectedClients.ToString()); TLogging.Log(" * Clients currently connected: " + CurrentlyConnectedClients.ToString()); TLogging.Log(" * " + String.Format(Catalog.GetString("SiteKey of OpenPetra Installation: {0}{1}"), SiteKey, (SiteKey == 99000000) ? Catalog.GetString(" (SiteKey not yet set up)") : String.Empty)); TLogging.Log(TRemote.GetServerInfoState()); }
/// <summary> /// Displays information about the Server we are connected to. /// </summary> static void DisplayPetraServerInformation() { int TotalConnectedClients; int CurrentlyConnectedClients; Int64 SiteKey; Int64 DBReconnectionAttemptsCounter; Int64 DBConnectionCheckInterval; RetrieveConnectedClients(out TotalConnectedClients, out CurrentlyConnectedClients, out SiteKey, out DBReconnectionAttemptsCounter, out DBConnectionCheckInterval); TLogging.Log(TRemote.GetServerInfoVersion()); TLogging.Log(Catalog.GetString("Configuration file: " + TAppSettingsManager.ConfigFileName)); TLogging.Log(" * " + Catalog.GetString(String.Format("DB Connection State: {0}", ((DBReconnectionAttemptsCounter == -1) ? String.Format("Not yet connected") : ((DBReconnectionAttemptsCounter == 0) ? String.Format("OK") : String.Format("BROKEN / Reconnection Attempt #" + DBReconnectionAttemptsCounter.ToString()))))) + ((DBReconnectionAttemptsCounter == 0) ? (DBConnectionCheckInterval == 0) ? Catalog.GetString(" (at last DB action)") : Catalog.GetString(" (polling enabled)") : "")); TLogging.Log(" * " + String.Format(Catalog.GetString("Client connections since Server start: {0}"), TotalConnectedClients.ToString())); TLogging.Log(" * " + String.Format(Catalog.GetString("Clients currently connected: {0}"), CurrentlyConnectedClients)); TLogging.Log(" * " + String.Format(Catalog.GetString("SiteKey of OpenPetra Installation: {0}{1}"), (SiteKey != -1) ? SiteKey.ToString() : Catalog.GetString("N/A"), (SiteKey == 99000000) ? Catalog.GetString(" (SiteKey not yet set up)") : String.Empty)); TLogging.Log(TRemote.GetServerInfoState()); }