public class LocalDiscoveryAgent
extends java.lang.Object
implements jadex.bridge.service.types.awareness.IDiscoveryService
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
Access to agent.
|
protected static java.io.File |
DISCOVERY_DIR
The discovery directory.
|
protected java.io.File |
lastpostedfile
The last awareness file that has been posted.
|
protected java.lang.Object |
watchservice
The directory watch service.
|
Constructor and Description |
---|
LocalDiscoveryAgent() |
Modifier and Type | Method and Description |
---|---|
protected void |
postInfo() |
void |
republish()
Republish the awareness info.
|
protected void |
scan()
Scans for new local awareness infos.
|
void |
setDelay(long delay)
Set the send delay.
|
void |
setExcludes(java.lang.String[] excludes)
Set the excludes.
|
void |
setFast(boolean fast)
Set the fast awareness flag.
|
void |
setIncludes(java.lang.String[] includes)
Set the includes.
|
jadex.commons.future.IFuture<java.lang.Void> |
start()
Implements the start.
|
protected static final java.io.File DISCOVERY_DIR
protected jadex.bridge.IInternalAccess agent
protected java.io.File lastpostedfile
protected java.lang.Object watchservice
public jadex.commons.future.IFuture<java.lang.Void> start()
public void setDelay(long delay)
setDelay
in interface jadex.bridge.service.types.awareness.IDiscoveryService
delay
- The delay.public void setFast(boolean fast)
setFast
in interface jadex.bridge.service.types.awareness.IDiscoveryService
fast
- The fast flag.public void setIncludes(java.lang.String[] includes)
setIncludes
in interface jadex.bridge.service.types.awareness.IDiscoveryService
includes
- The includes.public void setExcludes(java.lang.String[] excludes)
setExcludes
in interface jadex.bridge.service.types.awareness.IDiscoveryService
excludes
- The excludes.public void republish()
republish
in interface jadex.bridge.service.types.awareness.IDiscoveryService
protected void postInfo()
protected void scan()