Exemplo n.º 1
0
    public void waitForTermination ()
    {
        checkState();

        _theImple.waitForTermination();
        _theImple = null;
    }
Exemplo n.º 2
0
    public final synchronized void terminate (boolean async)
    {
        checkState();

        _theImple.stop(async);
        _theImple = null;
    }
Exemplo n.º 3
0
    public final void scan (RecoveryScan callback)
    {
        checkState();

	ScanThread st = new ScanThread(_theImple, callback);

	st.start();
    }
Exemplo n.º 4
0
    public RecoveryManagerStatus trySuspend(boolean async) {
        checkState();

        PeriodicRecovery.Mode mode = _theImple.trySuspendScan(async);

        switch (mode) {
            case ENABLED:
                return RecoveryManagerStatus.ENABLED;
            case SUSPENDED:
                return RecoveryManagerStatus.SUSPENDED;
            case TERMINATED:
                return RecoveryManagerStatus.TERMINATED;
            default:
                throw new IllegalArgumentException("incompatible enum types");
        }
    }
Exemplo n.º 5
0
    public final Vector<RecoveryModule> getModules ()
    {
        checkState();

	return _theImple.getModules();
    }
Exemplo n.º 6
0
 public final void removeAllModules (boolean waitOnScan)
 {
     checkState();
     
     _theImple.removeAllModules(waitOnScan);
 }
Exemplo n.º 7
0
    public final void removeModule (RecoveryModule module, boolean waitOnScan)
    {
        checkState();

	_theImple.removeModule(module, waitOnScan);
    }
Exemplo n.º 8
0
    public final void addModule (RecoveryModule module)
    {
        checkState();

	_theImple.addModule(module);
    }
Exemplo n.º 9
0
    /**
     * Start the recovery manager thread.
     *
     * @throws IllegalStateException if the recovery manager has been shutdown.
     */
    public void startRecoveryManagerThread()
    {
        checkState();

        _theImple.start() ;
    }
Exemplo n.º 10
0
    public void resume ()
    {
        checkState();

        _theImple.resumeScan();
    }
Exemplo n.º 11
0
    public final void scan ()
    {
        checkState();

        _theImple.scan();
    }