|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.xmlBlaster.contrib.socketgetter.SocketGetter
public class SocketGetter
SocketGetter launches a xmlBlaster-client which listens on the given socket and delivers the content of the oid given in a telnet session.
Usage:
java org.xmlBlaster.contrib.socketgetter.SocketGetter -port <port>
Example for usage:
java org.xmlBlaster.contrib.socketgetter.SocketGetter -port 9876 -plugin/socket/hostname server
(sleep 1; echo "get __sys__UserList"; sleep 1) | telnet localhost 9876
The host which the telnet connects to is the one which runns the SocketGetter.
This host may differ from the one running the xmlBaslter server, of course.
In this example, the xmlBlaster runns on the host called server, where at the SocketGetter
runns on the localhost on port 9876.
SocketGetterPlugin
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SocketGetter(org.xmlBlaster.util.Global global)
Convenience constructor dor the use from the main method. |
|
SocketGetter(org.xmlBlaster.util.Global global,
int port)
Starts the SocketGetter. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
The main method. |
void |
run()
Starts the socket getter task. |
void |
shutdown()
Closes the connectionto xmlBlaster server. |
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SocketGetter(org.xmlBlaster.util.Global global, int port)
java.util.logging.Level.FINER
is good for debugging purposes.
global
- The Global instance created in main.port
- The port where the socket listens on.public SocketGetter(org.xmlBlaster.util.Global global)
global
- The Global instance created in main.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void shutdown()
public static void main(java.lang.String[] args)
args
- The command-line arguments.
|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |