X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-xsql%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyang%2Fgen%2Fv1%2Fhttp%2Fnetconfcentral%2Forg%2Fns%2Fxsql%2Frev140626%2FXSQLModule.java;h=a669345e140d5e201219749a5d229df43bb3c864;hp=c8a5a85ae6d22b7f4113af265b117d302ae4a9ee;hb=2801b4929e60938cdac4c84dff6422e24e93d11d;hpb=220bfdf6b68a02b2ad280000d6699bf17239cc90 diff --git a/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/yang/gen/v1/http/netconfcentral/org/ns/xsql/rev140626/XSQLModule.java b/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/yang/gen/v1/http/netconfcentral/org/ns/xsql/rev140626/XSQLModule.java index c8a5a85ae6..a669345e14 100644 --- a/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/yang/gen/v1/http/netconfcentral/org/ns/xsql/rev140626/XSQLModule.java +++ b/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/yang/gen/v1/http/netconfcentral/org/ns/xsql/rev140626/XSQLModule.java @@ -1,9 +1,19 @@ +/* + * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.xsql.rev140626; import org.opendaylight.controller.md.sal.dom.xsql.XSQLAdapter; import org.opendaylight.xsql.XSQLProvider; - +/** + * @author Sharon Aicler(saichler@gmail.com) + **/ public class XSQLModule extends org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.xsql.rev140626.AbstractXSQLModule { + private static final long SLEEP_TIME_BEFORE_CREATING_TRANSACTION = 10000; public XSQLModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { super(identifier, dependencyResolver); } @@ -22,9 +32,14 @@ public class XSQLModule extends org.opendaylight.yang.gen.v1.http.netconfcentral XSQLAdapter xsqlAdapter = XSQLAdapter.getInstance(); getSchemaServiceDependency().registerSchemaContextListener(xsqlAdapter); xsqlAdapter.setDataBroker(getAsyncDataBrokerDependency()); - XSQLProvider p = new XSQLProvider(); - //p.buildXSQL(getDataBrokerDependency()); + final XSQLProvider p = new XSQLProvider(); + Runnable runthis = new Runnable() { + @Override + public void run() { + try{Thread.sleep(SLEEP_TIME_BEFORE_CREATING_TRANSACTION);}catch(Exception err){} + p.buildXSQL(getDataBrokerDependency()); + } + }; return p; } - }