jas.server
Class HistogramServer
java.lang.Object
|
+--jas.server.HistogramServer
- All Implemented Interfaces:
- AnalysisApplication
- public class HistogramServer
- extends java.lang.Object
- implements AnalysisApplication
HistogramServer allows a standalone job to make its histograms available to remote JavaAnalysisStudio
clients. HistogramServer also allows messageListeners to be attached to it,
to receive messages sent from a remote client application.
For an example of the use of HistogramServer see the jas.server package
overview
- See Also:
- jas.server
Constructor Summary |
HistogramServer(java.lang.String name)
Create a HistogramServer with the specified name and default RMIProtocol
parameters. |
HistogramServer(java.lang.String name,
java.lang.String[] args)
Create a histogram server with the specified name, and pass arguments
to control the RMIProtocol handler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistogramServer
public HistogramServer(java.lang.String name)
throws jas.server.HistogramServerException
- Create a HistogramServer with the specified name and default RMIProtocol
parameters.
HistogramServer
public HistogramServer(java.lang.String name,
java.lang.String[] args)
throws jas.server.HistogramServerException
- Create a histogram server with the specified name, and pass arguments
to control the RMIProtocol handler
- Parameters:
name
- The name to associate with this jobargs
- The arguments to pass to RMIProtocol- See Also:
RMIProtocol.main(String[])
createJobPeer
public JobPeer createJobPeer(java.lang.String name,
Job job)
- Specified by:
createJobPeer
in interface AnalysisApplication
fireMessageReceived
protected void fireMessageReceived(MessageEvent event)
addPlugin
public void addPlugin(java.lang.String pluginName)
- Forces a named plugin to be loaded into the remote client when
it connects to this server.
- Parameters:
pluginName
- Name of class implementing jas.plugin.Plugin
addMessageListener
public void addMessageListener(MessageListener l)
- Add a message listener to listen for messages sent from a
remote JAS client.
- See Also:
Plugin.sendJob(Object)
,
removeMessageListener(MessageListener)
removeMessageListener
public void removeMessageListener(MessageListener l)
- Remove a message listener
- See Also:
addMessageListener(MessageListener)
currentJob
public Job currentJob()
- Specified by:
currentJob
in interface AnalysisApplication
getLogStream
public java.io.OutputStream getLogStream()