Groovy Documentation
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

ActionExecution - Class in org.linkedin.glu.groovy.utils.concurrent
@author ypujante@linkedin.com
asCallable(null) - Method in GluGroovyConcurrentUtils
The purpose of this call is to convert a closure into a callable.
assertEqualsIgnoreType(def, null, null, null) - Method in GluGroovyTestUtils
This method is being used for recursing purposes
available() - Method in DestroyProcessInputStream
available() - Method in InputGeneratorStream

B


C

CallExecution - Class in org.linkedin.glu.groovy.utils.concurrent
@author ypujante@linkedin.com
cancel(boolean) - Method in FutureExecutionImpl
cancel(boolean) - Method in FutureTaskExecution
CannotRebuildOriginalThrowableException - Class in org.linkedin.glu.groovy.utils.json
@author yan@pongasoft.com
CannotRebuildOriginalThrowableException(null, null, null) - Constructor in CannotRebuildOriginalThrowableException
checkAndFail(def, null, null, null, null) - Method in GluGroovyTestUtils
close() - Method in DestroyProcessInputStream
close() - Method in InputGeneratorStream
ClosureTimerTask - Class in org.linkedin.groovy.util.clock
@author yan@pongasoft.com
ClosureTimerTask(null) - Constructor in ClosureTimerTask
compareTo(FutureExecutionImpl) - Method in FutureExecutionImpl
copyProperties(def, T) - Method in GluGroovyLangUtils
Copy the properties from source to target and copy only the properties that exist in target
createURLStreamHandler(null) - Method in ReinitializableSingletonURLStreamHandlerFactory

D

decryptStream(null, null) - Method in GluGroovyIOUtils
DEFAULT_ENTRY_STATE - Field in DefaultStateMachine
DEFAULT_SUBMITTER - Field in FutureTaskExecution
DefaultStateMachine - Class in org.linkedin.glu.groovy.util.state
This class encapsulates the global state machine.
destroy() - Method in DestroyProcessInputStream
DestroyedProcessException - Class in org.linkedin.glu.groovy.utils.io
@author yan@pongasoft.com
DestroyedProcessException(null) - Constructor in DestroyedProcessException
DestroyProcessInputStream - Class in org.linkedin.glu.groovy.utils.io
@author yan@pongasoft.com
DestroyProcessInputStream(null, null) - Constructor in DestroyProcessInputStream

E

encryptStream(null, null) - Method in GluGroovyIOUtils
exceptionToJSON(def, boolean) - Method in GluGroovyJsonUtils
Extracts the exception stack trace and all causes and returns it as a json string
execute() - Method in FutureTaskExecution
execute() - Method in Invocation
execute() - Method in TimerExecution
executeMethod(null, null, null) - Method in NoPluginsPluginService
executeMethod(null, null, null) - Method in PluginService
executeMethod(null, null, null) - Method in PluginServiceImpl
executePrePostMethods(null, null, null, null) - Method in NoPluginsPluginService
executePrePostMethods(null, null, null, null) - Method in PluginService
executePrePostMethods(null, null, null, null) - Method in PluginServiceImpl
extractFullStackTrace(def, T) - Method in GluGroovyJsonUtils
Extracts the exception stack trace and all causes.
extractStackTrace(def) - Method in GluGroovyJsonUtils
Returns the stack trace elements as a collection of maps: dc (class name), mn method name, fn field name and ln line number

F

