Package jmri.jmris.simpleserver
Class SimpleReporterServer
- java.lang.Object
-
- jmri.jmris.AbstractReporterServer
-
- jmri.jmris.simpleserver.SimpleReporterServer
-
public class SimpleReporterServer extends AbstractReporterServer
Simple Server interface between the JMRI reporter manager and a network connection
-
-
Constructor Summary
Constructors Constructor Description SimpleReporterServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
SimpleReporterServer(JmriConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parseStatus(java.lang.String statusString)
void
sendErrorStatus(java.lang.String reporterName)
void
sendReport(java.lang.String reporterName, java.lang.Object r)
-
Methods inherited from class jmri.jmris.AbstractReporterServer
addReporterToList, dispose, initReporter, removeReporterFromList, setReporterReport
-
-
-
-
Constructor Detail
-
SimpleReporterServer
public SimpleReporterServer(JmriConnection connection)
-
SimpleReporterServer
public SimpleReporterServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
-
-
Method Detail
-
sendReport
public void sendReport(java.lang.String reporterName, java.lang.Object r) throws java.io.IOException
- Specified by:
sendReport
in classAbstractReporterServer
- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus(java.lang.String reporterName) throws java.io.IOException
- Specified by:
sendErrorStatus
in classAbstractReporterServer
- Throws:
java.io.IOException
-
parseStatus
public void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseStatus
in classAbstractReporterServer
- Throws:
JmriException
java.io.IOException
-
-