001/*
002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Nuxeo - initial API and implementation
011 *
012 * $Id$
013 */
014
015package org.nuxeo.ecm.core.model;
016
017/**
018 * Interface to manage a low-level repository.
019 */
020public interface Repository {
021
022    String getName();
023
024    Session getSession();
025
026    void shutdown();
027
028    int getActiveSessionsCount();
029
030    /**
031     * Marks the binaries in use by passing them to the binary manager(s)'s GC mark() method.
032     *
033     * @since 7.4
034     */
035    void markReferencedBinaries();
036
037}