|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.base.xbussystem.XBUSSystem
public class XBUSSystem
XBUSSystem
is the representation of any neighbor-systems
respectively their interfaces. It consists of two informations:
Field Summary | |
---|---|
static java.lang.String |
FILENAME_WILDCARD
|
static java.lang.String |
FILENAME_WILDCARD_XML
|
Constructor Summary | |
---|---|
XBUSSystem(java.lang.String name)
Constructs the XBUSSystem without an address. |
|
XBUSSystem(java.lang.String name,
java.util.Hashtable addresses)
Constructs the XBUSSystem from the name fo the
neighbor-system and all address informations for this system |
|
XBUSSystem(java.lang.String name,
java.util.Hashtable addresses,
boolean broadcast)
Constructs the XBUSSystem from the name fo the
neighbor-system and all address informations for this system and the flag
if a broadcast is requested to this system. |
Method Summary | |
---|---|
static AdditionalAddress |
getAdditionalAddressImplementation(java.lang.String systemName)
Gets the address implementation ( AdditionalAddress ) for the
given system name. |
java.util.Hashtable |
getAddresses()
Returns all address informations of the neighbor-system. |
boolean |
getBroadcast()
Is a braodcast requested for all recorded addtional addresses when sending data to this system? |
void |
getBroadcastData(java.lang.String text)
Check if the given address string does contain a reference to addtional address information. |
java.lang.String |
getCompleteName()
Returns the concatenation of name and all addresses of the neighbor-system by "_" separated. |
int |
getMaxAge()
Get the maximal age of the data source. |
int |
getMinAge()
Get the minimal age of the data source. |
java.lang.String |
getName()
Returns the name of the neighbor-system. |
static java.util.List |
getSystems(java.lang.String name,
java.lang.String text)
Returns a list of XBUSSystems , generated through the
replacing of all possible place markers. |
java.lang.String[] |
replaceAllMarkers(java.lang.String text)
The given text may contain place markers which will be replaced with their actual values. |
void |
setAddress(java.lang.String name,
java.lang.String address)
Sets one address information of the neighbor-system. |
java.lang.String |
toString()
Returns the concatenation of name and address of the neighbor-system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FILENAME_WILDCARD
public static final java.lang.String FILENAME_WILDCARD_XML
Constructor Detail |
---|
public XBUSSystem(java.lang.String name) throws XException
XBUSSystem
without an address.
name
- name of the neighbor-system
XException
public XBUSSystem(java.lang.String name, java.util.Hashtable addresses) throws XException
XBUSSystem
from the name fo the
neighbor-system and all address informations for this system
name
- name of the neighbor-systemaddresses
- name of the address
XException
public XBUSSystem(java.lang.String name, java.util.Hashtable addresses, boolean broadcast) throws XException
XBUSSystem
from the name fo the
neighbor-system and all address informations for this system and the flag
if a broadcast is requested to this system. The addresses do not
necessarily contain the reference to additional address information
necessary for a broadcast.
name
- name of the neighbor-systemaddresses
- name of the addressbroadcast
- is broadcast to be done when sending?
XException
Method Detail |
---|
public java.lang.String getName()
public java.util.Hashtable getAddresses()
Example:
Key | Value |
---|---|
AddressImplementation | Test/Wholesale/std$DEALERNUMBER$.cnf |
WILDCARD | parts |
user | KS |
public void setAddress(java.lang.String name, java.lang.String address)
name
- typ of additional informationaddress
- additional inrformation eventually containing markers with
the format $key$
.public java.lang.String getCompleteName()
public boolean getBroadcast()
public int getMaxAge()
public int getMinAge()
public java.lang.String[] replaceAllMarkers(java.lang.String text) throws XException
setAddress(String, String)
method. The key set there is
interpreted as a marker with the format $key$
.
AdditionalAddress
.Note: If no marker is found, the text will be returned without modifications.
text
- text containing markers
XException
- if the entry is not found or any error occurspublic java.lang.String toString()
toString
in class java.lang.Object
getCompleteName()
public static java.util.List getSystems(java.lang.String name, java.lang.String text) throws XException
XBUSSystems
, generated through the
replacing of all possible place markers.
Note: If there are no place markers in the given text, only one system with an empty address is in that list.
name
- the name of the systemtext
- eventually containing place markers
XBUSSystems
XException
- if any error occurspublic static AdditionalAddress getAdditionalAddressImplementation(java.lang.String systemName) throws XException
AdditionalAddress
) for the
given system name.
Note: If there is no address implementation for the
given system created yet, then creates this method one first.
Address implementation name is read from the configuration:
System_ SystemName
_AddressImplementation
If there is no implementation for the address is provided with this
system, there must be a global entry used.:
Base_System_AddressImplementation
systemName
- the name of the system
AdditionalAddress
) for the
given system name
XException
- if any error occurspublic void getBroadcastData(java.lang.String text) throws XException
text
- the address text (e.g. file path)
XException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |