Class SwiftContainerImpl
- java.lang.Object
-
- org.openstack4j.openstack.storage.object.domain.SwiftContainerImpl
-
- All Implemented Interfaces:
Serializable,ModelEntity,SwiftContainer
public class SwiftContainerImpl extends Object implements SwiftContainer
Represents an OpenStack Swift Container which holds Objects- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SwiftContainerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getMetadata()The metadata for the current container.StringgetName()The name of the ContainerintgetObjectCount()The current object count for this containerlonggetTotalSize()The total size of all the objects within this contain in bytesStringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SwiftContainerThe name of the Container- Specified by:
getNamein interfaceSwiftContainer- Returns:
- the container name
-
getObjectCount
public int getObjectCount()
Description copied from interface:SwiftContainerThe current object count for this container- Specified by:
getObjectCountin interfaceSwiftContainer- Returns:
- the number of objects
-
getTotalSize
public long getTotalSize()
Description copied from interface:SwiftContainerThe total size of all the objects within this contain in bytes- Specified by:
getTotalSizein interfaceSwiftContainer- Returns:
- total size in bytes
-
getMetadata
public Map<String,String> getMetadata()
Description copied from interface:SwiftContainerThe metadata for the current container. NOTE: This is a lazy call to the server and will invoke each time this method is called.- Specified by:
getMetadatain interfaceSwiftContainer- Returns:
- The metadata for this container
-
-