public class Routes extends Restful
| 构造器和说明 |
|---|
Routes() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Map<String,Object> context)
载入新增路由页面
|
static void |
addOwnersOfService(Set<String> usernames,
String serviceName,
OwnerService ownerDAO)
添加与服务相关的Owner
|
static void |
addOwnersOfServicePattern(Set<String> usernames,
String serviceNamePattern,
OwnerService ownerDAO)
添加与服务模式相关的Owner
|
boolean |
create(Map<String,Object> context)
保存路由信息到数据库中
|
boolean |
delete(Long[] ids,
Map<String,Object> context)
删除指定ID的route规则
|
boolean |
disable(Long[] ids,
Map<String,Object> context)
禁用指定ID的route规则(可以批量处理)
|
void |
edit(Map<String,Object> context)
载入修改路由页面
|
boolean |
enable(Long[] ids,
Map<String,Object> context)
启用指定ID的route规则(可以批量处理)
|
void |
index(Map<String,Object> context)
路由模块首页
|
void |
preview(Map<String,Object> context) |
void |
routeselect(Map<String,Object> context)
选择消费者
|
void |
show(Map<String,Object> context)
显示路由详细信息
|
boolean |
update(Map<String,Object> context)
保存更新数据到数据库中
|
execute, getMessagepublic boolean enable(Long[] ids, Map<String,Object> context)
ids - public boolean disable(Long[] ids, Map<String,Object> context)
ids - public static void addOwnersOfService(Set<String> usernames, String serviceName, OwnerService ownerDAO)
usernames - 用于添加的用户名serviceName - 不含通配符public static void addOwnersOfServicePattern(Set<String> usernames, String serviceNamePattern, OwnerService ownerDAO)
usernames - 用于添加的用户名serviceNamePattern - 服务模式,Glob模式Copyright © 2011–2017 Alibaba. All rights reserved.