Merge "lport-tag interface map information lost during cluster reboot"
[genius.git] / resourcemanager / resourcemanager-impl / src / main / java / org / opendaylight / genius / resourcemanager / ResourceManager.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.genius.resourcemanager;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.AllocateIdInputBuilder;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.AllocateIdRangeInputBuilder;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.AllocateIdRangeOutputBuilder;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.resourcemanager.rev160622.*;
17 import org.opendaylight.yangtools.yang.common.RpcResult;
18 import org.slf4j.Logger;
19 import org.slf4j.LoggerFactory;
20
21 import java.util.concurrent.Future;
22
23 public class ResourceManager implements ResourceManagerService, AutoCloseable{
24
25     private static final Logger LOG = LoggerFactory.getLogger(ResourceManager.class);
26     private final DataBroker broker;
27     private final IdManagerService idManager;
28
29     public ResourceManager(DataBroker broker, IdManagerService idManager) {
30         this.broker = broker;
31         this.idManager = idManager;
32     }
33
34     @Override
35     public void close() throws Exception {
36         LOG.info("ResourceManager closed");
37     }
38
39     @Override
40     public Future<RpcResult<AllocateResourceOutput>> allocateResource(AllocateResourceInput input) {
41         //TODO
42         return null;
43     }
44
45     @Override
46     public Future<RpcResult<GetResourcePoolOutput>> getResourcePool(GetResourcePoolInput input) {
47         //TODO
48         return null;
49     }
50
51     @Override
52     public Future<RpcResult<GetAvailableResourcesOutput>> getAvailableResources(GetAvailableResourcesInput input) {
53         //TODO
54         return null;
55     }
56
57     @Override
58     public Future<RpcResult<Void>> releaseResource(ReleaseResourceInput input) {
59         //TODO
60         return null;
61     }
62 }