public class Monitor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
AntoNode
a smiley face
|
static byte[] |
ObjectNode
a node representing a generic object
|
static byte[] |
SienaNode
a node representing a Siena server
|
static byte[] |
ThinClientNode
a node representing a thin client
|
Constructor and Description |
---|
Monitor() |
Modifier and Type | Method and Description |
---|---|
static void |
add_node(byte[] node)
Signal the creation of a a new node to the monitor
uses the Siena server icond, by default
|
static void |
add_node(byte[] node,
byte[] ntype)
Signal a new "node" to the monitor.
|
static void |
connect(byte[] n1,
byte[] n2)
Signal a connection to the monitor.
|
static void |
disconnect(byte[] n1,
byte[] n2)
Signal a disconnection to the monitor.
|
static void |
notify(byte[] sender,
byte[] receiver)
Signal a notification to the monitor.
|
static void |
remove_node(byte[] node)
Signal the removal of a a new node
|
static void |
setAddress(java.net.InetAddress address)
sets the address of the Siena Monitor.
|
static void |
setAddress(java.net.InetAddress address,
int port)
sets address and port for the Siena Monitor
|
static void |
subscribe(byte[] sender,
byte[] receiver)
Signal a subscription to the monitor.
|
static void |
unsubscribe(byte[] sender,
byte[] receiver)
Signal an unsubscription to the monitor.
|
public static final byte[] SienaNode
public static final byte[] ThinClientNode
public static final byte[] ObjectNode
public static final byte[] AntoNode
public static void setAddress(java.net.InetAddress address)
public static void setAddress(java.net.InetAddress address, int port)
public static void notify(byte[] sender, byte[] receiver)
sender
- id of the senderreceiver
- id of the receiverpublic static void subscribe(byte[] sender, byte[] receiver)
sender
- id of the subscriberreceiver
- id of the receiver nodepublic static void unsubscribe(byte[] sender, byte[] receiver)
sender
- id of the subscriberreceiver
- id of the receiver nodepublic static void connect(byte[] n1, byte[] n2)
n1
- id of the first noden2
- id of the second nodepublic static void disconnect(byte[] n1, byte[] n2)
n1
- id of the first noden2
- id of the second nodepublic static void add_node(byte[] node, byte[] ntype)
node
- id of the new nodentype
- type of the new nodepublic static void add_node(byte[] node)
node
- id of the new nodepublic static void remove_node(byte[] node)
node
- id of the removed node
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga