/*
* Fenix Framework, a framework to develop Java Enterprise Applications.
*
* Copyright (C) 2013 Fenix Framework Team and/or its affiliates and other contributors as indicated by the @author tags.
*
* This file is part of the Fenix Framework. Read the file COPYRIGHT.TXT for more copyright and licensing information.
*/
package pt.ist.fenixframework.backend.jvstm.infinispan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pt.ist.fenixframework.FenixFramework;
import pt.ist.fenixframework.backend.jvstm.cluster.JvstmClusterBackEnd;
import pt.ist.fenixframework.backend.jvstm.pstm.OwnedVBox;
import pt.ist.fenixframework.backend.jvstm.pstm.VBox;
public class JvstmIspnBackEnd extends JvstmClusterBackEnd {
private static final Logger logger = LoggerFactory.getLogger(JvstmIspnBackEnd.class);
public static final String BACKEND_NAME = "jvstmispn";
JvstmIspnBackEnd() {
super(new InfinispanRepository());
}
public static JvstmIspnBackEnd getInstance() {
return (JvstmIspnBackEnd) FenixFramework.getConfig().getBackEnd();
}
@Override
public String getName() {
return BACKEND_NAME;
}
@Override
public VBox lookupCachedVBox(String vboxId) {
return OwnedVBox.lookupCachedVBox(vboxId);
}
}