From ea736d0c60f042d4e6255136da789724ee178193 Mon Sep 17 00:00:00 2001 From: ramverma Date: Thu, 29 Nov 2018 13:47:30 +0000 Subject: Fixing issues in apex documents Change-Id: Ibc07c20fa8ac1018443a3c061613fdaecc5efb83 Issue-ID: POLICY-1280 Signed-off-by: ramverma --- .../service/engine/main/ApexEventMarshaller.java | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'services') diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexEventMarshaller.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexEventMarshaller.java index 77be038e5..1e92b9feb 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexEventMarshaller.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexEventMarshaller.java @@ -5,15 +5,15 @@ * 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========================================================= */ @@ -39,8 +39,8 @@ import org.slf4j.ext.XLogger; import org.slf4j.ext.XLoggerFactory; /** - * This event marshaler handles events coming out of Apex and sends them on, handles threading, - * event queuing, transformations and sending using the configured sending technology. + * This event marshaler handles events coming out of Apex and sends them on, handles threading, event queuing, + * transformations and sending using the configured sending technology. * * @author Liam Fallon (liam.fallon@ericsson.com) */ @@ -88,10 +88,9 @@ public class ApexEventMarshaller implements ApexEventListener, Runnable { } /** - * Configure the marshaler by setting up the producer and event converter and initialize the - * thread for event sending. + * Configure the marshaler by setting up the producer and event converter and initialize the thread for event + * sending. * - * @throws ApexActivatorException on errors initializing the producer * @throws ApexEventException on errors initializing event handling */ public void init() throws ApexEventException { @@ -170,8 +169,8 @@ public class ApexEventMarshaller implements ApexEventListener, Runnable { } /** - * Run a thread that runs forever (well until system termination anyway) and listens for - * outgoing events on the queue. + * Run a thread that runs forever (well until system termination anyway) and listens for outgoing events on the + * queue. */ @Override public void run() { @@ -190,7 +189,7 @@ public class ApexEventMarshaller implements ApexEventListener, Runnable { producer.sendEvent(apexEvent.getExecutionId(), apexEvent.getName(), event); if (LOGGER.isTraceEnabled()) { - String message = "event sent : " + apexEvent.toString(); + final String message = "event sent : " + apexEvent.toString(); LOGGER.trace(message); } } catch (final InterruptedException e) { -- cgit 1.2.3-korg