Search in sources :

Example 6 with ServiceUnavailableException

use of org.forgerock.json.resource.ServiceUnavailableException in project OpenAM by OpenRock.

the class AuditServiceProviderImpl method createDefaultAuditService.

private DefaultAuditServiceProxy createDefaultAuditService() {
    AMAuditServiceConfiguration configuration = new AMAuditServiceConfiguration(false);
    configuration.setAvailableAuditEventHandlers(Collections.<String>emptyList());
    AuditServiceBuilder builder = AuditServiceBuilder.newAuditService().withEventTopicsMetaData(eventTopicsMetaData).withConfiguration(configuration);
    DefaultAuditServiceProxy auditServiceProxy = new DefaultAuditServiceProxy(builder.build(), configuration);
    try {
        auditServiceProxy.startup();
    } catch (ServiceUnavailableException e) {
        debug.error("Default Audit Service configuration failed.", e);
    }
    return auditServiceProxy;
}
Also used : AuditServiceBuilder(org.forgerock.audit.AuditServiceBuilder) AMAuditServiceConfiguration(org.forgerock.openam.audit.configuration.AMAuditServiceConfiguration) ServiceUnavailableException(org.forgerock.json.resource.ServiceUnavailableException)

Aggregations

ServiceUnavailableException (org.forgerock.json.resource.ServiceUnavailableException)6 AuditServiceBuilder (org.forgerock.audit.AuditServiceBuilder)3 AMAuditServiceConfiguration (org.forgerock.openam.audit.configuration.AMAuditServiceConfiguration)3 SSOException (com.iplanet.sso.SSOException)2 AMIdentity (com.sun.identity.idm.AMIdentity)2 IdRepoException (com.sun.identity.idm.IdRepoException)2 JsonValue (org.forgerock.json.JsonValue)2 NotFoundException (org.forgerock.json.resource.NotFoundException)2 PermanentException (org.forgerock.json.resource.PermanentException)2 ResourceException (org.forgerock.json.resource.ResourceException)2 UnauthorizedClientException (org.forgerock.oauth2.core.exceptions.UnauthorizedClientException)2 CoreTokenException (org.forgerock.openam.cts.exceptions.CoreTokenException)2 SMSException (com.sun.identity.sm.SMSException)1 ArrayList (java.util.ArrayList)1 BadRequestException (org.forgerock.json.resource.BadRequestException)1 Connection (org.forgerock.json.resource.Connection)1 CreateRequest (org.forgerock.json.resource.CreateRequest)1 InternalServerErrorException (org.forgerock.json.resource.InternalServerErrorException)1 Requests.newCreateRequest (org.forgerock.json.resource.Requests.newCreateRequest)1 Resources.newInternalConnection (org.forgerock.json.resource.Resources.newInternalConnection)1