aboutsummaryrefslogtreecommitdiffstats
path: root/core/core-protocols/src/main/java/org/onap/policy/apex/core/protocols/engdep/messages/GetEngineInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/core-protocols/src/main/java/org/onap/policy/apex/core/protocols/engdep/messages/GetEngineInfo.java')
-rw-r--r--core/core-protocols/src/main/java/org/onap/policy/apex/core/protocols/engdep/messages/GetEngineInfo.java63
1 files changed, 63 insertions, 0 deletions
diff --git a/core/core-protocols/src/main/java/org/onap/policy/apex/core/protocols/engdep/messages/GetEngineInfo.java b/core/core-protocols/src/main/java/org/onap/policy/apex/core/protocols/engdep/messages/GetEngineInfo.java
new file mode 100644
index 000000000..5b53856d8
--- /dev/null
+++ b/core/core-protocols/src/main/java/org/onap/policy/apex/core/protocols/engdep/messages/GetEngineInfo.java
@@ -0,0 +1,63 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2016-2018 Ericsson. 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.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.policy.apex.core.protocols.engdep.messages;
+
+import org.onap.policy.apex.core.protocols.Message;
+import org.onap.policy.apex.core.protocols.engdep.EngDepAction;
+import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
+
+/**
+ * The Class GetEngineInfo is a message that requests information on Apex engines and the policies they are running.
+ *
+ * @author Liam Fallon (liam.fallon@ericsson.com)
+ */
+public class GetEngineInfo extends Message {
+ private static final long serialVersionUID = 5885214410842753037L;
+
+ /**
+ * Instantiates a new GetEngineInfo message.
+ *
+ * @param engineKey the key the engine for which the runtime information is requested
+ */
+ public GetEngineInfo(final AxArtifactKey engineKey) {
+ this(engineKey, null);
+ }
+
+ /**
+ * Instantiates a new GetEngineInfo message.
+ *
+ * @param engineKey the key the engine for which the runtime information is requested
+ * @param messageData the message data that may give specifics on what information to return
+ */
+ public GetEngineInfo(final AxArtifactKey engineKey, final String messageData) {
+ super(EngDepAction.GET_ENGINE_INFO, engineKey, messageData);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.onap.policy.apex.core.model.protocols.Message#toString()
+ */
+ @Override
+ public String toString() {
+ return "GetEngineInfo {" + super.toString() + "}[]";
+ }
+}