public class SimpleMessageFactory extends MessageFactory
fullmsg, hotspot, identityStore, msg, source, target
Constructor and Description |
---|
SimpleMessageFactory(String msg,
int source,
int target,
IdentityStoreBlock[] anonGroupMembers,
IdentityStore is)
A simple message factory creating a possibly redundant message path.
|
Modifier and Type | Method and Description |
---|---|
RoutingCombo |
build()
build a simple message path.
|
static MessageFactory |
buildMessage(String msg,
int source,
int target,
IdentityStoreBlock[] anonGroupMembers,
IdentityStore is)
Build a message with the specified parameters.
|
GraphSet |
getGraph()
Gets the previously built message path.
|
long |
getMinMessageTransferStart(long newmin)
Sets the minimum time required to process a message in a node.
|
static void |
main(String[] args)
This is a test methode sheduled to be removed.
|
long |
setMaxTransferTime(long newmax)
Sets the maximum time allowed to transfer the message to the final destination.
|
long |
setMinStepProcessSTime(long newmin)
Sets the minimum time required to process a message in a node.
|
getMessage, setIdentityStore
public SimpleMessageFactory(String msg, int source, int target, IdentityStoreBlock[] anonGroupMembers, IdentityStore is)
A simple message factory creating a possibly redundant message path.
msg
- the message to be usedsource
- the source address for the pathtarget
- the target address for the pathanonGroupMembers
- the anonymity set to be usedis
- the identity store providing the necessary keys and identitiespublic static MessageFactory buildMessage(String msg, int source, int target, IdentityStoreBlock[] anonGroupMembers, IdentityStore is)
Build a message with the specified parameters.
msg
- the message to be embeddedsource
- the indes of the source identitytarget
- the index of the target identityanonGroupMembers
- a set of all available targets in the group setis
- the identity store to be usedpublic RoutingCombo build()
build a simple message path.
build
in class MessageFactory
public long setMaxTransferTime(long newmax)
Sets the maximum time allowed to transfer the message to the final destination.
newmax
- the new maximum transfer time in secondspublic long setMinStepProcessSTime(long newmin)
Sets the minimum time required to process a message in a node.
This time includes anti-malware related processing or anti-UBE related actions.
newmin
- the new time in seconds to be setpublic long getMinMessageTransferStart(long newmin)
Sets the minimum time required to process a message in a node.
This time includes anti-malware related processing or anti-UBE related actions.
newmin
- the new time in seconds to be setpublic GraphSet getGraph()
Gets the previously built message path.
getGraph
in class MessageFactory
public static void main(String[] args) throws IOException
This is a test methode sheduled to be removed.
args
- ordinary main args (ignored)IOException
- if the function was unable to load the identity store from filesystemCopyright © 2023. All rights reserved.