blob: eaeabab15f8c961c756867bb24551ebb7f896b27 [file] [log] [blame]
Jonathan Hart74c83132015-02-02 18:37:57 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.store.intent.impl;
17
Jonathan Hart5ec32ba2015-02-05 13:33:58 -080018import org.onosproject.net.intent.Key;
19
Jonathan Hart74c83132015-02-02 18:37:57 -080020/**
21 * Service for interacting with the partition-to-instance assignments.
22 */
23public interface PartitionService {
24
25 /**
26 * Returns whether the given intent key is in a partition owned by this
27 * instance or not.
28 *
29 * @param intentKey intent key to query
30 * @return true if the key is owned by this instance, otherwise false
31 */
Jonathan Hart5ec32ba2015-02-05 13:33:58 -080032 boolean isMine(Key intentKey);
Jonathan Hart74c83132015-02-02 18:37:57 -080033
34 // TODO add API for rebalancing partitions
35}