.. ============LICENSE_START========================================== .. =================================================================== .. Copyright © 2017 AT&T Intellectual Property. All rights reserved. .. =================================================================== .. Licensed under the Creative Commons License, Attribution 4.0 Intl. (the "License"); .. you may not use this documentation except in compliance with the License. .. You may obtain a copy of the License at .. .. https://creativecommons.org/licenses/by/4.0/ .. .. Unless required by applicable law or agreed to in writing, software .. distributed under the License is distributed on an "AS IS" BASIS, .. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. .. See the License for the specific language governing permissions and .. limitations under the License. .. ============LICENSE_END============================================ .. ECOMP is a trademark and service mark of AT&T Intellectual Property. APPC OAM API Guide ================== This guide describes the APPC OAM API that allows the user to manage and control the APPC application/component itself. APPC OAM Overview ----------------- APPC **OAM** API commands affect the state of the APPC application instance itself; whereas the APPC **LCM** API commands are issued via APPC and affect the state of VM/VNF/VNFCs. The APPC OAM API currently provides the following commands: +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **APPC OAM API** | **Description** | +====================+==============================================================================================================================================================+ | maintenance-mode | Puts the APPC instance into maintenance mode. When APPC is in Maintenance Mode, | | | | | | - APPC will stop accepting new requests | | | | | | - The action will be considered complete once all existing requests have completed | +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | get-appc-state | Returns the current state of the running APPC instance | +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | get-metrics | Gets list of registered Metrics in APP-C | +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | stop | Force stop an APPC instance. In this mode, all APPC bundles will be stopped via an OSGI API | +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | restart | Restarts an APPC instance, picking up any configuration changes. This command invokes the stop command followed by the start command. | +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | start | Starts the APPC instance; enables appc-provider-lcm so that it can begin to accept LCM request. This includes starting any APPC bundles which are stopped. | +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ The APPC database data is not affected by any of the OAM operations. The existing APPC configurations are not affected unless a Stop or Restart command is issues (just putting the APPC into maintenance mode and then starting it again is not sufficient). Notifications are sent out for state transitions. Refer to table below for details on state transitions supported. Detailed Description -------------------- All APIs are implemented
/*
* ============LICENSE_START===================================================
* SPARKY (AAI UI service)
* ============================================================================
* Copyright © 2017 AT&T Intellectual Property.
* Copyright © 2017 Amdocs
* All rights reserved.
* ============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=====================================================
*
* ECOMP and OpenECOMP are trademarks
* and service marks of AT&T Intellectual Property.
*/
const ONE_SECOND = 1000;
const THIRTY_FRAMES_PER_SECOND = 30;
export const simulationKeys = {
CENTERING_FORCE: {},
COLLISION_FORCE: {},
LINK_FORCE: {},
MANY_BODY_FORCE: {},
POSITIONING_FORCE: {},
DEFAULT_FORCE_NAME: 'defaultForce',
DATA_COPY_INTERVAL: ONE_SECOND / THIRTY_FRAMES_PER_SECOND
};