helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kanak Biscuitwala (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HELIX-98) clean up setting constraint api
Date Wed, 13 Nov 2013 00:54:17 GMT

     [ https://issues.apache.org/jira/browse/HELIX-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kanak Biscuitwala updated HELIX-98:
-----------------------------------

    Fix Version/s:     (was: 0.6.2-incubating)

> clean up setting constraint api
> -------------------------------
>
>                 Key: HELIX-98
>                 URL: https://issues.apache.org/jira/browse/HELIX-98
>             Project: Apache Helix
>          Issue Type: Sub-task
>          Components: helix-core, helix-webapp-admin
>            Reporter: Zhen Zhang
>            Assignee: Kanak Biscuitwala
>
> currently setting constraint is doing through the following api:
> 1) constraint builder
> builder.addConstraintAttribute(key1, value1).addConstraintAttribute(key2, value2)....
> 2) add constraint to cluster
> admin.addConstraint(clusterName, constraintType, constraintId, constraint)
> will be better to have:
> 1) builder(id).forMsgType(msgType).forInstance(instanceName).setConstraint(contraintValue)
> 2) add constraint to cluster
> admin.addMsgConstraint(clusterName, constraint)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message