public interface SystemStateService
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_LOGGER_NAME |
static String |
FRACTAL_SRV_ITF_NAME
Name of the server interface of the Fractal component associated to the system state service
|
Modifier and Type | Method and Description |
---|---|
org.ow2.petals.systemstate.generated.Component |
createComponentStateHolder(String componentName,
String archiveName)
Create a
Component entry in the System State. |
org.ow2.petals.systemstate.generated.ServiceAssembly |
createServiceAssemblyStateHolder(String saName,
String archiveName)
Create a
ServiceAssembly entry in the System State. |
org.ow2.petals.systemstate.generated.SharedLibrary |
createSharedLibraryStateHolder(String slName,
String version,
String archiveName)
Create a
SharedLibrary entry in the System State. |
org.ow2.petals.systemstate.generated.Component |
deleteComponentStateHolder(String componentName)
Delete a
Component entry from the System State. |
org.ow2.petals.systemstate.generated.ServiceAssembly |
deleteServiceAssemblyStateHolder(String saName)
Delete a
ServiceAssembly entry from the System State. |
org.ow2.petals.systemstate.generated.SharedLibrary |
deleteSharedLibraryStateHolder(String slName,
String version)
Delete a
SharedLibrary entry from the System State. |
org.ow2.petals.systemstate.generated.Component |
getComponentStateHolder(String componentName)
Get the
Component entry from the System State. |
List<org.ow2.petals.systemstate.generated.Component> |
getComponentStateHolders()
Get the
Component s entries from the System State. |
org.ow2.petals.systemstate.generated.ServiceAssembly |
getServiceAssemblyStateHolder(String saName)
Get the
ServiceAssembly entry from the System State. |
List<org.ow2.petals.systemstate.generated.ServiceAssembly> |
getServiceAssemblyStateHolders()
Get the
ServiceAssembly s entries from the System State. |
org.ow2.petals.systemstate.generated.SharedLibrary |
getSharedLibraryStateHolder(String slName,
String version)
Get the
SharedLibrary entry from the System State. |
List<org.ow2.petals.systemstate.generated.SharedLibrary> |
getSharedLibraryStateHolders()
Get the
SharedLibrary s entries from the System State. |
List<org.ow2.petals.systemstate.generated.SharedLibrary> |
getSharedLibraryStateHolders(String slName)
Get the
SharedLibrary s entries from the System State matching the
given name. |
boolean |
isComponentInstalled(String componentName)
Check if the given component is already installed
|
void |
updateComponentInstallationState(String componentName,
String installState)
Update the given component installation state.
|
void |
updateComponentLifeCycleState(String componentName,
String lifecycleState)
Update the given component lifecycle state.
|
void |
updateServiceAssemblyState(String saName,
String lifecycleState)
Update the given service assembly state.
|
static final String COMPONENT_LOGGER_NAME
static final String FRACTAL_SRV_ITF_NAME
org.ow2.petals.systemstate.generated.Component createComponentStateHolder(String componentName, String archiveName) throws org.ow2.petals.systemstate.SystemStateException
Component
entry in the System State.componentName
- archiveName
- Component
entryorg.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.ServiceAssembly createServiceAssemblyStateHolder(String saName, String archiveName) throws org.ow2.petals.systemstate.SystemStateException
ServiceAssembly
entry in the System State.saName
- archiveName
- ServiceAssembly
org.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.SharedLibrary createSharedLibraryStateHolder(String slName, String version, String archiveName) throws org.ow2.petals.systemstate.SystemStateException
SharedLibrary
entry in the System State.slName
- archiveName
- SharedLibrary
org.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.Component deleteComponentStateHolder(String componentName) throws org.ow2.petals.systemstate.SystemStateException
Component
entry from the System State.componentName
- null
if not foundorg.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.ServiceAssembly deleteServiceAssemblyStateHolder(String saName) throws org.ow2.petals.systemstate.SystemStateException
ServiceAssembly
entry from the System State.saName
- null
if not foundorg.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.SharedLibrary deleteSharedLibraryStateHolder(String slName, String version) throws org.ow2.petals.systemstate.SystemStateException
SharedLibrary
entry from the System State.slName
- version
- null
if not foundorg.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.Component getComponentStateHolder(String componentName)
Component
entry from the System State.componentName
- Component
entry or null
if not foundList<org.ow2.petals.systemstate.generated.Component> getComponentStateHolders()
Component
s entries from the System State.Component
s entriesorg.ow2.petals.systemstate.generated.ServiceAssembly getServiceAssemblyStateHolder(String saName)
ServiceAssembly
entry from the System State.saName
- ServiceAssembly
entry or null
if not foundList<org.ow2.petals.systemstate.generated.ServiceAssembly> getServiceAssemblyStateHolders()
ServiceAssembly
s entries from the System State.ServiceAssembly
s entriesorg.ow2.petals.systemstate.generated.SharedLibrary getSharedLibraryStateHolder(String slName, String version)
SharedLibrary
entry from the System State.slName
- version
- SharedLibrary
entry or null
if not foundList<org.ow2.petals.systemstate.generated.SharedLibrary> getSharedLibraryStateHolders()
SharedLibrary
s entries from the System State.SharedLibrary
s entriesList<org.ow2.petals.systemstate.generated.SharedLibrary> getSharedLibraryStateHolders(String slName)
SharedLibrary
s entries from the System State matching the
given name.slName
- SharedLibrary
s entriesboolean isComponentInstalled(String componentName)
componentName
- true
if already installed, false
otherwisevoid updateComponentInstallationState(String componentName, String installState) throws org.ow2.petals.systemstate.SystemStateException
componentName
- installState
- org.ow2.petals.systemstate.SystemStateException
void updateComponentLifeCycleState(String componentName, String lifecycleState) throws org.ow2.petals.systemstate.SystemStateException
componentName
- lifecycleState
- org.ow2.petals.systemstate.SystemStateException
Copyright © 2005-2016 Linagora. All Rights Reserved.