import { InvokeHistory } from "../slave/InvokeHistory";
import { DistributedSystem } from "./DistributedSystem";
import { DistributedProcess } from "./DistributedProcess";
import { Invoke } from "../../protocol/invoke/Invoke";
import { XML } from "sxml";
/**
* History of an {@link Invoke} message.
*
* The {@link PRInvokeHistory} is a class archiving history log of an {@link Invoke} message which requests the
* *distributed process*, created whenever {@link DistributedProcess.sendData} is called.
*
* When the *distributed process* has completed, then {@link complete complete()} is called and the *elapsed time* is
* determined. The elapsed time is utilized for computation of {@link DistributedSystem.getPerformance performance index}
* and {@link DistributedProcess.getResource resource index} of related objects.
*
*
*
*
*
* @handbook [Templates - Distributed System](https://github.com/samchon/framework/wiki/TypeScript-Templates-Distributed_System)
* @author Jeongho Nam
*/
export declare class DSInvokeHistory extends InvokeHistory {
/**
* @hidden
*/
private system_;
/**
* @hidden
*/
private process_;
/**
* @hidden
*/
private weight_;
/**
* Construct from a DistributedSystem.
*
* @param system The {@link DistributedSystem} object who sent the {@link Invoke} message.
*/
constructor(system: DistributedSystem);
/**
* Initilizer Constructor.
*
* @param system The {@link DistributedSystem} object who sent the {@link Invoke} message.
* @param process The {@link DistributedProcess} object who sent the {@link Invoke} message.
* @param invoke An {@link Invoke} message requesting the *distributed process*.
* @param weight Weight of resource which indicates how heavy this {@link Invoke} message is.
*/
constructor(system: DistributedSystem, process: DistributedProcess, invoke: Invoke, weight: number);
/**
* @inheritdoc
*/
construct(xml: XML): void;
/**
* Get the related {@link DistributedSystem} object.
*/
getSystem(): DistributedSystem;
/**
* Get the related {@link DistributedProcess} object.
*/
getProcess(): DistributedProcess;
/**
* Get weight.
*
* Gets weight of resource which indicates how heavy this {@link Invoke} message is. Default is 1.
*/
getWeight(): number;
/**
* @inheritdoc
*/
toXML(): XML;
}