|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouper.util.GrouperCallable<T>
T - public abstract class GrouperCallable<T>
| Constructor Summary | |
|---|---|
GrouperCallable(java.lang.String theLogLabel)
construct with log label, use the static session if it exists |
|
GrouperCallable(java.lang.String theLogLabel,
GrouperSession theGrouperSession)
|
|
| Method Summary | |
|---|---|
T |
call()
|
abstract T |
callLogic()
Computes a result |
T |
callLogicWithSessionIfExists()
Computes a result |
java.lang.String |
getLogLabel()
describes the callable |
static void |
throwRuntimeException(java.lang.Throwable throwable)
convert exception |
static void |
tryCallablesWithProblems(java.util.Collection<GrouperCallable> callablesWithProblems)
note, call this in your grouper session, this runs in current thread |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrouperCallable(java.lang.String theLogLabel,
GrouperSession theGrouperSession)
theGrouperSession - theLogLabel - public GrouperCallable(java.lang.String theLogLabel)
theLogLabel - | Method Detail |
|---|
public java.lang.String getLogLabel()
public static void tryCallablesWithProblems(java.util.Collection<GrouperCallable> callablesWithProblems)
callablesWithProblems - public static void throwRuntimeException(java.lang.Throwable throwable)
throwable -
public final T call()
throws java.lang.Exception
call in interface java.util.concurrent.Callable<T>java.lang.ExceptionCallable.call()public final T callLogicWithSessionIfExists()
public abstract T callLogic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||