|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.boot.support.CommandLineRunnerSupport
public abstract class CommandLineRunnerSupport
Base support class for CommandLineRunner
implementations.
Field Summary |
---|
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
CommandLineRunnerSupport()
|
Method Summary | |
---|---|
protected void |
countDownLatch()
Count down current latch by one. |
void |
exit(int status)
Exit method wrapping handling through SystemExiter . |
void |
exit(java.lang.String status)
Exit method wrapping handling through SystemExiter . |
ExitCodeMapper |
getExitCodeMapper()
Gets the exit code mapper. |
int |
getOrder()
|
boolean |
isWaitLatch()
Checks if is wait latch. |
void |
setExitCodeMapper(ExitCodeMapper exitCodeMapper)
Sets the exit code mapper. |
void |
setOrder(int order)
Sets the order used for Ordered . |
void |
setWaitLatch(boolean waitLatch)
Sets the wait latch. |
protected void |
waitLatch()
Simply delegates to CountDownLatch.await() . |
protected void |
waitLatch(long timeout,
java.util.concurrent.TimeUnit unit)
Simply delegates to CountDownLatch.await(long, TimeUnit) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLineRunnerSupport()
Method Detail |
---|
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
Ordered
. The order used in this
class is Ordered.HIGHEST_PRECEDENCE
.
order
- the new orderpublic void exit(int status)
SystemExiter
.
status
- the exit codepublic void exit(java.lang.String status)
SystemExiter
. As exist status
for this method is given as String
, status value is translated
via ExitCodeMapper
.
status
- the exit codepublic void setWaitLatch(boolean waitLatch)
waitLatch
- the new wait latchpublic boolean isWaitLatch()
public void setExitCodeMapper(ExitCodeMapper exitCodeMapper)
exitCodeMapper
- the new exit code mapperpublic ExitCodeMapper getExitCodeMapper()
protected void countDownLatch()
protected void waitLatch()
CountDownLatch.await()
.
protected void waitLatch(long timeout, java.util.concurrent.TimeUnit unit)
CountDownLatch.await(long, TimeUnit)
.
timeout
- the timeoutunit
- the unit
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |