All Packages Class Hierarchy This Package Previous Next Index
Class kraft.monitor.adapter.LinjaAdapter
java.lang.Object
|
+----kraft.monitor.adapter.LinjaAdapter
-
public class LinjaAdapter
-
extends Object
Deals with receiving messages from a Linda server on behalf of the Monitor.
On startup, connects to a Linda server, and "out"s predicates to inform
the Linda server(s) being monitored to make duplicates. for local site:
monitor(_) for remote site: remote_monitor(on, _, _) Converts the raw strings
received from messages (representing Prolog terms) into Kraft_msg objects,
and registers KraftAgents when needed to represent the sender/receiver
of messages. It passes these to any MonitorServer, using the standard interface
methods. Currently, the MonitorGUI is the one receiving these calls.
-
Author:
-
Ted Francis
-
See Also:
-
Kraft_msg, KraftAgent,
MonitorGUI
-
LinjaAdapter(MonitorServer)
-
Start up and prepare to send info to 'mon' Should be followed by a call
to connectToLinda()
-
LinjaAdapter(MonitorServer,
String, int, String)
-
Start up and prepare to send info to 'mon'.
-
LinjaAdapter(MonitorServer,
String, int, String, String)
-
Start up and prepare to send info to 'mon'.
-
connectToLinda(String,
int, String)
-
Connect to the linda server at "lhost:lport" using the name 'name' for
the monitor
-
connectToLinda(String,
int, String, String)
-
Connect to the linda server at "lhost:lport", using the name "krl( site,
name)" for the monitor
-
monitorRemoteSites(String[])
-
Try to monitor the given remote sites.
-
stop()
-
Stop the linda adapter from receiving messages, and instruct the monitored
site(s) to stop sending duplicates
LinjaAdapter
public LinjaAdapter(MonitorServer mon)
-
Start up and prepare to send info to 'mon' Should be followed by a call
to connectToLinda()
LinjaAdapter
public LinjaAdapter(MonitorServer mon,
String lhost,
int lport,
String name)
-
Start up and prepare to send info to 'mon'. Connects to the linda server
running on 'lhost:lport' using name "name" for the monitor
LinjaAdapter
public LinjaAdapter(MonitorServer mon,
String lhost,
int lport,
String name,
String site)
-
Start up and prepare to send info to 'mon'. Connects to the linda server
running on 'lhost:lport' using name "krl( site, name )" for the monitor
connectToLinda
public void connectToLinda(String lhost,
int lport,
String name,
String site)
-
Connect to the linda server at "lhost:lport", using the name "krl( site,
name)" for the monitor
connectToLinda
public void connectToLinda(String lhost,
int lport,
String name)
-
Connect to the linda server at "lhost:lport" using the name 'name' for
the monitor
monitorRemoteSites
public void monitorRemoteSites(String new_sites[])
-
Try to monitor the given remote sites. Sends remote_monitor(on,_,_) to
the given sites. Also sends remote_monitor(off,_,_) to the previously monitored
sites.
stop
public void stop()
-
Stop the linda adapter from receiving messages, and instruct the monitored
site(s) to stop sending duplicates
All Packages Class Hierarchy This Package Previous Next Index