View Javadoc

1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.ksb.messaging.bam.service;
17  
18  import java.lang.reflect.Method;
19  import java.util.List;
20  
21  import javax.xml.namespace.QName;
22  
23  import org.kuali.rice.core.api.reflect.ObjectDefinition;
24  import org.kuali.rice.ksb.api.bus.ServiceConfiguration;
25  import org.kuali.rice.ksb.api.bus.ServiceDefinition;
26  import org.kuali.rice.ksb.messaging.bam.BAMTargetEntry;
27  
28  
29  /**
30   * Service for recording and accessing entries in the BAM.
31   *
32   * @author Kuali Rice Team (rice.collab@kuali.org)
33   */
34  public interface BAMService {
35  
36  	public List<BAMTargetEntry> getCallsForService(QName serviceName);
37  	public List<BAMTargetEntry> getCallsForRemotedClasses(ObjectDefinition objDef);
38  	public BAMTargetEntry recordClientInvocation(ServiceConfiguration serviceConfiguration, Object target, Method method, Object[] params);
39  	public BAMTargetEntry recordClientInvocationError(Throwable throwable, BAMTargetEntry bamTargetEntry);
40  	public BAMTargetEntry recordServerInvocation(Object target, ServiceDefinition serviceDefinition, Method method, Object[] params);
41  	public BAMTargetEntry recordServerInvocationError(Throwable throwable, BAMTargetEntry bamTargetEntry);
42  	public void clearBAMTables();
43  	public List<BAMTargetEntry> getCallsForService(QName serviceName, String methodName);
44  	public List<BAMTargetEntry> getCallsForRemotedClasses(ObjectDefinition objDef, String methodName);
45  }