TraceIndex: the mechanism TraceIndexService implements.
API
@Interface()
export abstract class TraceIndex {
abstract readonly counters: { gateStats: number; dirScans: number; headReads: number };
abstract reconcileAgent(
projectId: string,
agentId: string,
opts?: { force?: boolean },
): Promise<void>;
abstract reconcileProject(projectId: string, opts?: { force?: boolean }): Promise<void>;
abstract registerImportedFile(args: {
projectId: string;
agentId: string;
sessionId: string;
fileIndex: number;
date: string;
sizeBytes: number;
records: AmspRecord[];
}): void;
abstract removeSession(projectId: string, agentId: string, sessionId: string): void;
abstract removeAgent(projectId: string, agentId: string): void;
abstract removeProject(projectId: string): void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (7)
counters
readonly counters: { gateStats: number; dirScans: number; headReads: number }reconcileAgent
reconcileAgent(projectId: string, agentId: string, opts?: { force?: boolean }): Promise<void>@paramprojectId
string@paramagentId
string@paramopts?
{ force?: boolean }@returns
Promise<void>reconcileProject
reconcileProject(projectId: string, opts?: { force?: boolean }): Promise<void>@paramprojectId
string@paramopts?
{ force?: boolean }@returns
Promise<void>registerImportedFile
registerImportedFile(args: { projectId: string; agentId: string; sessionId: string; fileIndex: number; date: string; sizeBytes: number; records: AmspRecord[]; }): void@paramargs
{ projectId: string; agentId: string; sessionId: string; fileIndex: number; date: string; sizeBytes: number; records: AmspRecord[]; }@returns
voidremoveSession
removeSession(projectId: string, agentId: string, sessionId: string): void@paramprojectId
string@paramagentId
string@paramsessionId
string@returns
voidremoveAgent
removeAgent(projectId: string, agentId: string): void@paramprojectId
string@paramagentId
string@returns
voidremoveProject
removeProject(projectId: string): void@paramprojectId
string@returns
void