endSample(samplingHandle: Integer);
The endSample method of the Node class terminates the sampling of statistics on the local node for the context identified by the samplingHandle parameter (returned by the beginSample method when sampling for the node started) and invokes the following entry points.
NodeSampleNodeInfoCallBack, passing it information about the local node and setting the eventType parameter in the user library entry point to 2.
NodeSampleInfoCallBack, which your user library should consider the last call for the node sampling context.
The JADE-supplied library closes and releases the current sampling file, which you can then analyze.
You can produce multiple files during a node lifetime, by using the Node class beginSample and endSample methods, but you cannot sample statistics simultaneously on the same node. For more details, see