public class Communicator
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
|
Communicator(Config cfg,
TWSChannel ch) |
protected |
Communicator(Config config,
TWSChannel channel,
EdgeGenerator edgeGenerator,
TaskIdGenerator idGenerator,
java.util.List<java.lang.String> persistentDirectories) |
|
Communicator(Config config,
TWSChannel ch,
java.util.List<java.lang.String> persDirs) |
|
Communicator(Config config,
TWSChannel ch,
java.lang.String persDir) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Terminate the communicator
|
TWSChannel |
getChannel() |
Config |
getConfig() |
java.util.List<java.lang.String> |
getPersistentDirectories() |
java.lang.String |
getPersistentDirectory(int requesterId) |
Communicator |
newWithConfig(java.util.Map<java.lang.String,java.lang.Object> newConfig)
Create a communicator with new configuration
|
int |
nextEdge() |
int |
nextId() |
void |
reInit() |
void |
updateConfig(java.util.Map<java.lang.String,java.lang.Object> newConfigs)
Update the configs with new configurations
|
public Communicator(Config cfg, TWSChannel ch)
public Communicator(Config config, TWSChannel ch, java.util.List<java.lang.String> persDirs)
public Communicator(Config config, TWSChannel ch, java.lang.String persDir)
protected Communicator(Config config, TWSChannel channel, EdgeGenerator edgeGenerator, TaskIdGenerator idGenerator, java.util.List<java.lang.String> persistentDirectories)
public void reInit()
public TWSChannel getChannel()
public Config getConfig()
public int nextEdge()
public int nextId()
public java.lang.String getPersistentDirectory(int requesterId)
public java.util.List<java.lang.String> getPersistentDirectories()
public void close()
public void updateConfig(java.util.Map<java.lang.String,java.lang.Object> newConfigs)
newConfigs
- the new configurationspublic Communicator newWithConfig(java.util.Map<java.lang.String,java.lang.Object> newConfig)
newConfig
- the new configuration