Skip to content

Commit 93c5406

Browse files
authored
Create CachedImage.java
1 parent c9680c2 commit 93c5406

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package org.openstack4j.model.image.v2;
2+
3+
import org.openstack4j.model.ModelEntity;
4+
import java.util.Date;
5+
6+
/**
7+
* @author zdagjyo on 13/11/2018.
8+
* @see https://docs.openstack.org/developer/glance/cache.html
9+
*/
10+
public interface CachedImage extends ModelEntity {
11+
12+
/**
13+
*
14+
* @return the image id of the cached image
15+
*/
16+
String getImageId();
17+
18+
/**
19+
*
20+
* @return date when this image was last accessed in the cache
21+
*/
22+
Date getLastAccessed();
23+
24+
/**
25+
*
26+
* @return date when the image was last modified in the cache
27+
*/
28+
Date getLastModified();
29+
30+
/**
31+
*
32+
* @return nr of cache hits
33+
*/
34+
Integer getHits();
35+
36+
/**
37+
*
38+
* @return the image size
39+
*/
40+
Long getSize();
41+
}

0 commit comments

Comments
 (0)