blob: cf1bf25213301e854bbc10dc0edbc5111bd10b64 [file] [log] [blame]
Georgios Katsikas13ccba62020-03-18 12:05:03 +01001/*
2 * Copyright 2020-present Open Networking Foundation
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 */
16
17package org.onosproject.drivers.server.devices.memory;
18
19import java.util.Collection;
20
21/**
22 * Represents an abstraction of a main memory hierarchy.
23 */
24public interface MemoryHierarchyDevice {
25
26 /**
27 * Returns the number of memory modules of this main memory hierarchy.
28 *
29 * @return number of main memory modules
30 */
31 int modulesNb();
32
33 /**
34 * Returns the capacity of the entire main memory hierarchy in MBytes.
35 *
36 * @return entire main memory hierarchy's capacity in Mbytes
37 */
38 long totalCapacity();
39
40 /**
41 * Returns the main memory hierarchy.
42 *
43 * @return main memory hierarchy
44 */
45 Collection<MemoryModuleDevice> memoryHierarchy();
46
47}