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.String
getName()
The name of the Containerint
getObjectCount()
The current object count for this containerlong
getTotalSize()
The total size of all the objects within this contain in bytesString
toString()
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SwiftContainer
The name of the Container- Specified by:
getName
in interfaceSwiftContainer
- Returns:
- the container name
-
getObjectCount
public int getObjectCount()
Description copied from interface:SwiftContainer
The current object count for this container- Specified by:
getObjectCount
in interfaceSwiftContainer
- Returns:
- the number of objects
-
getTotalSize
public long getTotalSize()
Description copied from interface:SwiftContainer
The total size of all the objects within this contain in bytes- Specified by:
getTotalSize
in interfaceSwiftContainer
- Returns:
- total size in bytes
-
getMetadata
public Map<String,String> getMetadata()
Description copied from interface:SwiftContainer
The 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:
getMetadata
in interfaceSwiftContainer
- Returns:
- The metadata for this container
-
-