Package i5.las2peer.persistency
Class AbstractArtifact
java.lang.Object
rice.p2p.past.ContentHashPastContent
i5.las2peer.persistency.AbstractArtifact
- All Implemented Interfaces:
java.io.Serializable
,rice.p2p.past.PastContent
- Direct Known Subclasses:
HashedArtifact
,NetworkArtifact
public abstract class AbstractArtifact
extends rice.p2p.past.ContentHashPastContent
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractArtifact(rice.p2p.commonapi.Id id, byte[] content)
-
Method Summary
Modifier and Type Method Description rice.p2p.past.PastContent
checkInsert(rice.p2p.commonapi.Id id, rice.p2p.past.PastContent existingContent)
byte[]
getContent()
java.lang.String
toString()
void
verify()
-
Field Details
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
- Constant Field Values
-
content
protected final byte[] content
-
-
Constructor Details
-
AbstractArtifact
protected AbstractArtifact(rice.p2p.commonapi.Id id, byte[] content)
-
-
Method Details
-
getContent
- Throws:
VerificationFailedException
-
verify
- Throws:
VerificationFailedException
-
checkInsert
public rice.p2p.past.PastContent checkInsert(rice.p2p.commonapi.Id id, rice.p2p.past.PastContent existingContent) throws rice.p2p.past.PastException- Specified by:
checkInsert
in interfacerice.p2p.past.PastContent
- Overrides:
checkInsert
in classrice.p2p.past.ContentHashPastContent
- Throws:
rice.p2p.past.PastException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-