final ActorRef worker = actorSystem.actorOf(props2, "worker"); worker.tell(1, server); worker.tell("server", server); server.tell("worker", worker); // worker.tell("close", ActorRef.noSender()); // 中断worker // worker.tell(PoisonPill.getInstance(), ActorRef.noSender()); ActorSelection acto...
throw new IllegalArgumentException(s"The replication factor must be between 1 and ${Short.MaxValue} inclusive") // 假如配置了分区数,--partitions 必须大于0。 if (topic.p... (e.getCause.isInstanceOf[TopicExistsException] && topic.ifTopicDoesntExist())) throw e.getCause } } ...}```- 判断副本数、分区数是否合理。- 判断是否配置了 --replica...
extends Serializable { /*** @return The name of writer operation.*/String getWriterName(); /*** Configure writer with user defined options.** @param commonConfiguration Common option... catch (IllegalArgumentException e) { throw BitSailException.asBitSailException(RedisPluginErrorCode.ILLEGAL_VALUE, String.format("unknown ttl type: %s", writerConfiguration.get(RedisWri...
主要依赖的是在 Javac 编译阶段利用“Annotation Processor”,对自定义的注解进行预处理后生成代码然后织入;其他的像CGLIB、ByteBuddy等框架是在运行时对代码进行织入的,主要依赖的是Java Agent技术,通过JVMTI的接... `@Advice.AllArguments(nullIfEmpty = true) Object[] arguments` `) {` `String[] parameterNames = new String[]{};` `T transmitResult = null;` `try {` `InstanceMethodInterceptor interceptor ...
InstanceTypeFamily String 否 ecs.g2i 实例规格族。 InstanceTypeIds.N String 否 InstanceTypeIds.1=ecs.r2a.xlarge&InstanceTypeIds.2=ecs.g2a.xlarge 实例规格。 参数 - N:表示实例规格的序号,取值范围:1... 错误码HttpCode 错误码 错误信息 描述 400 InvalidArgument The specified argument is invalid. 指定的参数不合法。 400 LimitExceeded.MaximumInstanceTypeIds You've reached the limit on the number of Insta...
调用 DescribeInstancesIamRoles 接口查询一台或多台实例上已绑定的IAM角色。 调试API Explorer您可以通过API Explorer在线发起调用,无需关注签名生成过程,快速获取调用结果。去调试请求参数名称 类型 是否必填 示... 取值为上一次API调用返回的NextToken参数值。 返回数据名称 类型 示例值 描述 InstancesIamRoles Array of Struct - 符合条件的AssumeRole集合,具体请参见下表“ InstancesIamRoles 结构 ”。 NextToken Stri...
只能包含中文、字母、数字、下划线和中划线。 长度限制为1~128个字符。 暂不支持特殊字符。 ZoneId String 否 cn-beijing-a 专有宿主机集群所在的可用区ID。可以调用DescribeZones查询一个地域下的可用区信息... AvailableInstanceTypesArray of Struct-专有宿主机集群内ECS实例规格的可用容量。AvailableCapacityInteger58可用的实例规格容量。InstanceTypeStringecs.ddhr2s.define.c4m16实例规格。AvailableMemoryInteger44...
只能包含中文、字母、数字、下划线和中划线。 长度限制在1~128之间。 Strategy String 否 Availability 部署策略,取值: Availability:高可用策略 AvailabilityGroup:部署集组高可用策略 Granularity St... InstanceAmount Integer 1 部署集内的实例数量。 InstanceIds List ["i-3tigy72q3u3vj0x2****","i-3tigy72q3u3vj0x2****"] 部署集内的实例ID列表。 Capacities Array of Struct - 部署集所属可用区内的相关信息,...
调用 RenewInstance 续费一台包年包月实例,优先使用抵扣代金券方式续费。 调试API Explorer您可以通过API Explorer在线发起调用,无需关注签名生成过程,快速获取调用结果。去调试请求参数名称 类型 是否必填 示例值... 错误码HttpCode 错误码 错误信息 描述 400 MissingParameter.InstanceId The required parameter InstanceId is not supplied. 实例ID不能为空。 400 InvalidArgument The specified argument is invalid. 指定的参...
InstancesIamRole 要执行的操作,取值:DisassociateInstancesIamRole。 Version String 是 2020-04-01 API的版本,取值:2020-04-01。 InstanceIds.N String 是 InstanceIds.1=i-3ti9101aju3vj0******& InstanceIds.2= i-3tiegs1y963vj0****** 实例ID,最多支持100个ID。 参数 - N:表示实例的序号。 多个Instance ID之间用&分隔。 IamRoleName String 否 EcsTestRole 实例IAM角色名称。 您可以使用ListRoles查询您已创建的实...
调用 ModifyInstanceDeployment 接口调整实例所属部署集,您可以向指定部署集内添加一台实例,或者将一台实例从部署集中移除。 调试API Explorer您可以通过API Explorer在线发起调用,无需关注签名生成过程,快速获取调... InstanceId is not supplied. 实例ID不能为空。 400 InvalidArgument The specified argument is invalid. 指定的参数不合法。 400 Insufficient.Balance The request is denied due to the lack of balance. 账户...
调用 StopInstances 接口停止一台或多台实例。 调试API Explorer您可以通过API Explorer在线发起调用,无需关注签名生成过程,快速获取调用结果。去调试请求参数名称 类型 是否必填 示例值 描述 Action String 是 S... MissingParameter.InstanceId The required parameter InstanceId is not supplied. 实例ID不能为空。 InvalidInstanceStatus The status of the specified instance does not support this request. 当前实例的状...
调用 StopInstance 接口停止一台实例。 调试API Explorer您可以通过API Explorer在线发起调用,无需关注签名生成过程,快速获取调用结果。去调试请求参数名称 类型 是否必填 示例值 描述 Action String 是 StopIns... 400 InvalidInstanceStatus The status of the specified instance does not support this request. 当前实例的状态不支持此操作。 400 InvalidArgument The specified argument is invalid. 指定的参数不合法。 ...