当前位置: 首页>>代码示例>>Java>>正文


Java DataStoreIdentifier类代码示例

本文整理汇总了Java中org.opendaylight.controller.sal.common.DataStoreIdentifier的典型用法代码示例。如果您正苦于以下问题:Java DataStoreIdentifier类的具体用法?Java DataStoreIdentifier怎么用?Java DataStoreIdentifier使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DataStoreIdentifier类属于org.opendaylight.controller.sal.common包,在下文中一共展示了DataStoreIdentifier类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addValidator

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void addValidator(DataStoreIdentifier store,
        DataValidator validator) {
    if (validator == null)
        throw new IllegalArgumentException(
                "Validator should not be null");

    providerValidators.add(validator);
    context(store).validators.add(validator);
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:11,代码来源:DataBrokerModule.java

示例2: removeValidator

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void removeValidator(DataStoreIdentifier store,
        DataValidator validator) {
    if (validator == null)
        throw new IllegalArgumentException(
                "Validator should not be null");

    providerValidators.remove(validator);
    context(store).validators.remove(validator);
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:11,代码来源:DataBrokerModule.java

示例3: addCommitHandler

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void addCommitHandler(DataStoreIdentifier store,
        DataCommitHandler provider) {
    if (provider == null)
        throw new IllegalArgumentException(
                "CommitHandler should not be null");

    providerCommitHandlers.add(provider);
    context(store).commitHandlers.add(provider);
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:11,代码来源:DataBrokerModule.java

示例4: removeCommitHandler

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void removeCommitHandler(DataStoreIdentifier store,
        DataCommitHandler provider) {
    if (provider == null)
        throw new IllegalArgumentException(
                "CommitHandler should not be null");

    providerCommitHandlers.remove(provider);
    context(store).commitHandlers.remove(provider);
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:11,代码来源:DataBrokerModule.java

示例5: addRefresher

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void addRefresher(DataStoreIdentifier store,
        DataRefresher provider) {
    if (provider == null)
        throw new IllegalArgumentException(
                "Refresher should not be null");

    providerRefreshers.add(provider);
    context(store).refreshers.add(provider);
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:11,代码来源:DataBrokerModule.java

示例6: removeRefresher

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void removeRefresher(DataStoreIdentifier store,
        DataRefresher provider) {
    if (provider == null)
        throw new IllegalArgumentException(
                "Refresher should not be null");

    providerRefreshers.remove(provider);
    context(store).refreshers.remove(provider);
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:11,代码来源:DataBrokerModule.java

示例7: requestCommit

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public RpcResult<CommitTransaction> requestCommit(
        DataStoreIdentifier store) {
    List<RpcError> errors = new ArrayList<RpcError>();
    Set<CommitTransaction> transactions = new HashSet<DataCommitHandler.CommitTransaction>();
    boolean successful = true;

    for (DataCommitHandler commitHandler : context(store).commitHandlers) {
        try {
            RpcResult<CommitTransaction> partialResult = commitHandler
                    .requestCommit(store);
            successful = partialResult.isSuccessful() & successful;
            if (partialResult.isSuccessful()) {
                transactions.add(partialResult.getResult());
            }

            errors.addAll(partialResult.getErrors());
        } catch (Exception e) {
            log.error("Uncaught exception prevented commit request."
                    + e.getMessage(), e);
            successful = false;
            // FIXME: Add RPC Error with exception.
        }
        if (successful == false)
            break;
    }
    CommitTransaction transaction = new SequentialCommitTransaction(
            store, transactions);
    return Rpcs.getRpcResult(successful, transaction, errors);
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:31,代码来源:DataBrokerModule.java

示例8: getData

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public <T extends DataRoot> T getData(DataStoreIdentifier store,
        Class<T> rootType) {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:7,代码来源:DataModule.java

示例9: getCandidateData

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public <T extends DataRoot> T getCandidateData(
        DataStoreIdentifier store, Class<T> rootType) {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:7,代码来源:DataModule.java

示例10: editCandidateData

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public RpcResult<DataRoot> editCandidateData(DataStoreIdentifier store,
        DataRoot changeSet) {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:7,代码来源:DataModule.java

示例11: commit

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public Future<RpcResult<Void>> commit(DataStoreIdentifier store) {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:6,代码来源:DataModule.java

示例12: addValidator

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void addValidator(DataStoreIdentifier store,
        DataValidator validator) {
    // TODO Auto-generated method stub

}
 
开发者ID:lbchen,项目名称:ODL,代码行数:7,代码来源:DataModule.java

示例13: removeValidator

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void removeValidator(DataStoreIdentifier store,
        DataValidator validator) {
    // TODO Auto-generated method stub

}
 
开发者ID:lbchen,项目名称:ODL,代码行数:7,代码来源:DataModule.java

示例14: addCommitHandler

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void addCommitHandler(DataStoreIdentifier store,
        DataCommitHandler provider) {
    // TODO Auto-generated method stub

}
 
开发者ID:lbchen,项目名称:ODL,代码行数:7,代码来源:DataModule.java

示例15: removeCommitHandler

import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void removeCommitHandler(DataStoreIdentifier store,
        DataCommitHandler provider) {
    // TODO Auto-generated method stub

}
 
开发者ID:lbchen,项目名称:ODL,代码行数:7,代码来源:DataModule.java


注:本文中的org.opendaylight.controller.sal.common.DataStoreIdentifier类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。