org.ow2.petals.admin.api.artifact
Class ServiceAssembly

java.lang.Object
  extended by org.ow2.petals.admin.api.artifact.Artifact
      extended by org.ow2.petals.admin.api.artifact.ServiceAssembly
All Implemented Interfaces:
ArtifactState

public class ServiceAssembly
extends Artifact
implements ArtifactState

This class represents a remote JBI service assembly.

Author:
Nicolas Oddoux - EBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.petals.admin.api.artifact.ArtifactState
ArtifactState.State
 
Field Summary
static java.lang.String TYPE
           
static java.lang.String XPATH_JBI_SU_COMPONENTS
          XPath expression to access components dependencies
static java.lang.String XPATH_JBI_SU_NAMES
          XPath expression to access service units names
 
Constructor Summary
ServiceAssembly(java.lang.String name)
           
ServiceAssembly(java.lang.String name, java.util.List<ServiceUnit> serviceUnits)
           
 
Method Summary
 java.util.List<ServiceUnit> getServiceUnits()
           
 ArtifactState.State getState()
          Get the service assembly state
 void setState(ArtifactState.State state)
          Update the service assembly state
 
Methods inherited from class org.ow2.petals.admin.api.artifact.Artifact
equals, getName, getType, getVersion, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

XPATH_JBI_SU_NAMES

public static final java.lang.String XPATH_JBI_SU_NAMES
XPath expression to access service units names

See Also:
Constant Field Values

XPATH_JBI_SU_COMPONENTS

public static final java.lang.String XPATH_JBI_SU_COMPONENTS
XPath expression to access components dependencies

See Also:
Constant Field Values
Constructor Detail

ServiceAssembly

public ServiceAssembly(java.lang.String name)

ServiceAssembly

public ServiceAssembly(java.lang.String name,
                       java.util.List<ServiceUnit> serviceUnits)
Method Detail

getServiceUnits

public java.util.List<ServiceUnit> getServiceUnits()

setState

public void setState(ArtifactState.State state)
Update the service assembly state

Specified by:
setState in interface ArtifactState
Parameters:
the - service assembly state

getState

public ArtifactState.State getState()
Get the service assembly state

Specified by:
getState in interface ArtifactState
Returns:
the service assembly state


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