@eclipse-emfcloud/modelserver-theia
Version:
## Typescript Client API
50 lines • 2.03 kB
TypeScript
/********************************************************************************
* Copyright (c) 2019-2022 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0, or the MIT License which is
* available at https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: EPL-2.0 OR MIT
*******************************************************************************/
export declare const LaunchOptions: unique symbol;
export interface LaunchOptions {
baseURL: string;
serverPort: number;
hostname: string;
jarPath?: string;
/**
* Additional arguments, besides those implied by other options, passed to server main entrypoint.
*/
additionalArgs?: string[];
/**
* Arguments passed to the Java Virtual Machine, not to the server application `main` entrypoint.
*/
vmArgs?: string[];
/**
* For a configuration including the `modelserver-node`, launch options
* specific to that server process.
*/
modelServerNode?: ModelServerNodeOptions;
}
export interface ModelServerNodeOptions {
/**
* The port of the Java _Model Server_ to which the Node layer connects.
* In this case, the Java server is configured to listen on this port
* and the `serverPort` of the containing `LaunchOptions` is the port on
* which the `modelserver-node` is configured to listen.
*/
upstreamPort: number;
/**
* The path of the Javascript main file to launch (often webpacked).
*/
jsPath?: string;
/**
* Optional additional command-line arguments for the `modelserver-node` process.
*/
additionalArgs?: string[];
}
export declare const DEFAULT_LAUNCH_OPTIONS: LaunchOptions;
export declare const DEFAULT_MODELSERVER_NODE_LAUNCH_OPTIONS: LaunchOptions & Pick<Required<LaunchOptions>, 'modelServerNode'>;
//# sourceMappingURL=launch-options.d.ts.map