|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.7) E15033-09 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wli.config.resource.Diagnostics
public class Diagnostics
Container for a collection of Diagnostic
entries relevant to a particular resource.
Constructor Summary | |
---|---|
Diagnostics(Ref ref) Constructor for creating a Diagnostics object with an empty collection of Diagnostic objects. |
|
Diagnostics(Ref ref, java.util.Collection<Diagnostic> diagnostics) Constructor for creating a Diagnostics object with the given initial set of Diagnostic object. |
Method Summary | |
---|---|
void |
add(Diagnostic d) Add a diagnostic. |
void |
addAll(java.util.Collection<Diagnostic> dlist) add a list of diagnostic objects. |
java.util.Set<Diagnostic> |
getDiagnostics() Returns an immutable view of all diagnostic objects contained |
Diagnostic |
getFirstError() returns the first diagnostic entry whose severity is either Diagnostic.Severity.CannotCommit or Diagnostic.Severity.CannotCreate . |
Ref |
getRef() returns the reference for the resource which this diagnostics relate to |
Diagnostic.Severity |
getSeverity() Returns the aggregated severity of all the diagnostic objects contained. |
java.lang.String |
toString() Returns a string representation of this diagnostics object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Diagnostics(Ref ref)
Diagnostic
objects.
ref
- the reference to the resource which this collection of diagnostics relate to. Cannot be null. This method does not check the existence of the given resource.public Diagnostics(Ref ref, java.util.Collection<Diagnostic> diagnostics)
Diagnostic
object. More diagnostic objects can be added via the add(com.bea.wli.config.resource.Diagnostic)
method.
ref
- the reference to the resource which this collection of diagnostics relate to. Cannot be null. This method does not check the existence of the given resource.diagnostics
- initial collection of diagnostics. Cannot be null. A copy of this collection is used. Therefore unmodifiable collections can be passed.Method Detail |
---|
public Diagnostic.Severity getSeverity()
Diagnostic.Severity.combine(com.bea.wli.config.resource.Diagnostic.Severity, com.bea.wli.config.resource.Diagnostic.Severity)
public void add(Diagnostic d)
d
-public void addAll(java.util.Collection<Diagnostic> dlist)
dlist
-public java.util.Set<Diagnostic> getDiagnostics()
public Diagnostic getFirstError()
Diagnostic.Severity.CannotCommit
or Diagnostic.Severity.CannotCreate
. If there is no such entry, returns null.public Ref getRef()
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.7) E15033-09 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |