github.com/rohankumardubey/aresdb@v0.0.2-0.20190517170215-e54e3ca06b9c/memstore/common/mocks/HostMemoryManager.go (about) 1 // Copyright (c) 2017-2018 Uber Technologies, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by mockery v1.0.0. DO NOT EDIT. 16 package mocks 17 18 import common "github.com/uber/aresdb/memstore/common" 19 import mock "github.com/stretchr/testify/mock" 20 21 // HostMemoryManager is an autogenerated mock type for the HostMemoryManager type 22 type HostMemoryManager struct { 23 mock.Mock 24 } 25 26 // GetArchiveMemoryUsageByTableShard provides a mock function with given fields: 27 func (_m *HostMemoryManager) GetArchiveMemoryUsageByTableShard() (map[string]map[string]*common.ColumnMemoryUsage, error) { 28 ret := _m.Called() 29 30 var r0 map[string]map[string]*common.ColumnMemoryUsage 31 if rf, ok := ret.Get(0).(func() map[string]map[string]*common.ColumnMemoryUsage); ok { 32 r0 = rf() 33 } else { 34 if ret.Get(0) != nil { 35 r0 = ret.Get(0).(map[string]map[string]*common.ColumnMemoryUsage) 36 } 37 } 38 39 var r1 error 40 if rf, ok := ret.Get(1).(func() error); ok { 41 r1 = rf() 42 } else { 43 r1 = ret.Error(1) 44 } 45 46 return r0, r1 47 } 48 49 // ReportManagedObject provides a mock function with given fields: table, shard, batchID, columnID, bytes 50 func (_m *HostMemoryManager) ReportManagedObject(table string, shard int, batchID int, columnID int, bytes int64) { 51 _m.Called(table, shard, batchID, columnID, bytes) 52 } 53 54 // ReportUnmanagedSpaceUsageChange provides a mock function with given fields: bytes 55 func (_m *HostMemoryManager) ReportUnmanagedSpaceUsageChange(bytes int64) { 56 _m.Called(bytes) 57 } 58 59 // Start provides a mock function with given fields: 60 func (_m *HostMemoryManager) Start() { 61 _m.Called() 62 } 63 64 // Stop provides a mock function with given fields: 65 func (_m *HostMemoryManager) Stop() { 66 _m.Called() 67 } 68 69 // TriggerEviction provides a mock function with given fields: 70 func (_m *HostMemoryManager) TriggerEviction() { 71 _m.Called() 72 } 73 74 // TriggerPreload provides a mock function with given fields: tableName, columnID, oldPreloadingDays, newPreloadingDays 75 func (_m *HostMemoryManager) TriggerPreload(tableName string, columnID int, oldPreloadingDays int, newPreloadingDays int) { 76 _m.Called(tableName, columnID, oldPreloadingDays, newPreloadingDays) 77 }