net.tomp2p.storage
Class Storage
java.lang.Object
net.tomp2p.storage.Storage
- All Implemented Interfaces:
- Digest, Responsibility
- Direct Known Subclasses:
- StorageDisk, StorageMemory
public abstract class Storage
- extends Object
- implements Digest, Responsibility
|
Method Summary |
abstract void |
close()
|
abstract boolean |
contains(Number480 key)
|
SortedMap<Number480,Data> |
get(Number320 key)
|
abstract Data |
get(Number480 key)
|
abstract SortedMap<Number480,Data> |
get(Number480 fromKey,
Number480 toKey)
|
Storage.ProtectionEnable |
getProtectionDomainEnable()
|
Storage.ProtectionMode |
getProtectionDomainMode()
|
Storage.ProtectionEnable |
getProtectionEntryEnable()
|
Storage.ProtectionMode |
getProtectionEntryMode()
|
abstract void |
iterateAndRun(Number160 locationKey,
StorageRunner runner)
|
abstract boolean |
put(Number480 key,
Data data,
PublicKey publicKey,
boolean putIfAbsent,
boolean domainProtection)
|
SortedMap<Number480,Data> |
remove(Number320 number320,
PublicKey publicKey)
|
abstract SortedMap<Number480,Data> |
remove(Number480 fromKey,
Number480 toKey,
PublicKey publicKey)
|
abstract Data |
remove(Number480 key,
PublicKey publicKey)
|
void |
removeDomainProtection(Number160 removeDomain)
|
void |
setProtection(Storage.ProtectionEnable protectionDomainEnable,
Storage.ProtectionMode protectionDomainMode,
Storage.ProtectionEnable protectionEntryEnable,
Storage.ProtectionMode protectionEntryMode)
|
void |
setProtectionDomainEnable(Storage.ProtectionEnable protectionDomainEnable)
|
void |
setProtectionDomainMode(Storage.ProtectionMode protectionDomainMode)
|
void |
setProtectionEntryEnable(Storage.ProtectionEnable protectionEntryEnable)
|
void |
setProtectionEntryMode(Storage.ProtectionMode protectionEntryMode)
|
abstract Collection<Number480> |
storedDirectReplication()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Storage
public Storage()
put
public abstract boolean put(Number480 key,
Data data,
PublicKey publicKey,
boolean putIfAbsent,
boolean domainProtection)
get
public abstract Data get(Number480 key)
get
public abstract SortedMap<Number480,Data> get(Number480 fromKey,
Number480 toKey)
remove
public abstract SortedMap<Number480,Data> remove(Number480 fromKey,
Number480 toKey,
PublicKey publicKey)
remove
public abstract Data remove(Number480 key,
PublicKey publicKey)
contains
public abstract boolean contains(Number480 key)
iterateAndRun
public abstract void iterateAndRun(Number160 locationKey,
StorageRunner runner)
close
public abstract void close()
storedDirectReplication
public abstract Collection<Number480> storedDirectReplication()
remove
public SortedMap<Number480,Data> remove(Number320 number320,
PublicKey publicKey)
get
public SortedMap<Number480,Data> get(Number320 key)
setProtection
public void setProtection(Storage.ProtectionEnable protectionDomainEnable,
Storage.ProtectionMode protectionDomainMode,
Storage.ProtectionEnable protectionEntryEnable,
Storage.ProtectionMode protectionEntryMode)
setProtectionDomainMode
public void setProtectionDomainMode(Storage.ProtectionMode protectionDomainMode)
getProtectionDomainMode
public Storage.ProtectionMode getProtectionDomainMode()
setProtectionDomainEnable
public void setProtectionDomainEnable(Storage.ProtectionEnable protectionDomainEnable)
getProtectionDomainEnable
public Storage.ProtectionEnable getProtectionDomainEnable()
setProtectionEntryMode
public void setProtectionEntryMode(Storage.ProtectionMode protectionEntryMode)
getProtectionEntryMode
public Storage.ProtectionMode getProtectionEntryMode()
setProtectionEntryEnable
public void setProtectionEntryEnable(Storage.ProtectionEnable protectionEntryEnable)
getProtectionEntryEnable
public Storage.ProtectionEnable getProtectionEntryEnable()
removeDomainProtection
public void removeDomainProtection(Number160 removeDomain)
Copyright © 2011. All Rights Reserved.