All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.talend.esb.sam.server.ui.UIProvider Maven / Gradle / Ivy

There is a newer version: 8.0.1.R2024-05-RT
Show newest version
/*
 * #%L
 * Service Activity Monitoring :: Server
 * %%
 * Copyright (C) 2011 - 2012 Talend Inc.
 * %%
 * 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.
 * #L%
 */
package org.talend.esb.sam.server.ui;

import com.google.gson.JsonObject;

/**
 * Interface of the data provider for SAM UI.
 *
 * @author zubairov
 */
public interface UIProvider {

    /**
     * Retrieve an aggregated list of events
     * starting with offset
     * maximum number of items is limit.
     *
     * @param offset the offset
     * @param baseURL the base url
     * @param criteria the criteria
     * @return the events
     */
    JsonObject getEvents(long offset, String baseURL, CriteriaAdapter criteria);

    /**
     * Returns a detailed information about flow with given ID or null if no such flow was found.
     *
     * @param flowID the flow id
     * @param baseURL the base url
     * @return the flow details
     */
    JsonObject getFlowDetails(String flowID, String baseURL);

    /**
     * Returns a detailed information about event with given ID or null if no such event was found.
     *
     * @param eventID the event id
     * @return the event details
     */
    JsonObject getEventDetails(String eventID);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy