aboutsummaryrefslogtreecommitdiffstats
path: root/so-monitoring
AgeCommit message (Collapse)AuthorFilesLines
2018-09-22Fix the developer infoseshukm1-0/+1
Change-Id: Id5c96acc2a5fff6ddb4470aa8ed822a287a90fc7 Issue-ID: SO-1084 Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
2018-09-20Standardize 3rd party library versionsGary Wu2-3/+7
Use applicable 3rd party library versions from oparent. Includes upgrade to oparent 1.2.1. Change-Id: I04941105fc659a1829018da26d59ba56ad08ad42 Issue-ID: INT-656 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-09-20Merge "Addition of Dockerfile/logback for SO-Monitoring"Seshu Kumar M1-2/+2
2018-09-19Addition of Dockerfile/logback for SO-Monitoringroot1-2/+2
Creating and adding the files required to include SO-Monitoring's docker image in the full SO build. Change-Id: I72cec6f51b8935f39757415eea7d8b961b8c8cd6 Issue-ID: SO-855 Signed-off-by: rope252 <gareth.roper@ericsson.com>
2018-09-18Merge "Fix issues with load spinner and stats"Seshu Kumar M8-73/+128
2018-09-18Fix issues with load spinner and statsRonan Kenny8-73/+128
Fixing issues where stats returned Nan and implementation of loading spinner Change-Id: I989efb739ed244de3760476ce2dfff8928f51c86 Issue-ID: SO-727 Signed-off-by: Ronan Kenny <ronan.kenny@ericsson.com>
2018-09-17Fix to use common MsoLoggerByung-Woo Jun3-46/+66
Used the MsoLogger instead of using a separate logger Change-Id: I62f8f8ef64a6f56eadf65829c3bf9521d651fbbb Issue-ID: SO-1062 Signed-off-by: byungwoojun<byung-woo.jun@ericsson.com>
2018-09-12SO Monitoring UIwaqas.ikram68-0/+20463
Change-Id: I6f1c13119d18b8731a02c8559bb1484ec84d6041 Issue-ID: SO-726 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com> Signed-off-by: Ronan Kenny <ronan.kenny@ericsson.com>
2018-09-08Adding rest service for so monitoringwaqas.ikram52-0/+9798
Change-Id: I9dac918998901d54b3cbc5477cc9c057c3019cb3 Issue-ID: SO-724 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * ============LICENSE_START=======================================================
 * policy-endpoints
 * ================================================================================
 * Copyright (C) 2017-2018 AT&T Intellectual Property. 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=========================================================
 */

package org.onap.policy.common.endpoints.event.comm.bus;

import java.util.List;
import java.util.Properties;

/**
 * UEB Topic Sink Factory
 */
public interface UebTopicSinkFactory {

    /**
     * Instantiates a new UEB Topic Writer
     * 
     * @param servers list of servers
     * @param topic topic name
     * @param apiKey API Key
     * @param apiSecret API Secret
     * @param partitionKey Consumer Group
     * @param managed is this sink endpoint managed?
     * 
     * @return an UEB Topic Sink
     * @throws IllegalArgumentException if invalid parameters are present
     */
    public UebTopicSink build(List<String> servers, String topic, String apiKey, String apiSecret, String partitionKey,
            boolean managed, boolean useHttps, boolean allowSelfSignedCerts);

    /**
     * Creates an UEB Topic Writer based on properties files
     * 
     * @param properties Properties containing initialization values
     * 
     * @return an UEB Topic Writer
     * @throws IllegalArgumentException if invalid parameters are present
     */
    public List<UebTopicSink> build(Properties properties);

    /**
     * Instantiates a new UEB Topic Writer
     * 
     * @param servers list of servers
     * @param topic topic name
     * 
     * @return an UEB Topic Writer
     * @throws IllegalArgumentException if invalid parameters are present
     */
    public UebTopicSink build(List<String> servers, String topic);

    /**
     * Destroys an UEB Topic Writer based on a topic
     * 
     * @param topic topic name
     * @throws IllegalArgumentException if invalid parameters are present
     */
    public void destroy(String topic);

    /**
     * gets an UEB Topic Writer based on topic name
     * 
     * @param topic the topic name
     * 
     * @return an UEB Topic Writer with topic name
     * @throws IllegalArgumentException if an invalid topic is provided
     * @throws IllegalStateException if the UEB Topic Reader is an incorrect state
     */
    public UebTopicSink get(String topic);

    /**
     * Provides a snapshot of the UEB Topic Writers
     * 
     * @return a list of the UEB Topic Writers
     */
    public List<UebTopicSink> inventory();

    /**
     * Destroys all UEB Topic Writers
     */
    public void destroy();
}