001/**
002 * Copyright 2005-2017 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.ksb.messaging.bam.service;
017
018import java.lang.reflect.Method;
019import java.util.List;
020
021import javax.xml.namespace.QName;
022
023import org.kuali.rice.core.api.reflect.ObjectDefinition;
024import org.kuali.rice.ksb.api.bus.ServiceConfiguration;
025import org.kuali.rice.ksb.api.bus.ServiceDefinition;
026import org.kuali.rice.ksb.messaging.bam.BAMTargetEntry;
027
028
029/**
030 * Service for recording and accessing entries in the BAM.
031 *
032 * @author Kuali Rice Team (rice.collab@kuali.org)
033 */
034public interface BAMService {
035
036        public List<BAMTargetEntry> getCallsForService(QName serviceName);
037        public List<BAMTargetEntry> getCallsForRemotedClasses(ObjectDefinition objDef);
038        public BAMTargetEntry recordClientInvocation(ServiceConfiguration serviceConfiguration, Object target, Method method, Object[] params);
039        public BAMTargetEntry recordClientInvocationError(Throwable throwable, BAMTargetEntry bamTargetEntry);
040        public BAMTargetEntry recordServerInvocation(Object target, ServiceDefinition serviceDefinition, Method method, Object[] params);
041        public BAMTargetEntry recordServerInvocationError(Throwable throwable, BAMTargetEntry bamTargetEntry);
042        public void clearBAMTables();
043        public List<BAMTargetEntry> getCallsForService(QName serviceName, String methodName);
044        public List<BAMTargetEntry> getCallsForRemotedClasses(ObjectDefinition objDef, String methodName);
045}