public class DiscoveryInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ITransportComponentIdentifier |
cid
The component identifier of the remote component.
|
protected java.util.Map<java.lang.String,java.lang.String> |
properties
Platform properties (if any).
|
protected IFuture<IComponentIdentifier> |
proxy
Component id of local proxy (if any).
|
protected boolean |
remoteexcluded
Flag indicating that the remote component has excluded our local component.
|
protected java.util.Map<java.lang.String,long[]> |
timedelays
The current send delay time.
|
Constructor and Description |
---|
DiscoveryInfo()
Create a new discovery info.
|
DiscoveryInfo(ITransportComponentIdentifier cid,
IFuture<IComponentIdentifier> proxy,
boolean remoteexcluded,
java.util.Map<java.lang.String,java.lang.String> properties)
Create a new discovery info.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test for equality.
|
ITransportComponentIdentifier |
getComponentIdentifier()
Get the component identifier.
|
long |
getDelay()
Get the time.
|
long |
getDelay(java.lang.String src)
Get the time.
|
long[] |
getMaxEntry()
Get the time.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Get the properties.
|
IFuture<IComponentIdentifier> |
getProxy()
Get the proxy.
|
long |
getTime()
Get the time.
|
long |
getTime(java.lang.String src)
Get the time.
|
java.util.Map<java.lang.String,long[]> |
getTimeDelays()
Get the delays.
|
int |
hashCode()
Get the hashcode.
|
boolean |
isAlive()
Check, if the platform is still alive.
|
boolean |
isRemoteExcluded()
Is the local platform excluded by the remote platform?
|
void |
removeTimeDelay(java.lang.String src)
Remove a time support.
|
void |
setComponentIdentifier(ITransportComponentIdentifier componentIdentifier)
Set the component identifier.
|
void |
setDelays(java.util.Map<java.lang.String,long[]> timedelays)
Set the delays.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> props)
Set the properties.
|
void |
setProxy(IFuture<IComponentIdentifier> proxy)
Set the proxy.
|
void |
setRemoteExcluded(boolean remoteexcluded)
Set the remote excluded flag.
|
void |
setTimeDelay(java.lang.String src,
long time,
long delay)
Add a new time support.
|
java.lang.String |
toString()
Get the string representation.
|
protected ITransportComponentIdentifier cid
protected IFuture<IComponentIdentifier> proxy
protected java.util.Map<java.lang.String,long[]> timedelays
protected boolean remoteexcluded
protected java.util.Map<java.lang.String,java.lang.String> properties
public DiscoveryInfo()
public DiscoveryInfo(ITransportComponentIdentifier cid, IFuture<IComponentIdentifier> proxy, boolean remoteexcluded, java.util.Map<java.lang.String,java.lang.String> properties)
public ITransportComponentIdentifier getComponentIdentifier()
public void setComponentIdentifier(ITransportComponentIdentifier componentIdentifier)
component
- identifier The component identifier to set.public IFuture<IComponentIdentifier> getProxy()
public void setProxy(IFuture<IComponentIdentifier> proxy)
proxy
- The proxy to set.public long getTime()
public long[] getMaxEntry()
public long getDelay()
public long getDelay(java.lang.String src)
public long getTime(java.lang.String src)
public void setTimeDelay(java.lang.String src, long time, long delay)
public void removeTimeDelay(java.lang.String src)
public java.util.Map<java.lang.String,long[]> getTimeDelays()
public void setDelays(java.util.Map<java.lang.String,long[]> timedelays)
delays
- The delays to set.public boolean isRemoteExcluded()
public void setRemoteExcluded(boolean remoteexcluded)
remoteexcluded
- Is the local platform excluded by the remote platform?public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> props)
props
- The properties.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isAlive()
public java.lang.String toString()
toString
in class java.lang.Object