package framework

import "github.com/pingcap/wormhole/pkg/whpb"

//Processor is an interface for work frame
type Processor interface {
	// Process is the main procedure.
	Process() (err error)
	// GetStatus returns job status. It should return a clone of the JobStatus.
	GetStatus() *whpb.JobStatus
	// Close should do graceful shutdown of Processor.
	Close()
}
