import { DistributedClientArrayMediator } from "./DistributedClientArrayMediator"; import { IExternalServerClientArray } from "../../external/interfaces/IExternalServerClientArray"; import { DistributedSystem } from "../DistributedSystem"; import { XML } from "sxml"; /** * Mediator of Distributed Processing System, be a server and client at the same time as a **master**. * * The {@link DistributedServerClientArrayMediator} is an abstract class, derived from the * {@link DistributedSystemArrayMediator} class, opening a server accepting {@link DistributedSystem distributed * clients} and being a client connecting to {@link IDistributedServer distributed servers} at the same time. * * Extends this {@link DistributedServerClientArrayMediator} and overrides below methods. After the overridings, open * server with {@link open open()} method and connect to {@link IDistributedServer distributed servers} through the * {@link connect connect()} method. * * - {@link createServerBase createServerBase()} * - {@link createExternalClient createExternalClient()} * - {@link createExternalServer createExternalServer()} * * #### [Inherited] {@link DistributedSystemArrayMediator} * @copydoc DistributedSystemArrayMediator */ export declare abstract class DistributedServerClientArrayMediator extends DistributedClientArrayMediator implements IExternalServerClientArray { /** * Default Constructor. */ constructor(); /** * Factory method of a child Entity. * * This method is migrated to {@link createExternalServer}. Override the {@link createExternalServer} method. * * @param xml An {@link XML} object represents child element, so that can identify the type of child to create. * @return A new child Entity via {@link createExternalServer createExternalServer()}. */ createChild(xml: XML): System; /** * Factory method creating an {@link IDistributedServer} object. * * @param xml An {@link XML} object represents child element, so that can identify the type of child to create. * @return A newly created {@link IDistributedServer} object. */ protected abstract createExternalServer(xml: XML): System; /** * @inheritdoc */ connect(): void; }