public class SessionsInfo
extends java.lang.Object
| Constructor and Description |
|---|
SessionsInfo(MultilateralProtocol protocol,
PersistentDataType type,
boolean isPrintEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the SessionsInfo: removes the tmp dir, deletes all saved files.
|
java.nio.file.Path |
getPath(ParticipantRepItem party,
ProfileRepItem profile) |
PersistentDataType |
getPersistentDataType() |
MultilateralProtocol |
getProtocol() |
java.io.Serializable |
getStorage(ParticipantRepItem party,
ProfileRepItem profile)
Try to return the stored data for given [party,profile] pair.
|
boolean |
isPrintEnabled()
True if print ot stdout is enabled.
|
void |
saveStorage(java.io.Serializable content,
ParticipantRepItem party,
ProfileRepItem profile)
saves provided storageMap to the storageDir.
|
public SessionsInfo(MultilateralProtocol protocol, PersistentDataType type, boolean isPrintEnabled) throws java.io.IOException
java.io.IOExceptionpublic java.io.Serializable getStorage(ParticipantRepItem party, ProfileRepItem profile) throws java.lang.ClassNotFoundException, java.io.IOException
party - the PartyRepItemprofile - the ProfileRepItemjava.lang.ClassNotFoundExceptionjava.io.IOExceptionpublic java.nio.file.Path getPath(ParticipantRepItem party, ProfileRepItem profile)
party - the PartyRepItemprofile - the ProfileRepItempublic void close()
public void saveStorage(java.io.Serializable content,
ParticipantRepItem party,
ProfileRepItem profile)
throws java.io.IOException
content - the data to save. If null, the old data is removed but no
'null' object is saved.party - the PartyRepItemprofile - the ProfileRepItemjava.io.IOExceptionpublic MultilateralProtocol getProtocol()
public PersistentDataType getPersistentDataType()
public boolean isPrintEnabled()