findPlugin(null) - Method in PluginServiceImpl
@return the plugin given its class name
fromJSON(def) - Method in GluGroovyRestUtils
From a json representation (as built by {@link #toJSON(Throwable)) builds a rest exception
FutureExecution - Interface in org.linkedin.glu.groovy.utils.concurrent
@author ypujante@linkedin.com
FutureExecutionImpl - Class in org.linkedin.glu.groovy.utils.concurrent
@author ypujante@linkedin.com
FutureExecutionImpl() - Constructor in FutureExecutionImpl
FutureTaskExecution - Class in org.linkedin.glu.groovy.utils.concurrent
@author yan@pongasoft.com
FutureTaskExecution(null) - Constructor in FutureTaskExecution
execute the closure
FutureTaskExecutionThreadFactory - Class in org.linkedin.glu.groovy.utils.concurrent
@author yan@pongasoft.com

G

get(def) - Method in FutureExecution
Convenient call which allow a timeout of different types (long, String, Timespan...)
get(long, null) - Method in FutureTaskExecution
getCompletionTime() - Method in FutureExecution
when the execution completes
getDeserializationException() - Method in CannotRebuildOriginalThrowableException
getExceptionClassName() - Method in CannotRebuildOriginalThrowableException
getFutureExecutionTime() - Method in FutureExecution
when the execution should start (0 means start now)
getId() - Method in FutureExecution
Unique id of the execution
getId() - Method in FutureTaskExecution
getInvocable() - Method in Invocation
getInvocable() - Method in TimerExecution
getOnCompletionCallback() - Method in FutureTaskExecution
getOptionalBoolean(def, boolean) - Method in GluGroovyLangUtils
getOptionalLong(def, null, long) - Method in GluGroovyLangUtils
@return the long found in the config or the default value
getSize() - Method in InputGeneratorStream
getStartTime() - Method in FutureExecution
when the execution started
GluGroovyCollectionUtils - Class in org.linkedin.glu.groovy.utils.collections
@author yan@pongasoft.com
GluGroovyConcurrentUtils - Class in org.linkedin.glu.groovy.utils.concurrent
@author yan@pongasoft.com
GluGroovyIOUtils - Class in org.linkedin.glu.groovy.utils.io
@author yan@pongasoft.com
GluGroovyJsonUtils - Class in org.linkedin.glu.groovy.utils.json
@author yan@pongasoft.com
GluGroovyLangUtils - Class in org.linkedin.glu.groovy.utils
@author yan@pongasoft.com
GluGroovyRestUtils - Class in org.linkedin.glu.groovy.utils.rest
@author yan@pongasoft.com
GluGroovyTestUtils - Class in org.linkedin.glu.groovy.utils.test
@author yan@pongasoft.com

H


I

initializePlugin(null, null) - Method in NoPluginsPluginService
initializePlugin(null, null) - Method in PluginService
initializePlugin(null, null) - Method in PluginServiceImpl
InputGeneratorStream - Class in org.linkedin.glu.groovy.utils.io
@author yan@pongasoft.com
InputGeneratorStream(def) - Constructor in InputGeneratorStream
INSTANCE - Field in DefaultStateMachine
INSTANCE - Field in NoPluginsPluginService
Invocation - Class in org.linkedin.glu.groovy.utils.concurrent
@author ypujante@linkedin.com
isCancelled() - Method in FutureTaskExecution
isDone() - Method in FutureTaskExecution
isStarted() - Method in FutureTaskExecution

J


K


L

log - Field in DefaultStateMachine
log - Field in GluGroovyRestUtils
log - Field in NoPluginsPluginService
log - Field in PluginServiceImpl

M

mark(int) - Method in DestroyProcessInputStream
mark(int) - Method in InputGeneratorStream
markSupported() - Method in DestroyProcessInputStream
markSupported() - Method in InputGeneratorStream
MODULE - Field in DefaultStateMachine
MODULE - Field in GluGroovyRestUtils
MODULE - Field in NoPluginsPluginService
MODULE - Field in PluginServiceImpl

N

newThread(null) - Method in FutureTaskExecutionThreadFactory
noException(null) - Method in GluGroovyLangUtils
Call all the closures and make sure none of it throws an exception.
NoPluginsPluginService - Class in org.linkedin.glu.groovy.utils.plugins
@author yan@pongasoft.com

O

onlyOneException(null) - Method in GluGroovyLangUtils
Throw only 1 exception (at most) even if there are multiple.

P

paginate(null, int, int) - Method in GluGroovyCollectionUtils
Paginates a collection: return how many elements you want (which also represent the number of elements per "page" and an optional offset representing at which "page" to start
PluginService - Interface in org.linkedin.glu.groovy.utils.plugins
@author yan@pongasoft.com
PluginServiceImpl - Class in org.linkedin.glu.groovy.utils.plugins
@author yan@pongasoft.com

Q


R

read() - Method in DestroyProcessInputStream
read() - Method in InputGeneratorStream
rebuildException(def) - Method in GluGroovyJsonUtils
This method is the opposite of extractFullStackTrace(Throwable) and will attempt to "deserialize" the full stack trace into the original exception including all the chain of causes.
rebuildException(RestException) - Method in GluGroovyRestUtils
This method will try to rebuild the full stack trace based on the rest exception recursively.
rebuildStackTrace(def) - Method in GluGroovyJsonUtils
Opposite of extractStackTrace
registerHandler(null, def) - Method in ReinitializableSingletonURLStreamHandlerFactory
Register a handler for the protocol
reInit() - Method in ReinitializableSingletonURLStreamHandlerFactory
ReinitializableSingletonURLStreamHandlerFactory - Class in org.linkedin.glu.groovy.utils.net
@author yan@pongasoft.com
reset() - Method in DestroyProcessInputStream
reset() - Method in InputGeneratorStream
run() - Method in ClosureTimerTask
run() - Method in FutureTaskExecution
runAsync(Submitter) - Method in FutureTaskExecution
Runs asynchronously.
runSync() - Method in FutureTaskExecution
Runs synchronously.

S

setId(null) - Method in FutureTaskExecution
setOnCompletionCallback(null) - Method in FutureTaskExecution
This method ensures that the completion callback is called even if the command has already run and is completed!
skip(long) - Method in DestroyProcessInputStream
skip(long) - Method in InputGeneratorStream
subMap(null, null) - Method in GluGroovyCollectionUtils
The issue with map.subMap(['a', 'b']) is that it will add a 'b' key if not present in original map!

T

TimerExecution - Class in org.linkedin.glu.groovy.utils.concurrent
@author ypujante@linkedin.com
toJSON(null) - Method in GluGroovyRestUtils
'Serializes' the throwable into a json representation in order to be able to rebuild it later.
toString() - Method in FutureExecutionImpl
toString() - Method in Invocation
toString() - Method in TimerExecution

U


V


W

waitForStart(def) - Method in FutureTaskExecution
withStreamToDecrypt(null, null, null) - Method in GluGroovyIOUtils
withStreamToEncrypt(null, null, null) - Method in GluGroovyIOUtils

X

xorMap(null, null) - Method in GluGroovyCollectionUtils
Similar to subMap but return a map which contains only keys NOT specified in keys

Y


Z


_

_callable - Field in FutureTaskExecution
The callable assigned in the constructor (if any)
_future - Field in FutureTaskExecution
The actual future task on which all the calls will be delegated to implement the Future interface
_handlers - Field in ReinitializableSingletonURLStreamHandlerFactory
_onCompletionCallback - Field in FutureTaskExecution
Callback to be called once the future ends
_onCompletionCallbackCalled - Field in FutureTaskExecution
set when the completion callback has been called

Groovy Documentation