func (appMgr *AppManager) Stop() {
}
this implements AppManagementService interface
package application
import (
	"context"
	"fmt"
	"strings"
	"time"
	"github.com/apache/incubator-yunikorn-k8shim/pkg/client"
	"go.uber.org/zap"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	appv1 "github.com/apache/incubator-yunikorn-k8shim/pkg/apis/yunikorn.apache.org/v1alpha1"
	"github.com/apache/incubator-yunikorn-k8shim/pkg/appmgmt/interfaces"
	shimcache "github.com/apache/incubator-yunikorn-k8shim/pkg/cache"
	"github.com/apache/incubator-yunikorn-k8shim/pkg/common/constants"
	"github.com/apache/incubator-yunikorn-k8shim/pkg/common/events"
	"github.com/apache/incubator-yunikorn-k8shim/pkg/log"
)
type AppManager struct {
	amProtocol interfaces.ApplicationManagementProtocol
	apiProvider client.APIProvider
}
const appIDDelimiter = "-"
func NewAppManager(amProtocol interfaces.ApplicationManagementProtocol, apiProvider client.APIProvider) *AppManager {
	return &AppManager{
		amProtocol:  amProtocol,
		apiProvider: apiProvider,
	}
}
func (appMgr *AppManager) Name() string {
	return constants.AppManagerHandlerName
}
func (appMgr *AppManager) ServiceInit() error {
	return nil
}
func (appMgr *AppManager) Start() error {
	appMgr.apiProvider.AddEventHandler(&client.ResourceEventHandlers{
		Type:     client.ApplicationInformerHandlers,
		AddFn:    appMgr.addApp,
		DeleteFn: appMgr.deleteApp,
	})
	return nil
}