01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.servicemix.jbi.framework;
18:
19: import javax.jbi.management.ComponentLifeCycleMBean;
20:
21: /**
22: * Defines basic operations on the Compomnent
23: */
24: public interface ComponentMBean extends ComponentLifeCycleMBean {
25:
26: String TYPE_SERVICE_ENGINE = "service-engine";
27: String TYPE_BINDING_COMPONENT = "binding-component";
28: String TYPE_POJO = "pojo";
29:
30: /**
31: * Get the name of this component
32: * @return the name of this component
33: */
34: String getName();
35:
36: /**
37: * Is MessageExchange sender throttling enabled ?
38: * @return true if throttling enabled
39: */
40: boolean isExchangeThrottling();
41:
42: /**
43: * Set exchange throttling
44: * @param value
45: *
46: */
47: void setExchangeThrottling(boolean value);
48:
49: /**
50: * Get the throttling timeout
51: * @return throttling timeout (ms)
52: */
53: long getThrottlingTimeout();
54:
55: /**
56: * Set the throttling timout
57: * @param value (ms)
58: */
59: void setThrottlingTimeout(long value);
60:
61: /**
62: * Get the interval for throttling -
63: * number of Exchanges set before the throttling timeout is applied
64: * @return interval for throttling
65: */
66: int getThrottlingInterval();
67:
68: /**
69: * Set the throttling interval
70: * number of Exchanges set before the throttling timeout is applied
71: * @param value
72: */
73: void setThrottlingInterval(int value);
74:
75: /**
76: * @return the component type (service-engine, binding-component)
77: */
78: String getComponentType();
79: }
|