public abstract class AbstractPushController extends RegistrableThread implements PushController
PushController.PushController| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_DELAY |
static java.lang.String |
PARAM_UPDATE_INTERVAL |
protected java.util.Map<java.lang.String,java.lang.Object> |
params |
| Constructor and Description |
|---|
AbstractPushController() |
AbstractPushController(PushComponent pushComp) |
AbstractPushController(PushComponent pushComp,
int updateInterval) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEvent(CockpitEvent cockpitEvent) |
protected abstract void |
after() |
protected abstract void |
before() |
PushComponent |
getComponent()
Returns this push controller's
PushComponent. |
protected Desktop |
getDesktop() |
java.util.Map<java.lang.String,java.lang.Object> |
getParameters() |
protected UISession |
getSession() |
int |
getUpdateInterval()
Returns the update interval in milliseconds for this push controller.
|
protected WebApplicationContext |
getWebApplicationContext() |
protected void |
internalRun() |
protected boolean |
isDone() |
protected void |
loadParameters() |
void |
setComponent(PushComponent component)
Sets the
PushComponent to be used by this push controller to component. |
void |
setDone()
Tells this push controller to stop processing server push events.
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.Object> params) |
void |
setUpdateInterval(int milliseconds)
Sets the update interval in milliseconds for this push controller.
|
void |
startController()
Starts this push controller.
|
java.lang.String |
toString() |
registerThread, run, unregisterThread, withInitialInfoactiveCount, checkAccess, clone, 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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisUpdateNeeded, updateprotected static final int DEFAULT_DELAY
public static final java.lang.String PARAM_UPDATE_INTERVAL
protected final java.util.Map<java.lang.String,java.lang.Object> params
public AbstractPushController()
public AbstractPushController(PushComponent pushComp)
public AbstractPushController(PushComponent pushComp, int updateInterval)
public void setUpdateInterval(int milliseconds)
PushControllersetUpdateInterval in interface PushControllermilliseconds - the delay between updates (or update requests) in millisecondspublic int getUpdateInterval()
PushControllergetUpdateInterval in interface PushControllerpublic void setComponent(PushComponent component)
PushControllerPushComponent to be used by this push controller to component.setComponent in interface PushControllercomponent - the push component used by this push controllerPushComponentpublic PushComponent getComponent()
PushControllerPushComponent.getComponent in interface PushControllerprotected Desktop getDesktop()
public void setDone()
PushControllerPushController.getUpdateInterval()).setDone in interface PushControllerPushController.startController()protected boolean isDone()
protected void internalRun()
internalRun in class RegistrableThreadpublic java.lang.String toString()
toString in class java.lang.Threadprotected void addEvent(CockpitEvent cockpitEvent)
public void startController()
PushControllerstartController in interface PushControllerPushController.setDone()protected UISession getSession()
protected WebApplicationContext getWebApplicationContext()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected abstract void before()
protected abstract void after()
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> params)
setParameters in interface PushControllerpublic java.util.Map<java.lang.String,java.lang.Object> getParameters()
getParameters in interface PushControllerprotected void loadParameters()
Copyright © 2018 SAP SE. All Rights Reserved.