diff options
author | ramverma <ram.krishna.verma@est.tech> | 2019-04-02 17:58:10 +0000 |
---|---|---|
committer | ramverma <ram.krishna.verma@est.tech> | 2019-04-02 17:58:10 +0000 |
commit | 21e6fdea3e207ae7c690158ddc336bd7c0785b15 (patch) | |
tree | d693482ab8517024981f951cee8b1a68383fb66f /pdp-common/src/main/java/org/onap/policy/pdp/common/enums | |
parent | 3fa9acf5226c6f842c31aba0a39f9e305b370e08 (diff) |
Deleting pdp-common module from policy/common
Change-Id: I1b599ce62a4fab852420089b5d1d8ae8f5cfe7ca
Issue-ID: POLICY-1443
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'pdp-common/src/main/java/org/onap/policy/pdp/common/enums')
4 files changed, 0 insertions, 192 deletions
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpHealthStatus.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpHealthStatus.java deleted file mode 100644 index 5b2f58b9..00000000 --- a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpHealthStatus.java +++ /dev/null @@ -1,44 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2019 Nordix Foundation. - * ================================================================================ - * 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. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - -package org.onap.policy.pdp.common.enums; - -/** - * Class to hold the possible values for health status of PDP. - * - * @author Ram Krishna Verma (ram.krishna.verma@est.tech) - */ -public enum PdpHealthStatus { - - /** - * PDP is healthy and working fine. - */ - HEALTHY, - - /** - * PDP is not healthy. - */ - NOT_HEALTHY, - - /** - * PDP is currently under test state and performing tests. - */ - TEST_IN_PROGRESS, -} diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpMessageType.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpMessageType.java deleted file mode 100644 index f59e84fb..00000000 --- a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpMessageType.java +++ /dev/null @@ -1,52 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2019 Nordix Foundation. - * ================================================================================ - * 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. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - -package org.onap.policy.pdp.common.enums; - -/** - * Class to hold the possible values for the type of PDP messages. - * - * @author Ram Krishna Verma (ram.krishna.verma@est.tech) - */ -public enum PdpMessageType { - - /** - * Used by PDPs to report status to PAP. - */ - PDP_STATUS, - - /** - * Used by PAP to update the policies running on PDPs, triggers a PDP_STATUS message with the result of the - * PDP_UPDATE operation. - */ - PDP_UPDATE, - - /** - * Used by PAP to change the state of PDPs, triggers a PDP_STATUS message with the result of the PDP_STATE_CHANGE - * operation. - */ - PDP_STATE_CHANGE, - - /** - * Used by PAP to order a health check on PDPs, triggers a PDP_STATUS message with the result of the - * PDP_HEALTH_CHECK operation. - */ - PDP_HEALTH_CHECK, -} diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpResponseStatus.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpResponseStatus.java deleted file mode 100644 index 5bc994a6..00000000 --- a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpResponseStatus.java +++ /dev/null @@ -1,39 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2019 Nordix Foundation. - * ================================================================================ - * 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. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - -package org.onap.policy.pdp.common.enums; - -/** - * Class to hold the possible values for PDP response status. - * - * @author Ram Krishna Verma (ram.krishna.verma@est.tech) - */ -public enum PdpResponseStatus { - - /** - * PDP operation was successful. - */ - SUCCESS, - - /** - * PDP operation failed. - */ - FAIL, -} diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpState.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpState.java deleted file mode 100644 index 88124157..00000000 --- a/pdp-common/src/main/java/org/onap/policy/pdp/common/enums/PdpState.java +++ /dev/null @@ -1,57 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2019 Nordix Foundation. - * ================================================================================ - * 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. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - -package org.onap.policy.pdp.common.enums; - -/** - * Class to hold the possible values for state of PDP. - * - * @author Ram Krishna Verma (ram.krishna.verma@est.tech) - */ -public enum PdpState { - - /** - * Policy execution is always rejected irrespective of PDP type. - */ - PASSIVE, - - /** - * Policy execution proceeds, but changes to domain state or context are not carried out. The PDP returns an - * indication that it is running in SAFE mode together with the action it would have performed if it was operating - * in ACTIVE mode. - */ - SAFE, - - /** - * Policy execution proceeds and changes to domain and state are carried out in a test environment. The PDP returns - * an indication that it is running in TEST mode together with the action it has performed on the test environment. - */ - TEST, - - /** - * Policy execution is executed in the live environment by the PDP. - */ - ACTIVE, - - /** - * Policy execution is terminated and not available. - */ - TERMINATED -} |