com::cosylab::acs::maci::ComponentSpec Class Reference

Collaboration diagram for com::cosylab::acs::maci::ComponentSpec:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ComponentSpec (String name, String type, String code, String container)
 ComponentSpec (String componentSpec) throws IllegalArgumentException
String getContainer ()
String getCode ()
String getType ()
String getName ()
void setContainer (String container)
void setCode (String code)
void setType (String type)
void setName (String name)
String toString ()

Static Public Attributes

static final String COMPSPEC_ANY = "*"

Private Member Functions

void parseComponentSpec (String componentSpec) throws IllegalArgumentException

Private Attributes

String name
String type
String code
String container

Detailed Description

Structure containing all fields necessary to describe a component and its deployment information. Used for dynamic component instatiation.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@

Constructor & Destructor Documentation

com::cosylab::acs::maci::ComponentSpec::ComponentSpec ( String  name,
String  type,
String  code,
String  container 
) [inline]

Creates an instance of ComponentInfo with all necesarry data. @//param curl curl of the component.

Parameters:
name name of the component.
type type of the component.
code code of the component.
container container hosting the component.
com::cosylab::acs::maci::ComponentSpec::ComponentSpec ( String  componentSpec  )  throws IllegalArgumentException [inline]

Creates an instance of ComponentInfo from stringified ComponentSpec.

Parameters:
componentSpec stringified ComponentSpec, non-null
Exceptions:
BadParametersException 
See also:
parseComponentSpec

References parseComponentSpec().


Member Function Documentation

String com::cosylab::acs::maci::ComponentSpec::getCode (  )  [inline]

Returns the code.

Returns:
String

References code.

Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation().

String com::cosylab::acs::maci::ComponentSpec::getContainer (  )  [inline]

Returns the container.

Returns:
String

References container.

Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation().

String com::cosylab::acs::maci::ComponentSpec::getName (  )  [inline]

Returns the CURL.

Returns:
java.net.URI Returns the name.
String

References name.

Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation().

String com::cosylab::acs::maci::ComponentSpec::getType (  )  [inline]

Returns the type.

Returns:
String

References type.

Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation().

void com::cosylab::acs::maci::ComponentSpec::parseComponentSpec ( String  componentSpec  )  throws IllegalArgumentException [inline, private]

Creates an instance of ComponentInfo from stringified ComponentSpec. Format:

 		name + "|" + type + "|" + code + "|" + containerName
 

Empty fields are allowed.

Parameters:
componentSpec stringified ComponentSpec
Exceptions:
BadParametersException 

References code, container, name, and type.

Referenced by ComponentSpec().

void com::cosylab::acs::maci::ComponentSpec::setCode ( String  code  )  [inline]

Sets the code.

Parameters:
code The component's code.
void com::cosylab::acs::maci::ComponentSpec::setContainer ( String  container  )  [inline]

Sets the container.

Parameters:
container The container to set
void com::cosylab::acs::maci::ComponentSpec::setName ( String  name  )  [inline]

Sets the CURL.

Parameters:
curl The CURL to set. Sets the name.
name The name to set
void com::cosylab::acs::maci::ComponentSpec::setType ( String  type  )  [inline]

Sets the type.

Parameters:
type The type to set
String com::cosylab::acs::maci::ComponentSpec::toString (  )  [inline]

Returns a single-line rendition of this instance into text.

Returns:
internal state of this instance

References code, container, name, and type.


Member Data Documentation

The code of the component. Code is a identifying component's executable code (library/class name).

Referenced by getCode(), parseComponentSpec(), and toString().

Any ComponentSpec string.

Name of the container which hosts the component.

Referenced by getContainer(), parseComponentSpec(), and toString().

CURL of the component.

Referenced by getName(), parseComponentSpec(), and toString().

The type of the component.

Referenced by getType(), parseComponentSpec(), and toString().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2