summaryrefslogtreecommitdiffstats
path: root/pdp-common/src/main/java/org/onap/policy/pdp/common/models
diff options
context:
space:
mode:
Diffstat (limited to 'pdp-common/src/main/java/org/onap/policy/pdp/common/models')
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpHealthCheck.java50
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java58
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpResponseDetails.java43
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStateChange.java52
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatistics.java43
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatus.java66
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpUpdate.java55
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/Policy.java44
8 files changed, 0 insertions, 411 deletions
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpHealthCheck.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpHealthCheck.java
deleted file mode 100644
index 24fbbb9f..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpHealthCheck.java
+++ /dev/null
@@ -1,50 +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.models;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import org.onap.policy.pdp.common.enums.PdpMessageType;
-
-/**
- * Class to represent the PDP_HEALTH_CHECK message that PAP will send to either PDPGroup/Subgroup or a PDP.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-public class PdpHealthCheck extends PdpMessage {
-
- private String name;
- private String pdpGroup;
- private String pdpSubgroup;
-
- /**
- * Constructor for instantiating PdpHealthCheck class with message name.
- *
- */
- public PdpHealthCheck() {
- super(PdpMessageType.PDP_HEALTH_CHECK);
- }
-}
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java
deleted file mode 100644
index 4fcd445f..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java
+++ /dev/null
@@ -1,58 +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.models;
-
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import org.onap.policy.pdp.common.enums.PdpMessageType;
-
-/**
- * Class to represent the base class for various messages that will ve exchanged between PAP and PDP.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-public class PdpMessage {
-
- @Setter(AccessLevel.NONE)
- private PdpMessageType messageName;
- private String requestId;
-
- /**
- * Time-stamp, in milliseconds, when the message was created. Defaults to the current
- * time.
- */
- private long timestampMs = System.currentTimeMillis();
-
- /**
- * Constructor for instantiating PdpMessage class with message name.
- *
- * @param messageName the message name
- */
- public PdpMessage(final PdpMessageType messageName) {
- this.messageName = messageName;
- }
-}
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpResponseDetails.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpResponseDetails.java
deleted file mode 100644
index 5d1c472d..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpResponseDetails.java
+++ /dev/null
@@ -1,43 +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.models;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import org.onap.policy.pdp.common.enums.PdpResponseStatus;
-
-/**
- * Class to represent PDP response details.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-public class PdpResponseDetails {
-
- // The responseTo field should match the original request id in the request.
- private String responseTo;
- private PdpResponseStatus responseStatus;
- private String responseMessage;
-}
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStateChange.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStateChange.java
deleted file mode 100644
index e11e4a8b..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStateChange.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.models;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import org.onap.policy.pdp.common.enums.PdpMessageType;
-import org.onap.policy.pdp.common.enums.PdpState;
-
-/**
- * Class to represent the PDP_STATE_CHANGE message that PAP will send to either PDPGroup/Subgroup or a PDP.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-public class PdpStateChange extends PdpMessage {
-
- private String name;
- private PdpState state;
- private String pdpGroup;
- private String pdpSubgroup;
-
- /**
- * Constructor for instantiating PdpStateChange class with message name.
- *
- */
- public PdpStateChange() {
- super(PdpMessageType.PDP_STATE_CHANGE);
- }
-}
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatistics.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatistics.java
deleted file mode 100644
index 40f34aa2..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatistics.java
+++ /dev/null
@@ -1,43 +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.models;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-/**
- * Class to represent statistics of a running PDP.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-public class PdpStatistics {
-
- private long policyDownloadCount;
- private long policyDownloadSuccessCount;
- private long policyDownloadFailCount;
- private long policyExecutedCount;
- private long policyExecutedSuccessCount;
- private long policyExecutedFailCount;
-}
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatus.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatus.java
deleted file mode 100644
index 5174cc9e..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpStatus.java
+++ /dev/null
@@ -1,66 +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.models;
-
-import java.util.List;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import org.onap.policy.pdp.common.enums.PdpHealthStatus;
-import org.onap.policy.pdp.common.enums.PdpMessageType;
-import org.onap.policy.pdp.common.enums.PdpState;
-
-/**
- * Class to represent the PDP_STATUS message that all the PDP's will send to PAP.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-public class PdpStatus extends PdpMessage {
-
- private String name;
- private String version;
- private String pdpType;
- private PdpState state;
- private PdpHealthStatus healthy;
- private String description;
- private String pdpGroup;
- private String pdpSubgroup;
- private List<String> supportedPolicyTypes;
- private List<Policy> policies;
- private String instance;
- private String deploymentInstanceInfo;
- private String properties;
- private PdpStatistics statistics;
- private PdpResponseDetails response;
-
- /**
- * Constructor for instantiating PdpStatus class with message name.
- *
- */
- public PdpStatus() {
- super(PdpMessageType.PDP_STATUS);
- }
-}
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpUpdate.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpUpdate.java
deleted file mode 100644
index 03559cc8..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpUpdate.java
+++ /dev/null
@@ -1,55 +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.models;
-
-import java.util.List;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import org.onap.policy.pdp.common.enums.PdpMessageType;
-
-/**
- * Class to represent the PDP_UPDATE message that PAP will send to a PDP.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-public class PdpUpdate extends PdpMessage {
-
- private String name;
- private String pdpType;
- private String description;
- private String pdpGroup;
- private String pdpSubgroup;
- private List<Policy> policies;
-
- /**
- * Constructor for instantiating PdpUpdate class with message name.
- *
- */
- public PdpUpdate() {
- super(PdpMessageType.PDP_UPDATE);
- }
-}
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/Policy.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/Policy.java
deleted file mode 100644
index b756386b..00000000
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/Policy.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.models;
-
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-/**
- * Class to represent a policy running in a PDP.
- *
- * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
- */
-@Getter
-@Setter
-@ToString
-@EqualsAndHashCode
-public class Policy {
-
- private String name;
- private String policyVersion;
- private String policyType;
- private String policyTypeVersion;
- private String properties;
-}