ClearForeRuntime

Syntax

ClearForeRuntimeResult ClearForeRuntime(MbId tMb)

Parameters

tMb. Repository connection moniker.

Description

The ClearForeRuntime operation clears Fore runtime.

Comments

After the operation is executed, unused objects are force deleted from the memory and repository cache, unused assemblies are unloaded, and possible memory leaks are detected. To execute the operation, in the mb field specify repository connection moniker. The moniker can be obtained on executing the OpenMetabase operation.

The operation result determined whether Fore runtime is cleared successfully and returns information about memory leaks if there were detected.

Example

Below is the example of clearing Fore runtime. The request contains moniker of opened repository connection. The response contains whether Fore runtime was cleared successfully or information about memory leaks if they were detected.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ClearForeRuntime xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xmlns="">
  <id>MPBAOFILBBEIGOAELJGEFNOHPMGBKPMENKOPKADOLFCLAKMI!M</id>
  </tMb>
  </ClearForeRuntime>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ClearForeRuntimeResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <clearedAll xmlns="">1</clearedAll>
  <consoleOutput xmlns="">No leaked objects left </consoleOutput>
  </ClearForeRuntimeResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"ClearForeRuntime" :
{
"tMb" :
{
"id" : "MPBAOFILBBEIGOAELJGEFNOHPMGBKPMENKOPKADOLFCLAKMI!M"
}
}
}

JSON response:

{
"ClearForeRuntimeResult" :
{
"clearedAll" : "1",
"consoleOutput" : "No leaked objects left "
}
}
public static ClearForeRuntimeResult ClearForeRuntime(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClear = new ClearForeRuntime()
{
tMb = new MbId() { id = moniker }
};
// Clear Fore runtime
var result = somClient.ClearForeRuntime(tClear);
return result;
}

See also:

Working with Development Environment