class ProfilePersistenceHelper extends Object
Modifier and Type | Field | Description |
---|---|---|
static String |
DEFAULT_PEER_PROFILE_DIR |
|
static String |
PROP_PEER_PROFILE_DIR |
Constructor | Description |
---|---|
ProfilePersistenceHelper(RouterContext ctx) |
Modifier and Type | Method | Description |
---|---|---|
void |
deleteOldProfiles(long age) |
Delete profile files with timestamps older than 'age' ago
|
(package private) static long |
getLong(Properties props,
String key) |
|
PeerProfile |
readProfile(File file) |
|
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,
OutputStream out) |
write out the data from the profile to the stream
|
public static final String PROP_PEER_PROFILE_DIR
public static final String DEFAULT_PEER_PROFILE_DIR
public ProfilePersistenceHelper(RouterContext ctx)
public void setUs(Hash routerIdentHash)
public void writeProfile(PeerProfile profile)
public void writeProfile(PeerProfile profile, OutputStream out) throws IOException
IOException
public Set<PeerProfile> readProfiles()
public void deleteOldProfiles(long age)
public PeerProfile readProfile(File file)
static long getLong(Properties props, String key)