|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfabric.dissemination.Glob
public class Glob
A glob is an ObjectGroup that has been encrypted and signed.
Constructor Summary | |
---|---|
Glob(java.security.PublicKey key,
java.io.DataInput in)
Deserializer. |
|
Glob(Store store,
ObjectGroup group,
java.security.PrivateKey key)
Used by the store to encrypt and sign an object group. |
Method Summary | |
---|---|
ObjectGroup |
decrypt(Store store)
|
int |
frequency()
How many times the object has been accessed since last aggregation. |
void |
frequency(int frequency)
Sets the frequency. |
long |
getTimestamp()
|
boolean |
home()
Whether this is the home node for this glob. |
boolean |
isOlderThan(Glob glob)
Whether this Glob is older than the given Glob. |
int |
level()
The dissemination level of the glob. |
void |
level(int level)
Sets the level. |
int |
popularity()
The popularity of the glob. |
void |
popularity(int popularity)
Sets the popularity. |
void |
touch()
Increments frequency by 1. |
boolean |
verifySignature(java.security.PublicKey key)
|
void |
write(java.io.DataOutput out)
Serializer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Glob(Store store, ObjectGroup group, java.security.PrivateKey key)
store
- The store at which the group resides.group
- The group to encapsulate.key
- The store's private key. Used to sign the glob.public Glob(java.security.PublicKey key, java.io.DataInput in) throws java.io.IOException, BadSignatureException
key
- The public key for verifying the signature. (If null, signature
verification is bypassed.)
java.io.IOException
BadSignatureException
Method Detail |
---|
public int level()
public void level(int level)
public int frequency()
public void frequency(int frequency)
public void touch()
public int popularity()
public void popularity(int popularity)
public boolean home()
public boolean isOlderThan(Glob glob)
public boolean verifySignature(java.security.PublicKey key) throws java.security.SignatureException, java.security.InvalidKeyException
java.security.SignatureException
java.security.InvalidKeyException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface FastSerializable
java.io.IOException
public ObjectGroup decrypt(Store store)
store
- The store that this glob came from.public long getTimestamp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |