StateManager.java 1.3 KB
Newer Older
P
pjsousa@gmail.com 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/**
 * Copyright (c) 2007-2009 Alysson Bessani, Eduardo Alchieri, Paulo Sousa, and the authors indicated in the @author tags
 * 
 * This file is part of SMaRt.
 * 
 * SMaRt is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * SMaRt is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with SMaRt.  If not, see <http://www.gnu.org/licenses/>.
 */

package navigators.smart.statemanagment;

import navigators.smart.tom.ServiceReplica;

/**
 * TODO: Não sei se esta classe sera usada. Para já, deixo ficar
 * 
26
 * @author Jo�o Sousa
P
pjsousa@gmail.com 已提交
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
 */
public class StateManager {

    public static final int K = 1000;

    private ServiceReplica replica;
    private StateLog log;

    public StateManager(ServiceReplica replica) {

        this.replica = replica;
        this.log = new StateLog(K);
    }

    public void makeCheckpoint() {
        
    }
44 45 46 47

    public void teste() {
        // So para ver se isto funciona
    }
P
pjsousa@gmail.com 已提交
48
}