Interface BizManagerService
public interface BizManagerService
Service to manage biz
- Since:
- 0.1.0
- Author:
- ruoshan
-
Method Summary
Modifier and TypeMethodDescriptionvoidActive biz with specified biz name and biz version.getActiveBiz(String bizName) Get active biz with given biz name whose state isBizState.ACTIVATEDget All biz namesGet Biz List by nameGet Biz determined by bizName and BizVersiongetBizByClassLoader(ClassLoader classLoader) Get Biz by biz ClassLoadergetBizByIdentity(String bizIdentity) Get Biz by identity id, an identity is usually consist of biz name and biz version.Get all biz in priority PriorityOrderedgetBizState(String bizIdentity) GetBizStateaccording to biz identity.getBizState(String bizName, String bizVersion) GetBizStateaccording to biz name and biz version.booleanisActiveBiz(String bizName, String bizVersion) Check whether the biz specified with a given name and a given version is activeBizState.ACTIVATEDbooleanregisterBiz(Biz biz) Register BizbooleanremoveAndAddBiz(Biz addingBiz, Biz removing) dynamic to instead a bizunRegisterBiz(String bizName, String bizVersion) Un-Register Biz, it requires the biz state must beBizState.ACTIVATEDorBizState.DEACTIVATEDorBizState.BROKENunRegisterBizStrictly(String bizName, String bizVersion) Un-Register Biz in strict mode, it ignores the biz state, generally invoked when install biz failed.
-
Method Details
-
registerBiz
Register Biz- Parameters:
biz-- Returns:
-
unRegisterBiz
Un-Register Biz, it requires the biz state must beBizState.ACTIVATEDorBizState.DEACTIVATEDorBizState.BROKEN- Parameters:
bizName- Biz NamebizVersion- Biz Version- Returns:
- Biz
-
unRegisterBizStrictly
Un-Register Biz in strict mode, it ignores the biz state, generally invoked when install biz failed.- Parameters:
bizName- Biz NamebizVersion- Biz Version- Returns:
- Biz
-
getBiz
Get Biz List by name- Parameters:
bizName-- Returns:
-
getBiz
Get Biz determined by bizName and BizVersion- Parameters:
bizName- Biz NamebizVersion- Biz Version- Returns:
-
getBizByIdentity
Get Biz by identity id, an identity is usually consist of biz name and biz version.- Parameters:
bizIdentity-- Returns:
-
getBizByClassLoader
Get Biz by biz ClassLoader- Parameters:
classLoader-- Returns:
-
getAllBizNames
get All biz names- Returns:
-
getAllBizIdentities
-
getBizInOrder
Get all biz in priority PriorityOrdered- Returns:
-
getActiveBiz
Get active biz with given biz name whose state isBizState.ACTIVATED- Parameters:
bizName-- Returns:
-
isActiveBiz
Check whether the biz specified with a given name and a given version is activeBizState.ACTIVATED- Parameters:
bizName-bizVersion-- Returns:
-
activeBiz
Active biz with specified biz name and biz version.- Parameters:
bizName-bizVersion-
-
getBizState
GetBizStateaccording to biz name and biz version.- Parameters:
bizName-bizVersion-- Returns:
-
getBizState
GetBizStateaccording to biz identity.- Parameters:
bizIdentity-- Returns:
-
removeAndAddBiz
dynamic to instead a biz- Parameters:
addingBiz-removing-- Returns:
-
getBizRegistration
ConcurrentHashMap<String,ConcurrentHashMap<String, getBizRegistration()Biz>>
-