@Test public void testOutgoingPolicyError() { ThrottleManager manager = new ThrottleManager(); ThrottleSettings ts = new ThrottleSettings(); ts.setOutboundPolicy(Policy.ERROR); try { manager.setThrottleSettings(ts); } catch (ConfigurationException ce) { } catch (Exception e) { Assert.fail(UNEXPECTED_EXCEPTION_STRING + e); } }
public void setOutboundPolicy(Policy outPolicy) { this.outPolicy = outPolicy; }
ThrottleSettings { public void setOutboundPolicy(Policy outPolicy) { this.outPolicy = outPolicy; } }
ThrottleSettings { public void setOutboundPolicy(Policy outPolicy) { this.outPolicy = outPolicy; } ThrottleSettings(); }
ThrottleSettings { public void setOutboundPolicy(Policy outPolicy) { this.outPolicy = outPolicy; } ThrottleSettings(); static Policy parsePolicy(String policy); boolean isClientThrottleEnabled(); boolean isInboundClientThrottleEnabled(); boolean isOutboundClientThrottleEnabled(); boolean isDestinationThrottleEnabled(); boolean isInboundDestinationThrottleEnabled(); boolean isOutboundDestinationThrottleEnabled(); Policy getInboundPolicy(); void setInboundPolicy(Policy inPolicy); Policy getOutboundPolicy(); void setOutboundPolicy(Policy outPolicy); String getDestinationName(); void setDestinationName(String destinationName); int getIncomingClientFrequency(); void setIncomingClientFrequency(int n); int getIncomingDestinationFrequency(); void setIncomingDestinationFrequency(int n); int getOutgoingClientFrequency(); void setOutgoingClientFrequency(int n); int getOutgoingDestinationFrequency(); void setOutgoingDestinationFrequency(int n); }
ThrottleSettings { public void setOutboundPolicy(Policy outPolicy) { this.outPolicy = outPolicy; } ThrottleSettings(); static Policy parsePolicy(String policy); boolean isClientThrottleEnabled(); boolean isInboundClientThrottleEnabled(); boolean isOutboundClientThrottleEnabled(); boolean isDestinationThrottleEnabled(); boolean isInboundDestinationThrottleEnabled(); boolean isOutboundDestinationThrottleEnabled(); Policy getInboundPolicy(); void setInboundPolicy(Policy inPolicy); Policy getOutboundPolicy(); void setOutboundPolicy(Policy outPolicy); String getDestinationName(); void setDestinationName(String destinationName); int getIncomingClientFrequency(); void setIncomingClientFrequency(int n); int getIncomingDestinationFrequency(); void setIncomingDestinationFrequency(int n); int getOutgoingClientFrequency(); void setOutgoingClientFrequency(int n); int getOutgoingDestinationFrequency(); void setOutgoingDestinationFrequency(int n); static final String ELEMENT_INBOUND; static final String ELEMENT_OUTBOUND; static final String ELEMENT_POLICY; static final String ELEMENT_DEST_FREQ; static final String ELEMENT_CLIENT_FREQ; }