org.ow2.petals.system.systemstate
Interface SystemStateService

All Known Implementing Classes:
SystemStateServiceImpl

public interface SystemStateService

Allows to persist, update, delete and recover JBI artefacts.

Author:
ofabre - EBM Websourcing, rnaudin - EBM Websourcing

Method Summary
 org.ow2.petals.systemstate.generated.Component createComponentStateHolder(java.lang.String componentName, java.net.URL installUrl, java.lang.String archiveName)
          Create a Component entry in the System State.
 org.ow2.petals.systemstate.generated.ServiceAssembly createServiceAssemblyStateHolder(java.lang.String saName, java.net.URL installUrl, java.lang.String archiveName)
          Create a ServiceAssembly entry in the System State.
 org.ow2.petals.systemstate.generated.SharedLibrary createSharedLibraryStateHolder(java.lang.String slName, java.lang.String version, java.net.URL installUrl, java.lang.String archiveName)
          Create a SharedLibrary entry in the System State.
 org.ow2.petals.systemstate.generated.Component deleteComponentStateHolder(java.lang.String componentName)
          Delete a Component entry from the System State.
 org.ow2.petals.systemstate.generated.ServiceAssembly deleteServiceAssemblyStateHolder(java.lang.String saName)
          Delete a ServiceAssembly entry from the System State.
 org.ow2.petals.systemstate.generated.SharedLibrary deleteSharedLibraryStateHolder(java.lang.String slName, java.lang.String version)
          Delete a SharedLibrary entry from the System State.
 org.ow2.petals.systemstate.generated.Component getComponentStateHolder(java.lang.String componentName)
          Get the Component entry from the System State.
 java.util.List<org.ow2.petals.systemstate.generated.Component> getComponentStateHolders()
          Get the Components entries from the System State.
 org.ow2.petals.systemstate.generated.ServiceAssembly getServiceAssemblyStateHolder(java.lang.String saName)
          Get the ServiceAssembly entry from the System State.
 java.util.List<org.ow2.petals.systemstate.generated.ServiceAssembly> getServiceAssemblyStateHolders()
          Get the ServiceAssemblys entries from the System State.
 org.ow2.petals.systemstate.generated.SharedLibrary getSharedLibraryStateHolder(java.lang.String slName, java.lang.String version)
          Get the SharedLibrary entry from the System State.
 java.util.List<org.ow2.petals.systemstate.generated.SharedLibrary> getSharedLibraryStateHolders()
          Get the SharedLibrarys entries from the System State.
 java.util.List<org.ow2.petals.systemstate.generated.SharedLibrary> getSharedLibraryStateHolders(java.lang.String slName)
          Get the SharedLibrarys entries from the System State matching the given name.
 boolean isComponentInstalled(java.lang.String componentName)
          Check if the given component is already installed
 void updateComponentInstallationState(java.lang.String componentName, java.lang.String installState)
          Update the given component installation state.
 void updateComponentLifeCycleState(java.lang.String componentName, java.lang.String lifecycleState)
          Update the given component lifecycle state.
 void updateServiceAssemblyState(java.lang.String saName, java.lang.String lifecycleState)
          Update the given service assembly state.
 

Method Detail

createComponentStateHolder

org.ow2.petals.systemstate.generated.Component createComponentStateHolder(java.lang.String componentName,
                                                                          java.net.URL installUrl,
                                                                          java.lang.String archiveName)
                                                                          throws org.ow2.petals.systemstate.SystemStateException
Create a Component entry in the System State.

Parameters:
componentName -
installUrl -
archiveName -
Returns:
the created Component entry
Throws:
org.ow2.petals.systemstate.SystemStateException - failed to persist the new System State

createServiceAssemblyStateHolder

org.ow2.petals.systemstate.generated.ServiceAssembly createServiceAssemblyStateHolder(java.lang.String saName,
                                                                                      java.net.URL installUrl,
                                                                                      java.lang.String archiveName)
                                                                                      throws org.ow2.petals.systemstate.SystemStateException
Create a ServiceAssembly entry in the System State.

Parameters:
saName -
installUrl -
archiveName -
Returns:
the created ServiceAssembly
Throws:
org.ow2.petals.systemstate.SystemStateException - failed to persist the new System State

createSharedLibraryStateHolder

org.ow2.petals.systemstate.generated.SharedLibrary createSharedLibraryStateHolder(java.lang.String slName,
                                                                                  java.lang.String version,
                                                                                  java.net.URL installUrl,
                                                                                  java.lang.String archiveName)
                                                                                  throws org.ow2.petals.systemstate.SystemStateException
Create a SharedLibrary entry in the System State.

Parameters:
slName -
installUrl -
archiveName -
Returns:
the created SharedLibrary
Throws:
org.ow2.petals.systemstate.SystemStateException - failed to persist the new System State

deleteComponentStateHolder

org.ow2.petals.systemstate.generated.Component deleteComponentStateHolder(java.lang.String componentName)
                                                                          throws org.ow2.petals.systemstate.SystemStateException
Delete a Component entry from the System State.

Parameters:
componentName -
Returns:
the deleted entry or null if not found
Throws:
org.ow2.petals.systemstate.SystemStateException - failed to persist the new System State

deleteServiceAssemblyStateHolder

org.ow2.petals.systemstate.generated.ServiceAssembly deleteServiceAssemblyStateHolder(java.lang.String saName)
                                                                                      throws org.ow2.petals.systemstate.SystemStateException
Delete a ServiceAssembly entry from the System State.

Parameters:
saName -
Returns:
the deleted entry or null if not found
Throws:
org.ow2.petals.systemstate.SystemStateException - failed to persist the new System State

deleteSharedLibraryStateHolder

org.ow2.petals.systemstate.generated.SharedLibrary deleteSharedLibraryStateHolder(java.lang.String slName,
                                                                                  java.lang.String version)
                                                                                  throws org.ow2.petals.systemstate.SystemStateException
Delete a SharedLibrary entry from the System State.

Parameters:
slName -
version -
Returns:
the deleted entry or null if not found
Throws:
org.ow2.petals.systemstate.SystemStateException - failed to persist the new System State

getComponentStateHolder

org.ow2.petals.systemstate.generated.Component getComponentStateHolder(java.lang.String componentName)
Get the Component entry from the System State.

Parameters:
componentName -
Returns:
the Component entry or null if not found

getComponentStateHolders

java.util.List<org.ow2.petals.systemstate.generated.Component> getComponentStateHolders()
Get the Components entries from the System State.

Returns:
the list of Components entries

getServiceAssemblyStateHolder

org.ow2.petals.systemstate.generated.ServiceAssembly getServiceAssemblyStateHolder(java.lang.String saName)
Get the ServiceAssembly entry from the System State.

Parameters:
saName -
Returns:
the ServiceAssembly entry or null if not found

getServiceAssemblyStateHolders

java.util.List<org.ow2.petals.systemstate.generated.ServiceAssembly> getServiceAssemblyStateHolders()
Get the ServiceAssemblys entries from the System State.

Returns:
the list of ServiceAssemblys entries

getSharedLibraryStateHolder

org.ow2.petals.systemstate.generated.SharedLibrary getSharedLibraryStateHolder(java.lang.String slName,
                                                                               java.lang.String version)
Get the SharedLibrary entry from the System State.

Parameters:
slName -
version -
Returns:
the SharedLibrary entry or null if not found

getSharedLibraryStateHolders

java.util.List<org.ow2.petals.systemstate.generated.SharedLibrary> getSharedLibraryStateHolders()
Get the SharedLibrarys entries from the System State.

Returns:
the list of SharedLibrarys entries

getSharedLibraryStateHolders

java.util.List<org.ow2.petals.systemstate.generated.SharedLibrary> getSharedLibraryStateHolders(java.lang.String slName)
Get the SharedLibrarys entries from the System State matching the given name.

Parameters:
slName -
Returns:
the list of SharedLibrarys entries

isComponentInstalled

boolean isComponentInstalled(java.lang.String componentName)
Check if the given component is already installed

Parameters:
componentName -
Returns:
true if already installed, false otherwise

updateComponentInstallationState

void updateComponentInstallationState(java.lang.String componentName,
                                      java.lang.String installState)
                                      throws org.ow2.petals.systemstate.SystemStateException
Update the given component installation state.

Parameters:
componentName -
installState -
Throws:
org.ow2.petals.systemstate.SystemStateException

updateComponentLifeCycleState

void updateComponentLifeCycleState(java.lang.String componentName,
                                   java.lang.String lifecycleState)
                                   throws org.ow2.petals.systemstate.SystemStateException
Update the given component lifecycle state.

Parameters:
componentName -
lifecycleState -
Throws:
org.ow2.petals.systemstate.SystemStateException

updateServiceAssemblyState

void updateServiceAssemblyState(java.lang.String saName,
                                java.lang.String lifecycleState)
                                throws org.ow2.petals.systemstate.SystemStateException
Update the given service assembly state.

Parameters:
saName -
lifecycleState -
Throws:
org.ow2.petals.systemstate.SystemStateException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.