Assign image keyname and pubkey at vnf level
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemanager / impl / src / main / java / org / opendaylight / mwtn / base / database / HtDataBase.java
1 /*********************************************************************************
2  *  Copyright © 2015, highstreet technologies GmbH
3  *  All rights reserved!
4  *
5  *  http://www.highstreet-technologies.com/
6  *
7  *  The reproduction, transmission or use of this document or its contents is not
8  *  permitted without express written authority. Offenders will be liable for
9  *  damages. All rights, including rights created by patent grant or registration
10  *  of a utility model or design, are reserved. Technical modifications possible.
11  *  Technical specifications and features are binding only insofar as they are
12  *  specifically and expressly agreed upon in a written contract.
13  *
14  *  @author: Martin Skorupski [martin@skorupski.de]
15  *********************************************************************************/
16 package org.opendaylight.mwtn.base.database;
17
18 import org.elasticsearch.client.Client;
19 import org.elasticsearch.common.bytes.BytesReference;
20 import org.elasticsearch.index.query.QueryBuilder;
21 import org.elasticsearch.search.SearchHit;
22
23
24 /**
25  * Interface, used by access one object
26  * @author Herbert
27  *
28  */
29 public interface HtDataBase {
30
31     String getNetworkIndex();
32     void setNetworkIndex(String networkIndex);
33
34     Client getClient();
35     void closeDb();
36
37     public BytesReference doReadJsonData( String dataTypeName, IsEsObject esId );
38     public SearchHit[] doReadAllJsonData( int start, int length, String dataTypeName );
39     public SearchHit[] doReadByQueryJsonData( int start, int length, String dataTypeName, QueryBuilder query);
40
41     public String doWrite( String dataTypeName, IsEsObject esId, byte[] json);
42     public String doWrite( String dataTypeName, IsEsObject esId, String json);
43
44     public boolean doRemove( String dataTypeName, IsEsObject esId );
45
46 }