func NewJobStore(configs *CacheConfigs,
	changedCallback JobCacheChangedHandlerFunc,
	exceptionCallback JobCacheExceptionHandlerFunc) *JobStore {

	alloc := &models.JobsAlloc{
		Version: 0,
		Jobs:    make([]*models.JobData, 0),
	}

	store := &JobStore{
		alloc:             alloc,
		jobs:              make(map[string]*models.JobBase, 0),
		changedCallback:   changedCallback,
		exceptionCallback: exceptionCallback,
	}

	store.getter = NewJobGetter(configs, store)
	return store
}
//NewJobStore is exported
//jobs & alloc cache
NewJobStore is exported
jobs & alloc cache
// NewJobStore is exported // jobs & alloc cache
func NewJobStore(configs *CacheConfigs,
	changedCallback JobCacheChangedHandlerFunc,
	exceptionCallback JobCacheExceptionHandlerFunc) *JobStore {
	alloc := &models.JobsAlloc{
		Version: 0,
		Jobs:    make([]*models.JobData, 0),
	}
	store := &JobStore{
		alloc:             alloc,
		jobs:              make(map[string]*models.JobBase, 0),
		changedCallback:   changedCallback,
		exceptionCallback: exceptionCallback,
	}
	store.getter = NewJobGetter(configs, store)
	return store
}
func NewJobStore ( configs * CacheConfigs , changedCallback JobCacheChangedHandlerFunc , exceptionCallback JobCacheExceptionHandlerFunc ) * JobStore { alloc := & models . JobsAlloc { Version : 0 , Jobs : make ( [ ] * models . JobData , 0 ) , } store := & JobStore { alloc : alloc , jobs : make ( map [ string ] * models . JobBase , 0 ) , changedCallback : changedCallback , exceptionCallback : exceptionCallback , } store . getter = NewJobGetter ( configs , store ) return store }
NewJobStore is exported
jobs & alloc cache
NewJobStore is exported jobs & alloc cache