Class AwarenessInfo
- java.lang.Object
-
- jadex.bridge.service.types.awareness.AwarenessInfo
-
public class AwarenessInfo extends java.lang.ObjectSimple info object that is sent between awareness agents.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<TransportAddress>addressesAddresses of the sender, transport, addresses.protected longdelayThe current send time delay (interval).protected java.lang.String[]excludesThe excludes list.protected java.lang.String[]includesThe includes list.protected java.lang.StringmasteridThe masterid (or null if not a master).protected java.util.Map<java.lang.String,java.lang.String>propertiesA map of properties (if any).static java.lang.StringPROPERTY_AWAMECHANISMThe mechanism src.static java.lang.StringPROPERTY_JADEXDATEThe property for the Jadex build date.static java.lang.StringPROPERTY_JADEXVERSIONThe property for the Jadex version.protected IComponentIdentifiersenderThe sending component's identifier.protected java.lang.StringstateThe component state.static java.lang.StringSTATE_ALLOFFLINEHack.static java.lang.StringSTATE_OFFLINEState indicating that a component is going offline.static java.lang.StringSTATE_ONLINEState indicating that a component is currently online.protected static java.lang.String[]SYSTEM_PROPERTIESThe system properties to send in awareness infos.
-
Constructor Summary
Constructors Constructor Description AwarenessInfo()Create a new awareness info.AwarenessInfo(IComponentIdentifier sender, java.util.List<TransportAddress> addresses, java.lang.String state, long delay, java.lang.String[] includes, java.lang.String[] excludes, java.lang.String masterid, java.lang.String mechsrc)Create a new awareness info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TransportAddress>getAddresses()Gets the addresses.longgetDelay()Get the delay.java.lang.String[]getExcludes()Get the excludes.java.lang.String[]getIncludes()Get the includes.java.lang.StringgetMasterId()Get the masterid.java.util.Map<java.lang.String,java.lang.String>getProperties()Get the properties.IComponentIdentifiergetSender()Get the sender.java.lang.StringgetState()Get the state.voidsetAddresses(java.util.List<TransportAddress> addresses)Sets the addresses.voidsetDelay(long delay)Set the delay.voidsetExcludes(java.lang.String[] excludes)Set the excludes.voidsetIncludes(java.lang.String[] includes)Set the includes.voidsetMasterId(java.lang.String masterid)Set the masterid.voidsetProperties(java.util.Map<java.lang.String,java.lang.String> props)Set the properties.voidsetSender(IComponentIdentifier sender)Set the sender.voidsetState(java.lang.String state)Set the state.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
STATE_ONLINE
public static final java.lang.String STATE_ONLINE
State indicating that a component is currently online.- See Also:
- Constant Field Values
-
STATE_OFFLINE
public static final java.lang.String STATE_OFFLINE
State indicating that a component is going offline.- See Also:
- Constant Field Values
-
STATE_ALLOFFLINE
public static final java.lang.String STATE_ALLOFFLINE
Hack. Indicate that the underlying awareness mechanism died.- See Also:
- Constant Field Values
-
PROPERTY_JADEXVERSION
public static final java.lang.String PROPERTY_JADEXVERSION
The property for the Jadex version.- See Also:
- Constant Field Values
-
PROPERTY_JADEXDATE
public static final java.lang.String PROPERTY_JADEXDATE
The property for the Jadex build date.- See Also:
- Constant Field Values
-
PROPERTY_AWAMECHANISM
public static final java.lang.String PROPERTY_AWAMECHANISM
The mechanism src.- See Also:
- Constant Field Values
-
SYSTEM_PROPERTIES
protected static final java.lang.String[] SYSTEM_PROPERTIES
The system properties to send in awareness infos.
-
sender
protected IComponentIdentifier sender
The sending component's identifier.
-
addresses
protected java.util.List<TransportAddress> addresses
Addresses of the sender, transport, addresses.
-
state
protected java.lang.String state
The component state.
-
delay
protected long delay
The current send time delay (interval).
-
includes
protected java.lang.String[] includes
The includes list.
-
excludes
protected java.lang.String[] excludes
The excludes list.
-
masterid
protected java.lang.String masterid
The masterid (or null if not a master).
-
properties
protected java.util.Map<java.lang.String,java.lang.String> properties
A map of properties (if any).
-
-
Constructor Detail
-
AwarenessInfo
public AwarenessInfo()
Create a new awareness info.
-
AwarenessInfo
public AwarenessInfo(IComponentIdentifier sender, java.util.List<TransportAddress> addresses, java.lang.String state, long delay, java.lang.String[] includes, java.lang.String[] excludes, java.lang.String masterid, java.lang.String mechsrc)
Create a new awareness info.
-
-
Method Detail
-
getSender
public IComponentIdentifier getSender()
Get the sender.- Returns:
- the sender.
-
setSender
public void setSender(IComponentIdentifier sender)
Set the sender.- Parameters:
sender- The sender to set.
-
getAddresses
public java.util.List<TransportAddress> getAddresses()
Gets the addresses.- Returns:
- The addresses.
-
setAddresses
public void setAddresses(java.util.List<TransportAddress> addresses)
Sets the addresses.- Parameters:
addresses- The addresses.
-
getState
public java.lang.String getState()
Get the state.- Returns:
- the state.
-
setState
public void setState(java.lang.String state)
Set the state.- Parameters:
state- The state to set.
-
getDelay
public long getDelay()
Get the delay.- Returns:
- the delay.
-
setDelay
public void setDelay(long delay)
Set the delay.- Parameters:
delay- The delay to set.
-
getIncludes
public java.lang.String[] getIncludes()
Get the includes.- Returns:
- the includes.
-
setIncludes
public void setIncludes(java.lang.String[] includes)
Set the includes.- Parameters:
includes- The includes to set.
-
setExcludes
public void setExcludes(java.lang.String[] excludes)
Set the excludes.- Parameters:
excludes- The excludes to set.
-
getExcludes
public java.lang.String[] getExcludes()
Get the excludes.- Returns:
- the excludes.
-
getMasterId
public java.lang.String getMasterId()
Get the masterid.- Returns:
- the masterid.
-
setMasterId
public void setMasterId(java.lang.String masterid)
Set the masterid.- Parameters:
masterid- The masterid to set.
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
Get the properties.- Returns:
- The properties, if any.
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> props)
Set the properties.- Parameters:
props- The properties.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-