|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
things.thinger.kernel.ThingsProcess
things.thinger.service.Service
things.thinger.service.local.CLIBackbone
things.thinger.service.local.HttpCLIService
public class HttpCLIService
A Http Service that will bridge to the CLIServer. This is a real cheap ploy for now. I just want to submit CLI commands via HTTP. If the CLIServer is not running, it will fail. The decoded get URL will be handed to transaction tender and the complete response will be sent back. Single threaded too! Dern I suck bad! < p> This requires the LISTEN_PORT (listen) to be set as a local parameter.
Version History
EPG - Initial - 6 NOV 07
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class things.thinger.service.local.CLIBackbone |
---|
transactionInterface |
Fields inherited from class things.thinger.service.Service |
---|
myLogger |
Fields inherited from class things.thinger.kernel.ThingsProcess |
---|
DEFAULT_NAME, internalResult, myPostLogger, ssi |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
HttpCLIService()
|
Method Summary | |
---|---|
void |
constructThingsProcess()
Complete construction. |
static java.lang.String |
decodeUri(java.io.BufferedInputStream bis)
Pull the URI. |
void |
destructThingsProcess()
Destroy. |
void |
executeThingsProcess()
This is the entry point for the actual processing. |
WhoAmI |
getListenerId()
Get the ID of the listener. |
java.lang.String |
getProcessName()
Get process name. |
void |
resourceRevocation(WhoAmI resourceID)
The identified resource is in the process of being revoked. |
void |
resourceRevoked(WhoAmI resourceID)
The identified resource bas been revoked. |
void |
serviceOff()
Called to turn the service off. |
void |
serviceOn()
Called to turn the service on. |
Methods inherited from class things.thinger.service.local.CLIBackbone |
---|
tender |
Methods inherited from class things.thinger.service.Service |
---|
setLogger |
Methods inherited from class things.thinger.kernel.ThingsProcess |
---|
acceptHalt, acceptPause, finalize, fix, forceFinalize, forceHalt, getCurrentState, getCurrentStateNumeric, getProcessId, getResult, getStartTime, getThingsState, init, isVerbose, release, releasePause, requestHalt, requestPause, run, screech, verboseOff, verboseOn |
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 |
Constructor Detail |
---|
public HttpCLIService()
Method Detail |
---|
public void serviceOn() throws SystemException
serviceOn
in class Service
SystemException
public void serviceOff() throws SystemException
serviceOff
in class Service
SystemException
public void executeThingsProcess() throws SystemException
executeThingsProcess
in class ThingsProcess
SystemException
public void constructThingsProcess() throws SystemException
Set up the listening port.
constructThingsProcess
in class ThingsProcess
SystemException
public void destructThingsProcess() throws SystemException
destructThingsProcess
in class ThingsProcess
SystemException
public java.lang.String getProcessName()
getProcessName
in interface ProcessInterface
getProcessName
in class ThingsProcess
public void resourceRevocation(WhoAmI resourceID) throws SystemException, java.lang.InterruptedException
resourceID
- the ID of the resource that is being revoked.
SystemException
java.lang.InterruptedException
WhoAmI
public void resourceRevoked(WhoAmI resourceID) throws SystemException, java.lang.InterruptedException
resourceID
- the ID of the resource that has been revoked.
SystemException
java.lang.InterruptedException
WhoAmI
public WhoAmI getListenerId()
WhoAmI
public static java.lang.String decodeUri(java.io.BufferedInputStream bis) throws java.io.IOException, java.net.URISyntaxException, java.lang.NumberFormatException
bis
- input stream
java.lang.Throwable
- If line is bad.
java.io.IOException
java.net.URISyntaxException
java.lang.NumberFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |