|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.instantreality.InstantIO.Namespace
org.instantreality.InstantIO.Node
org.instantreality.InstantIO.NetworkNode
public final class NetworkNode
Exports slots to and imports slots from other software components on the network.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.instantreality.InstantIO.Namespace |
---|
Namespace.Listener |
Field Summary | |
---|---|
static Field[] |
fields
Meta information about the fields of this Node. |
Fields inherited from class org.instantreality.InstantIO.Node |
---|
NODE_DISABLED, NODE_ERROR, NODE_RUNNING, NODE_SLEEPING |
Constructor Summary | |
---|---|
NetworkNode()
Creates a new NetworkNode object. |
Method Summary | |
---|---|
void |
disable()
Disables the NetworkNode. |
void |
enable()
Enables the NetworkNode. |
java.net.InetAddress |
getAddress()
Returns the address the NetworkNode is listening at for other NetworkNodes. |
java.lang.String |
getDetailedInfo()
Returns a detailed information string. |
boolean |
getExportSlots()
Returns the "exportSlots" flag that controls if the NetworkNode exports slots to other NetworkNodes. |
short |
getId()
Returns the ID of the NetworkNode. |
boolean |
getImportSlots()
Returns the "importSlots" flag that controls if the NetworkNode imports slots from other NetworkNodes. |
java.net.InetAddress |
getMulticastAddress()
Returns the multicast address used for automatically connecting NetworkNodes on the network. |
int |
getMulticastPort()
Returns the multicast port used for automatically connecting NetworkNodes on the network. |
int |
getMulticastTtl()
Returns the multicast time-to-live value. |
int |
getPort()
Returns the port the NetworkNode is listening at for other NetworkNodes. |
java.lang.String |
getPrefix()
Returns the prefix that is put in front of all slots exported by this NetworkNode. |
java.lang.String |
getServers()
Returns the list of servers the NetworkNode should connect to. |
void |
inSlotAdded(Namespace namespace,
java.lang.String label,
InSlot inSlot)
Gets called when a new inslot is added to the parent namespace. |
void |
inSlotRemoved(Namespace namespace,
java.lang.String label,
InSlot inSlot)
Gets called when an inslot is removed from the parent namespace. |
void |
outSlotAdded(Namespace namespace,
java.lang.String label,
OutSlot outSlot)
Gets called when a new outslot is added to the parent namespace. |
void |
outSlotRemoved(Namespace namespace,
java.lang.String label,
OutSlot outSlot)
Gets called when an outslot is removed from the parent namespace. |
void |
routeAdded(Namespace namespace,
java.lang.String from,
java.lang.String to)
Gets called when a route is added to the parent Namespace. |
void |
routeRemoved(Namespace namespace,
java.lang.String from,
java.lang.String to)
Gets called when a route is removed from the parent Namespace. |
void |
setAddress(java.net.InetAddress address)
Sets the address the NetworkNode is listening at for other NetworkNodes. |
void |
setExportSlots(boolean exportSlots)
Sets the "exportSlots" flag that controls if the NetworkNode exports slots to other NetworkNodes. |
void |
setId(short id)
Sets the ID of the NetworkNode. |
void |
setImportSlots(boolean importSlots)
Sets the "importSlots" flag that controls if the NetworkNode imports slots from other NetworkNodes. |
void |
setMulticastAddress(java.net.InetAddress address)
Sets the multicast address used for automatically connecting NetworkNodes on the network. |
void |
setMulticastPort(int port)
Sets the multicast port used for automatically connecting NetworkNodes on the network. |
void |
setMulticastTtl(int ttl)
Sets the multicast time-to-live value. |
void |
setPort(int port)
Sets the port the NetworkNode is listening at for other NetworkNodes. |
void |
setPrefix(java.lang.String prefix)
Sets the prefix that is put in front of all slots exported by this NetworkNode. |
void |
setServers(java.lang.String servers)
Sets the list of servers the NetworkNode should connect to. |
NodeType |
type()
Returns meta information about the NetworkNode. |
Methods inherited from class org.instantreality.InstantIO.Node |
---|
addLog, getFieldNames, getFieldValue, getLog, getShortInfo, getState, initialize, newData, setFieldValue, setState, setState, shutdown, start, startInSlot, startOutSlot, stop, stopInSlot, stopOutSlot, typeName |
Methods inherited from class org.instantreality.InstantIO.Namespace |
---|
addExternalRoute, addInSlot, addListener, addNamespace, addNamespace, addOutSlot, addRoute, clear, clearExternalRoutes, clearNamespaces, clearRoutes, dirty, dispose, enabled, finalize, getBaseURL, getLabel, removeExternalRoute, removeInSlot, removeListener, removeNamespace, removeOutSlot, removeRoute, saveState, setBaseURL, setDirty, setFieldValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Field[] fields
Constructor Detail |
---|
public NetworkNode()
Method Detail |
---|
public void setMulticastAddress(java.net.InetAddress address)
address
- The multicast address.public java.net.InetAddress getMulticastAddress()
public void setMulticastPort(int port)
port
- The multicast port.public int getMulticastPort()
public void setMulticastTtl(int ttl)
ttl
- The time-to-live value.public int getMulticastTtl()
public void setAddress(java.net.InetAddress address)
address
- The address.public java.net.InetAddress getAddress()
public void setPort(int port)
port
- The port.public int getPort()
public void setId(short id)
id
- The ID.public short getId()
public void setImportSlots(boolean importSlots)
importSlots
- The status of the "importSlots" flag.public boolean getImportSlots()
public void setExportSlots(boolean exportSlots)
exportSlots
- The status of the "exportSlots" flag.public boolean getExportSlots()
public void setServers(java.lang.String servers)
servers
- The list of serverspublic java.lang.String getServers()
public void setPrefix(java.lang.String prefix)
prefix
- The prefix.public java.lang.String getPrefix()
public java.lang.String getDetailedInfo()
getDetailedInfo
in class Node
public void enable()
enable
in class Namespace
Namespace.disable()
,
Namespace.enabled()
public void disable()
disable
in class Namespace
Namespace.enable()
,
Namespace.enabled()
public NodeType type()
type
in class Node
public void outSlotAdded(Namespace namespace, java.lang.String label, OutSlot outSlot)
outSlotAdded
in interface Namespace.Listener
namespace
- The parent namespace.label
- The label of the outslot.outSlot
- The outslot.public void outSlotRemoved(Namespace namespace, java.lang.String label, OutSlot outSlot)
outSlotRemoved
in interface Namespace.Listener
namespace
- The parent namespace.label
- The label of the outslot.outSlot
- The outslot.public void inSlotAdded(Namespace namespace, java.lang.String label, InSlot inSlot)
inSlotAdded
in interface Namespace.Listener
namespace
- The parent namespace.label
- The label of the inslot.inSlot
- The inslot.public void inSlotRemoved(Namespace namespace, java.lang.String label, InSlot inSlot)
inSlotRemoved
in interface Namespace.Listener
namespace
- The parent namespace.label
- The label of the inslot.inSlot
- The inslot.public void routeAdded(Namespace namespace, java.lang.String from, java.lang.String to)
routeAdded
in interface Namespace.Listener
namespace
- The parent namespace.from
- The from part of the route.to
- The to part of the route.public void routeRemoved(Namespace namespace, java.lang.String from, java.lang.String to)
routeRemoved
in interface Namespace.Listener
namespace
- The parent namespace.from
- The from part of the route.to
- The to part of the route.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |