|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsiena.Monitor
public class Monitor
Monitor is a logging facility that can be used in conjunction with the Siena Monitor.
Field Summary | |
---|---|
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 Summary | |
---|---|
Monitor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] SienaNode
public static final byte[] ThinClientNode
public static final byte[] ObjectNode
public static final byte[] AntoNode
Constructor Detail |
---|
public Monitor()
Method Detail |
---|
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
|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |