|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SystemStateService
Allows to persist, update, delete and recover JBI artefacts.
Field Summary | |
---|---|
static String |
COMPONENT_LOGGER_NAME
|
Method Summary | |
---|---|
org.ow2.petals.systemstate.generated.Component |
createComponentStateHolder(String componentName,
URL installUrl,
String archiveName)
Create a Component entry in the System State. |
org.ow2.petals.systemstate.generated.ServiceAssembly |
createServiceAssemblyStateHolder(String saName,
URL installUrl,
String archiveName)
Create a ServiceAssembly entry in the System State. |
org.ow2.petals.systemstate.generated.SharedLibrary |
createSharedLibraryStateHolder(String slName,
String version,
URL installUrl,
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. |
Field Detail |
---|
static final String COMPONENT_LOGGER_NAME
Method Detail |
---|
org.ow2.petals.systemstate.generated.Component createComponentStateHolder(String componentName, URL installUrl, String archiveName) throws org.ow2.petals.systemstate.SystemStateException
Component
entry in the System State.
componentName
- installUrl
- archiveName
-
Component
entry
org.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.ServiceAssembly createServiceAssemblyStateHolder(String saName, URL installUrl, String archiveName) throws org.ow2.petals.systemstate.SystemStateException
ServiceAssembly
entry in the System State.
saName
- installUrl
- archiveName
-
ServiceAssembly
org.ow2.petals.systemstate.SystemStateException
- failed to persist the new System Stateorg.ow2.petals.systemstate.generated.SharedLibrary createSharedLibraryStateHolder(String slName, String version, URL installUrl, String archiveName) throws org.ow2.petals.systemstate.SystemStateException
SharedLibrary
entry in the System State.
slName
- installUrl
- 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 found
org.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 found
org.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 found
org.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
void updateServiceAssemblyState(String saName, String lifecycleState) throws org.ow2.petals.systemstate.SystemStateException
saName
- lifecycleState
-
org.ow2.petals.systemstate.SystemStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |