com.ibm.itim.apps.provisioning
Class ServiceTestResult

java.lang.Object
  extended by com.ibm.itim.apps.provisioning.ServiceTestResult
All Implemented Interfaces:
java.io.Serializable

public class ServiceTestResult
extends java.lang.Object
implements java.io.Serializable

Holds the result of a service test. If the test failed, the root cause of the failure will be available.

See Also:
Serialized Form

Field Summary
static int FAILURE
          Constant indicating an unsuccessful test.
static int INSECURE
          Constant indicating an insecure connection.
static int SUCCESS
          Constant indicating a successful test.
 
Constructor Summary
ServiceTestResult(int status)
          Constructs with a test status.
ServiceTestResult(java.lang.Throwable causeOfFailure)
          Assumes the test was unsuccessful and constructs with just the cause of the failure.
 
Method Summary
 java.lang.Throwable getCauseOfFailure()
          Returns the cause of the test failure (if applicable).
 AttributeValues getReturnAttributes()
           
 int getStatus()
          Returns the status of the test.
 void setReturnAttributes(AttributeValues rtnAttributes)
           
 void setStatus(int status)
          Sets the status of the test
 boolean testSuccess()
          Returns the status of the test.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS
Constant indicating a successful test.

See Also:
Constant Field Values

FAILURE

public static final int FAILURE
Constant indicating an unsuccessful test.

See Also:
Constant Field Values

INSECURE

public static final int INSECURE
Constant indicating an insecure connection.

See Also:
Constant Field Values
Constructor Detail

ServiceTestResult

public ServiceTestResult(int status)
Constructs with a test status.

Parameters:
status - Status of test. Values may be SUCCESS or FAILURE.

ServiceTestResult

public ServiceTestResult(java.lang.Throwable causeOfFailure)
Assumes the test was unsuccessful and constructs with just the cause of the failure.

Parameters:
causeOfFailure - object containing the cause of failure.
Method Detail

setStatus

public void setStatus(int status)
Sets the status of the test

Parameters:
status - Status of the test.

getStatus

public int getStatus()
Returns the status of the test.

Returns:
Status of the test. Values may be SUCCESS or FAILURE.

getCauseOfFailure

public java.lang.Throwable getCauseOfFailure()
Returns the cause of the test failure (if applicable).

Returns:
Throwable object containing the cause of failure. Note, null will be returned if the test succeeded or there was no known root cause.

testSuccess

public boolean testSuccess()
Returns the status of the test.

Returns:
boolean value represent service connection.

setReturnAttributes

public void setReturnAttributes(AttributeValues rtnAttributes)

getReturnAttributes

public AttributeValues getReturnAttributes()


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.