Package com.illumon.iris.controller
Class PersistentQueryState
java.lang.Object
com.illumon.iris.controller.PersistentQueryState
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,StatusCallback,Serializable,Cloneable
public class PersistentQueryState extends Object implements Serializable, Cloneable, StatusCallback, com.fishlib.base.log.LogOutputAppendable
An Object describing the current state of a Persistent Query.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPersistentQueryState.Status -
Field Summary
Fields Modifier and Type Field Description static intNULL_PORT -
Constructor Summary
Constructors Constructor Description PersistentQueryState(long configurationSerial, long configurationVersion) -
Method Summary
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.util.progress.StatusCallback
finish, finish, getStepValue, remaining, remaining, subrange, update
-
Field Details
-
NULL_PORT
public static final int NULL_PORT- See Also:
- Constant Field Values
-
-
Constructor Details
-
PersistentQueryState
public PersistentQueryState(long configurationSerial, long configurationVersion)
-
-
Method Details
-
shallowCopy
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getConfigurationSerial
public long getConfigurationSerial() -
getConfigurationVersion
public long getConfigurationVersion()Get the configuration version of the currently running query. Note that this can be different from the version of the currentPersistentQueryConfiguration, given that a query can be changed without immediately restarting it. A difference in these values can be used to detect this situation.- Returns:
- The currently running query version.
-
getStatus
-
isRunningForRestart
public boolean isRunningForRestart() -
setStatus
-
getInitializationStartTime
-
setInitializationStartTime
-
getInitializationCompleteTime
-
setInitializationCompleteTime
-
getLastUpdateTime
-
setLastUpdateTime
-
getWorkerHost
-
setWorkerHost
-
getDispatcherHost
-
setDispatcherHost
-
getWorkerName
-
setWorkerName
-
getProcessInfoId
-
setProcessInfoId
-
getTypeSpecificState
-
setTypeSpecificState
-
getTableGroups
-
hasTableAcls
public boolean hasTableAcls() -
getTableGroups
-
setTableGroups
-
getScopeNamesAndTypes
-
setScopeNamesAndTypes
-
getWorkerPort
public int getWorkerPort() -
getEnvoyPrefix
-
setWorkerPort
public void setWorkerPort(int workerPort) -
getWebsocketPort
public int getWebsocketPort() -
setWebsocketPort
public void setWebsocketPort(int websocketPort) -
setEnvoyPrefix
-
getExceptionDetails
-
setExceptionDetails
-
getLastAuthenticatedUser
-
setLastAuthenticatedUser
-
getLastEffectiveUser
-
setLastEffectiveUser
-
setScriptLoaderState
-
getLoaderState
-
hasProgress
public boolean hasProgress() -
getProgressMessage
-
getProgressPercentage
public int getProgressPercentage() -
update
Description copied from interface:StatusCallbackUpdate the progress % and status message.- Specified by:
updatein interfaceStatusCallback- Parameters:
progress- percent complete (0-100)statusSupplier- optional message supplier
-
getValue
public int getValue()Description copied from interface:StatusCallbackget the current value of the progress object.- Specified by:
getValuein interfaceStatusCallback- Returns:
- the % complete of the topmost ProcessStatus - a number between 1 and 100
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput)- Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable
-
toString
-