本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例12: addValidator
import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void addValidator(DataStoreIdentifier store,
DataValidator validator) {
// TODO Auto-generated method stub
}
示例13: removeValidator
import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void removeValidator(DataStoreIdentifier store,
DataValidator validator) {
// TODO Auto-generated method stub
}
示例14: addCommitHandler
import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void addCommitHandler(DataStoreIdentifier store,
DataCommitHandler provider) {
// TODO Auto-generated method stub
}
示例15: removeCommitHandler
import org.opendaylight.controller.sal.common.DataStoreIdentifier; //导入依赖的package包/类
@Override
public void removeCommitHandler(DataStoreIdentifier store,
DataCommitHandler provider) {
// TODO Auto-generated method stub
}