public interface StoreObject
ObjectStoreService. This defines only the basic parts of an
ObjectInfo that is common to all services. Implementations may choose to extend it add more specific information.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_ID
key of object ID in the AnyMap representation of the ObjectInfo.
|
static java.lang.String |
KEY_SIZE
key of size in the AnyMap representation of the ObjectInfo.
|
static java.lang.String |
KEY_TIMESTAMP
key of timestamp in the AnyMap representation of the ObjectInfo.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
long |
getSize() |
java.util.Date |
getTimestamp() |
AnyMap |
toAny()
Create an
AnyMap with the contents of this StoreObject. |
static final java.lang.String KEY_ID
static final java.lang.String KEY_SIZE
static final java.lang.String KEY_TIMESTAMP
java.lang.String getId()
long getSize()
java.util.Date getTimestamp()
AnyMap toAny()
AnyMap with the contents of this StoreObject. In JSON, it should look like this:
{
"id" : "name-of-object",
"size" : 42,
"timestamp" : "2011-06-20T09:22:42.123+0100"
}
Service implementations that extend the ObjectInfo should still use this structure as a base and add specific
information as they like.