Class GrouperGroovyRuntime
java.lang.Object
edu.internet2.middleware.grouper.app.gsh.GrouperGroovyRuntime
runtime during GSH script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
name value pairs to logint
name value pairs to logint
void
get out of GSH with return codevoid
gshReturn
(int returnCode) get out of GSH with return codeint
void
print something to outputvoid
print something to output with line at endstatic void
void
static GrouperGroovyRuntime
retrieveInputValueBoolean
(String inputName) retrieveInputValueInteger
(String inputName) retrieveInputValueObject
(String inputName) retrieveInputValueString
(String inputName) void
setAverageExecutionTimeMillis
(int averageExecutionTimeMillis) void
setGrouperSession
(GrouperSession grouperSession) void
setInputNameToValue
(Map<String, Object> inputNameToValue) void
setPercentDone
(int percentDone) void
setResultCode
(int resultCode)
-
Constructor Details
-
GrouperGroovyRuntime
public GrouperGroovyRuntime()
-
-
Method Details
-
getResultCode
public int getResultCode() -
setResultCode
public void setResultCode(int resultCode) -
setInputNameToValue
-
debugMap
name value pairs to log -
getDebugMap
name value pairs to log- Returns:
-
getOutString
-
print
print something to output- Parameters:
line
-
-
println
print something to output with line at end- Parameters:
line
-
-
getGrouperSession
-
resetStartMillis1970
public void resetStartMillis1970() -
getAverageExecutionTimeMillis
public int getAverageExecutionTimeMillis() -
setAverageExecutionTimeMillis
public void setAverageExecutionTimeMillis(int averageExecutionTimeMillis) -
percentDone
public int percentDone()- Parameters:
millisElapsed
-- Returns:
- guess of percent done, dont go over 99
-
setPercentDone
public void setPercentDone(int percentDone) -
assignThreadLocalGrouperGroovyRuntime
public void assignThreadLocalGrouperGroovyRuntime() -
removeThreadLocalGrouperGroovyRuntime
public static void removeThreadLocalGrouperGroovyRuntime() -
retrieveGrouperGroovyRuntime
-
retrieveInputValueBoolean
- Parameters:
inputName
-- Returns:
- the boolean value of the integer
-
retrieveInputValueObject
- Parameters:
inputName
-- Returns:
- the value of the bind variable
-
retrieveInputValueInteger
- Parameters:
inputName
-- Returns:
- the integer value of the integer
-
retrieveInputValueString
- Parameters:
inputName
-- Returns:
- the string value of the integer
-
setGrouperSession
-
gshReturn
public void gshReturn()get out of GSH with return code- Parameters:
returnCode
-
-
gshReturn
public void gshReturn(int returnCode) get out of GSH with return code- Parameters:
returnCode
-
-