org.oasisopen.sca.annotation.Property.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中org.oasisopen.sca.annotation.Property.<init>()方法的一些代码示例,展示了Property.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.<init>()方法的具体详情如下:
包路径:org.oasisopen.sca.annotation.Property
类名称:Property
方法名:<init>

Property.<init>介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-zeromq

/**
 * 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
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-ftp

/**
 * 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;
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-ftp

/**
 * 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;
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric

/**
 * 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;
}

代码示例来源:origin: com.carecon.fabric3/fabric3-binding-jms

@Property(required = false)
@Source("$systemConfig//f3:jms/@transaction.timeout")
public void setDefaultTransactionTimeout(int defaultTransactionTimeout) {
  this.defaultTransactionTimeout = defaultTransactionTimeout;
  defaultReceiveTimeout = (defaultTransactionTimeout / 2) * 1000;
}

代码示例来源:origin: com.carecon.fabric3/fabric3-thread-pool

/**
 * 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;
}

代码示例来源:origin: com.carecon.fabric3/fabric3-fabric

@Property(required = false)
@Source("$systemConfig/f3:security/f3:cert.password")
public void setCertPassword(String certPassword) {
  this.certPassword = certPassword;
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-management-jmx-agent

@Property(required = false)
public void setRoles(String rolesAttribute) {
  String[] rolesString = rolesAttribute.split(",");
  for (String s : rolesString) {
    roles.add(new Role(s.trim()));
  }
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-monitor-impl

@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);
  }
}

代码示例来源:origin: org.fabric3/fabric3-fabric

@Property(required = false)
@Source("$systemConfig/f3:security/f3:truststore.password.property")
public void setTrustStorePasswordProperty(String trustStorePasswordProperty) {
  this.trustStorePasswordProperty = trustStorePasswordProperty;
}

代码示例来源:origin: org.fabric3/fabric3-fabric

@Property(required = false)
@Source("$systemConfig/f3:security/f3:keystore.password")
public void setKeyStorePassword(String keyStorePassword) {
  this.keyStorePassword = keyStorePassword;
}

代码示例来源:origin: org.fabric3/fabric3-fabric

@Property(required = false)
@Source("$systemConfig/f3:security/f3:keystore.type")
public void setKeyStoreType(String keyStoreType) {
  this.keyStoreType = keyStoreType;
}

代码示例来源:origin: org.fabric3/fabric3-fabric

@Property(required = false)
@Source("$systemConfig/f3:security/f3:truststore.type")
public void setTrustStoreType(String trustStoreType) {
  this.trustStoreType = trustStoreType;
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-activemq

@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.");
  }
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric

@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");
  }
}

代码示例来源:origin: com.carecon.fabric3/fabric3-monitor

@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);
  }
}

代码示例来源:origin: org.fabric3/fabric3-thread-pool

@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;
}

代码示例来源:origin: com.carecon.fabric3/fabric3-thread-pool

@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;
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric

public ProducerCommandGenerator(@Reference ConnectionGenerator connectionGenerator,
                @Reference ChannelCommandGenerator channelGenerator,
                @Property(name = "order") int order) {
  this.connectionGenerator = connectionGenerator;
  this.channelGenerator = channelGenerator;
  this.order = order;
}

代码示例来源:origin: org.fabric3/fabric3-fabric

@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");
  }
}

相关文章

微信公众号

最新文章

更多