/** * Sets the timeout in milliseconds for polling operations. * * @param timeout the timeout in milliseconds for polling operations */ @Property(required = false) public void setPollTimeout(long timeout) { this.pollTimeout = timeout * 1000; // convert milliseconds to microseconds }
/** * Optionally configures a timeout setting for openning a socket connection. The default wait is 2 minutes. * * @param connectTimeout the timeout in milliseconds */ @Property(required = false) public void setConnectTimeout(int connectTimeout) { this.connectTimeout = connectTimeout; }
/** * Optionally configures a timeout setting for socket connections from the client to a server. The default is 30 minutes. * * @param socketTimeout the timeout in milliseconds */ @Property(required = false) public void setSocketTimeout(int socketTimeout) { this.socketTimeout = socketTimeout; }
/** * Constructor. * * @param wireGenerator the physical wire generator * @param order the order for this command generator */ public ReferenceCommandGenerator(@Reference WireGenerator wireGenerator, @Property(name = "order") int order) { this.wireGenerator = wireGenerator; this.order = order; }
@Property(required = false) @Source("$systemConfig//f3:jms/@transaction.timeout") public void setDefaultTransactionTimeout(int defaultTransactionTimeout) { this.defaultTransactionTimeout = defaultTransactionTimeout; defaultReceiveTimeout = (defaultTransactionTimeout / 2) * 1000; }
/** * Sets the maximum number of work items that can be queued before the executor rejects additional work. * * @param size the maximum number of work items */ @Property(required = false) @Source("$systemConfig//f3:thread.pool/@queueSize") public void setQueueSize(int size) { this.queueSize = size; }
@Property(required = false) @Source("$systemConfig/f3:security/f3:cert.password") public void setCertPassword(String certPassword) { this.certPassword = certPassword; }
@Property(required = false) public void setRoles(String rolesAttribute) { String[] rolesString = rolesAttribute.split(","); for (String s : rolesString) { roles.add(new Role(s.trim())); } }
@Property(required = false) public void setMode(String mode) { if (ASYNCHRONOUS_MODE.equalsIgnoreCase(mode)) { this.enabled = true; } else if (SYNCHRONOUS_MODE.equalsIgnoreCase(mode)) { this.enabled = false; } else { this.enabled = false; monitor.unknownMode(mode); } }
@Property(required = false) @Source("$systemConfig/f3:security/f3:truststore.password.property") public void setTrustStorePasswordProperty(String trustStorePasswordProperty) { this.trustStorePasswordProperty = trustStorePasswordProperty; }
@Property(required = false) @Source("$systemConfig/f3:security/f3:keystore.password") public void setKeyStorePassword(String keyStorePassword) { this.keyStorePassword = keyStorePassword; }
@Property(required = false) @Source("$systemConfig/f3:security/f3:keystore.type") public void setKeyStoreType(String keyStoreType) { this.keyStoreType = keyStoreType; }
@Property(required = false) @Source("$systemConfig/f3:security/f3:truststore.type") public void setTrustStoreType(String trustStoreType) { this.trustStoreType = trustStoreType; }
@Property(required = false) public void setLevel(String cacheLevel) { if ("connection".equalsIgnoreCase(cacheLevel)) { level = CacheLevel.CONNECTION; } else if ("session".equalsIgnoreCase(cacheLevel)) { level = CacheLevel.ADMINISTERED_OBJECTS; } else if ("none".equalsIgnoreCase(cacheLevel)) { level = CacheLevel.NONE; } else { monitor.error("Invalid JMS provider cache level value: " + cacheLevel + ". Ignoring value."); } }
@Property(required = false) public void setRange(String range) { String[] tokens = range.split("-"); if (tokens.length == 2) { // port range specified min = parsePortNumber(tokens[0]); max = parsePortNumber(tokens[1]); } else { throw new IllegalArgumentException("Invalid port range specified in the runtime system configuration"); } }
@Property(required = false) @Source("$systemConfig//f3:runtime/@monitor.level") public void setDefaultLevel(String defaultLevel) { try { this.defaultLevel = MonitorLevel.valueOf(defaultLevel.toUpperCase()); } catch (IllegalArgumentException e) { throw new IllegalArgumentException("Invalid monitor level value: " + defaultLevel); } }
@ManagementOperation(description = "Thread keep alive time in milliseconds") @Property(required = false) @Source("$systemConfig//f3:thread.pool/@keepAliveTime") public void setKeepAliveTime(long keepAliveTime) { if (keepAliveTime < 0) { throw new IllegalArgumentException("Keep alive time must be greater than or equal to 0"); } this.keepAliveTime = keepAliveTime; }
@ManagementOperation(description = "Thread keep alive time in milliseconds") @Property(required = false) @Source("$systemConfig//f3:thread.pool/@keepAliveTime") public void setKeepAliveTime(long keepAliveTime) { if (keepAliveTime < 0) { throw new IllegalArgumentException("Keep alive time must be greater than or equal to 0"); } this.keepAliveTime = keepAliveTime; }
public ProducerCommandGenerator(@Reference ConnectionGenerator connectionGenerator, @Reference ChannelCommandGenerator channelGenerator, @Property(name = "order") int order) { this.connectionGenerator = connectionGenerator; this.channelGenerator = channelGenerator; this.order = order; }
@Property(required = false) @Source("$systemConfig/f3:runtime/@port.range") public void setRange(String range) { String[] tokens = range.split("-"); if (tokens.length == 2) { // port range specified min = parsePortNumber(tokens[0]); max = parsePortNumber(tokens[1]); } else { throw new IllegalArgumentException("Invalid port range specified in the runtime system configuration"); } }