public abstract class Limit extends Object implements Serializable, Comparable<Limit>
A Limit represents a configuration element used to restrict the way in which a Job
(or
rather its Nodes and Workers) is allowed to run. Limits can be applied to Jobs in order to
constrain their resource usage and apply restrictions to input, output and intermediate data.
Limits can be applied to Job
s and Node
s.
The precedence of Limits depends on their Limit.WhenExceedAction
:
Limits are generally used to ensure the reliable operation of a jadice server installation. However, they are particularly useful when processing data from untrusted, heterogeneous sources. This applies to cases of malicious data where limits help to fend-off denial-of-service attacks, but also to honest, but still corrupt data.
Caveat: Limits are only useful and effective for areas over which jadice server has full control. As soon as external or native code is involved in a processing pipeline, the protection becomes rather limited if not ineffective. Therefore proper security precautions are required for any external code used by jadice server.
Modifier and Type | Class and Description |
---|---|
static class |
Limit.WhenExceedAction
Possible actions to take when the limit has been exceeded.
|
Constructor and Description |
---|
Limit() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
doesExceed(long count) |
abstract boolean |
equals(Object obj) |
Limit.WhenExceedAction |
getExceedAction() |
abstract int |
hashCode() |
void |
setExceedAction(Limit.WhenExceedAction exceedAction)
Set the
action to take when the limit has been exceeded. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compareTo
public Limit.WhenExceedAction getExceedAction()
Limit.WhenExceedAction.ABORT
)public void setExceedAction(Limit.WhenExceedAction exceedAction)
action
to take when the limit has been exceeded.exceedAction
- The action to take when the limit was exceededpublic abstract boolean doesExceed(long count)
Copyright © 2017 levigo holding gmbh. All rights reserved.