|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
nl.astron.lofar.odtb.mom2otdbadapter.mom2listener.ProcessMom2Connection
public class ProcessMom2Connection
Process a mom2 connection
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private java.net.Socket |
client
|
private java.io.BufferedReader |
in
|
private org.apache.commons.logging.Log |
log
|
private java.io.PrintWriter |
out
|
private OTDBRepository |
repository
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ProcessMom2Connection(OTDBRepository repository,
java.net.Socket client)
Constructor |
Method Summary | |
---|---|
protected org.w3c.dom.Document |
convertStringToDocument(java.lang.String myXML)
Convert a xml-string to a Document |
protected void |
finalize()
|
java.lang.String |
getResultXml(java.lang.String errors)
Creates a result xml by given erros |
protected java.lang.String |
processInput(java.lang.String input)
It process the input and stores it to repository |
void |
run()
Starts the thread ProcessMom2Connection. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private org.apache.commons.logging.Log log
private java.io.BufferedReader in
private java.io.PrintWriter out
private java.net.Socket client
private OTDBRepository repository
Constructor Detail |
---|
public ProcessMom2Connection(OTDBRepository repository, java.net.Socket client)
repository
- OTDBRepository with connection to jotdbclient
- Socket with the connection to momMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected java.lang.String processInput(java.lang.String input)
input
- input xml
protected org.w3c.dom.Document convertStringToDocument(java.lang.String myXML) throws java.lang.Exception
myXML
- xml string
java.lang.Exception
public java.lang.String getResultXml(java.lang.String errors)
errors
- Errors
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |