com.projectdarkstar.tools.dtc.domain
Class ServerApp

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.ServerApp
All Implemented Interfaces:
Serializable

public class ServerApp
extends Object
implements Serializable

Represents a server application that can be run as the central process in a DTC test.

See Also:
Serialized Form

Constructor Summary
ServerApp()
           
ServerApp(String name, String description, PkgLibrary requiredPkg)
           
 
Method Summary
 boolean equals(Object o)
           
 List<ServerAppConfig> getConfigs()
          Returns a list of server application configurations that can be used to run this server application.
 String getDescription()
           
 Long getId()
          Returns the id of the entity in persistent storage
 String getName()
           
 PkgLibrary getRequiredPkg()
          Returns the package library required to run this server application.
 List<ServerAppTag> getTags()
          Returns a list of ServerAppTag objects that are used to categorize server apps into groups.
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
 void setConfigs(List<ServerAppConfig> configs)
           
 void setDescription(String description)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setRequiredPkg(PkgLibrary requiredPkg)
           
 void setTags(List<ServerAppTag> tags)
           
protected  void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerApp

public ServerApp()

ServerApp

public ServerApp(String name,
                 String description,
                 PkgLibrary requiredPkg)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Returns:
id of the entity

setId

public void setId(Long id)

getVersionNumber

public Long getVersionNumber()
Returns the version number in the data store that this entity represents. Whenever an update to an object is pushed to the persistent data store, the version number is incremented.

Returns:
version number of the entity

setVersionNumber

protected void setVersionNumber(Long versionNumber)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getTags

public List<ServerAppTag> getTags()
Returns a list of ServerAppTag objects that are used to categorize server apps into groups.

Returns:
list of tags for this server app

setTags

public void setTags(List<ServerAppTag> tags)

getConfigs

public List<ServerAppConfig> getConfigs()
Returns a list of server application configurations that can be used to run this server application.

Returns:
list of runtime configurations for this server app

setConfigs

public void setConfigs(List<ServerAppConfig> configs)

getRequiredPkg

public PkgLibrary getRequiredPkg()
Returns the package library required to run this server application. It is assumed that this library is a zip archive.

Returns:
the package library required to run this server application.

setRequiredPkg

public void setRequiredPkg(PkgLibrary requiredPkg)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.