recadd with no lock key.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Function recdelete( _ ByVal tblName As String, _ ByVal recKeys As String(), _ ByVal doMaxWork As Boolean _ ) As NetricsTableStats _ Implements INetricsServerInterface.recdelete |
| C# |
|---|
| public NetricsTableStats recdelete( string tblName, string[] recKeys, bool doMaxWork ) |
| C++ |
|---|
| public: NetricsTableStats recdelete( String tblName, array<String>^ recKeys, bool doMaxWork ) sealed |
| J# |
|---|
| public NetricsTableStats recdelete( string tblName, string[] recKeys, bool doMaxWork ) |
| JScript |
|---|
| public
function recdelete( tblName : String, recKeys : String[], doMaxWork : bool ) : NetricsTableStats |
Implements
INetricsServerInterface.recdelete
Example
This sample shows how to delete records from a TIBCO Patterns Engine table.
Copy Code
| |
|---|---|
using NetricsServerInterface;
class MyClass
{
private static NetricsServerInterface.NetricsServerInterface si = null;
public static void Main()
{
try
{
String host = "localhost";
int port = 5051;
si = new NetricsServerInterface.NetricsServerInterface(host, port);
// Target TIBCO Patterns Engine table
String table = "names";
// Do not continue on format errors
bool doMaxWork = false;
// Record keys of records to be deleted
String[] recKeys = {"1","2"};
NetricsTableStats response = si.recdelete(table, recKeys, doMaxWork);
Console.WriteLine("Records deleted: Number of records in table " + table + " is " + response.getNumRecs() + ".");
}
catch (NetricsException e)
{
Console.Write(e.getErrorDescription() + "\n");
}
}
}
| |