/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.master.marketdatasnapshot;
import com.opengamma.master.AbstractChangeProvidingMaster;
import com.opengamma.util.PublicSPI;
/**
* A general-purpose market data snapshot master.
* <p>
* The snapshot master provides a uniform view over a set of snapshot definitions.
* This interface provides methods that allow the master to be searched and updated.
*/
@PublicSPI
public interface MarketDataSnapshotMaster extends AbstractChangeProvidingMaster<MarketDataSnapshotDocument> {
/**
* Searches for snasphots matching the specified search criteria.
*
* @param request the search request, not null
* @return the search result, not null
* @throws IllegalArgumentException if the request is invalid
*/
MarketDataSnapshotSearchResult search(MarketDataSnapshotSearchRequest request);
/**
* Queries the history of a single snapshot.
* <p>
* The request must contain an object identifier to identify the snapshot.
*
* @param request the history request, not null
* @return the snapshot history, not null
* @throws IllegalArgumentException if the request is invalid
*/
MarketDataSnapshotHistoryResult history(MarketDataSnapshotHistoryRequest request);
}