Package com.hp.hpl.jena.gvs

Examples of com.hp.hpl.jena.gvs.Clock


    final Date cannedVersionDate = ((XSDDateTime) cannedVersionDateStmt
        .getLiteral().getValue()).asCalendar().getTime();
    cannedVersionDateStmt.remove();
   
    if (isDefaultConfigLoadingNeeded(store, cannedVersionDate)) {
      Clock origClock = store.getClock();
      store.setClock(new Clock() {

        public Date getTime() {
          return cannedVersionDate;
        }
       
View Full Code Here


   */
  @Override
  protected void execute(Store store, DownloadRemoteCommandArgumets arguments) {
    URL remoteService = arguments.getRemoteServiceURL();
    log.info("Remote Service: " + remoteService);
    Clock origClock = store.getClock();
    ToyClock toyClock = new ToyClock();
    store.setClock(toyClock);
    Set<String> sources = getSources(remoteService);
    for (String omitSource : arguments.getOmitSourceURLs()) {
      if (!sources.contains(omitSource)) {
View Full Code Here

   * -MetaStore
   *
   *
   */
  protected BaseStoreImpl() {
    this(new Clock() {

      public Date getTime() {
        return new Date();
      }

View Full Code Here

     * @param store
     * @param clock
     */
    public void storeIn(Store store) {
      log.info(source + " asserted something at " + date);
      Clock oldClock = store.getClock();
      store.setClock(new Clock() {

        public Date getTime() {
          return date;
        }
       
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.gvs.Clock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.