class ProfilePersistenceHelper
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static java.lang.String |
DEFAULT_PEER_PROFILE_DIR |
|
static java.lang.String |
PROP_PEER_PROFILE_DIR |
コンストラクタ | 説明 |
---|---|
ProfilePersistenceHelper(RouterContext ctx) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
deleteOldProfiles(long age) |
Delete profile files with timestamps older than 'age' ago
|
(package private) static long |
getLong(java.util.Properties props,
java.lang.String key) |
|
PeerProfile |
readProfile(java.io.File file) |
|
java.util.Set<PeerProfile> |
readProfiles() |
|
void |
setUs(Hash routerIdentHash) |
|
void |
writeProfile(PeerProfile profile) |
write out the data from the profile to the stream
|
void |
writeProfile(PeerProfile profile,
java.io.OutputStream out) |
write out the data from the profile to the stream
|
public static final java.lang.String PROP_PEER_PROFILE_DIR
public static final java.lang.String DEFAULT_PEER_PROFILE_DIR
public ProfilePersistenceHelper(RouterContext ctx)
public void setUs(Hash routerIdentHash)
public void writeProfile(PeerProfile profile)
public void writeProfile(PeerProfile profile, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public java.util.Set<PeerProfile> readProfiles()
public void deleteOldProfiles(long age)
public PeerProfile readProfile(java.io.File file)
static long getLong(java.util.Properties props, java.lang.String key)