|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface through which to report the result of a job.
Field Summary | |
static int |
ABORTED
Value for getLevel() and setLevel(int) methods.
|
static int |
ERROR
Value for getLevel() and setLevel(int) methods.
|
static int |
SUCCESS
Value for getLevel() and setLevel(int) methods.
|
static int |
WARNING
Value for getLevel() and setLevel(int) methods.
|
Method Summary | |
int |
getCode()
Get any error code associated with this result. |
int |
getLevel()
Get the level currently associated with this result. |
String |
getMessage()
Return the message associated with this result, if any. |
DirectoryObject |
getObject()
Get the directory object associated with this result, if any. |
void |
setCode(int code)
Set an error code for this result. |
void |
setLevel(int level)
Set the level for this result. |
void |
setMessage(String message)
Set the message associated with this result. |
void |
setObject(DirectoryObject object)
Set the directory object associated with this result. |
Field Detail |
public static final int SUCCESS
getLevel()
and setLevel(int)
methods.
Indicates all processing completed successfully.
public static final int WARNING
getLevel()
and setLevel(int)
methods.
Indicates all processing completed but with non-critical problems.
public static final int ERROR
getLevel()
and setLevel(int)
methods.
Indicates processing did not complete, or completed but with critical problems.
public static final int ABORTED
getLevel()
and setLevel(int)
methods.
Indicates processing did not complete.
Method Detail |
public int getLevel()
SUCCESS
, WARNING
, ERROR
, ABORTED
public void setLevel(int level) throws IllegalArgumentException
level
- SUCCESS
, WARNING
, ERROR
, ABORTED
IllegalArgumentException
- thrown if level
is not one of the listed values.public int getCode()
0
) indicates
no error code is associated with the result.
0
public void setCode(int code)
code
- error code (zero means no error)public String getMessage()
null
.public void setMessage(String message)
message
- The message String
. May be null
.public DirectoryObject getObject()
DirectoryObject
instance associated with this result. May be null
.public void setObject(DirectoryObject object)
object
- DirectoryObject
instance. May be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |