|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Shortcut
Client-side representation of a shortcut connection from one server to another.
Shortcuts represent a connection from one server to another that allow requests and data to flow from the first server to the second. To get data responses to come back or to allow requests to be made from the second to the first, there must be a corresponding shortcut from the second to the first.
Shortcuts can also be linked together to form a path from one server via a second to a third and so on. The responses to requests do not need to follow the same path in reverse, but instead may follow a completely different path, so long as the data gets from the source to the destination server.
For example:
If
server A has a shortcut to server B,
server B has a shortcut to server C, and
server C has a shortcut to server A,
then server A can make a request to get data from server C via server B,
while the response from server C goes directly to server A.
RBNBShortcut| Field Summary | |
|---|---|
static byte |
ACTIVE
Shortcut is active. |
static byte |
PASSIVE
Shortcut is passive. |
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
byte |
getActive()
Gets the active state. |
double |
getCost()
Gets the cost of using this Shortcut. |
String |
getDestinationAddress()
Gets the address of the destination server. |
String |
getDestinationName()
Gets the fully-qualified name of the destination server. |
void |
setActive(byte activeI)
Sets the active state. |
void |
setCost(double costI)
Sets the cost of using this Shortcut. |
void |
setDestinationAddress(String destinationAddressI)
Sets the address of the destination server. |
void |
setDestinationName(String destinationNameI)
Sets the name of the destination server. |
| Methods inherited from interface com.rbnb.api.RmapInterface |
|---|
addChild, compareNames, compareNames, compareTo, findChild, findDescendant, getFullName, getName, getParent, removeChild, removeChildAt, setName, toString, toString |
| Field Detail |
|---|
static final byte ACTIVE
Shortcut is active.
Shortcut that in this state are fully enabled. They can be
used to pass both requests and responses to those requests.
PASSIVE,
Constant Field Valuesstatic final byte PASSIVE
Shortcut is passive.
Shortcuts that in this state can only be used to pass back
responses to requests. These Shortcuts are used to provide
a reverse connection.
ACTIVE,
Constant Field Values| Method Detail |
|---|
Object clone()
This same abstract declaration is also included in RmapInterface.java, but for some unknown reason J# gives a compiler error if it is not also included here.
Cloneablebyte getActive()
ACTIVE,
PASSIVE,
setActive(byte)double getCost()
Shortcut.
setCost(double)String getDestinationAddress()
setDestinationAddress(String)String getDestinationName()
setDestinationName(String)void setActive(byte activeI)
activeI - the new active state.
IllegalArgumentException - thrown if the activeI state value is not
ACTIVE or PASSIVE.ACTIVE,
PASSIVE,
getActive()void setCost(double costI)
Shortcut.
costI - the cost.
IllegalArgumentException - thrown if the cost is less than 1.getCost()void setDestinationAddress(String destinationAddressI)
destinationAddressI - the destination address.getDestinationAddress()void setDestinationName(String destinationNameI)
destinationNameI - the destination name.getDestinationName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||