com.projectdarkstar.tools.dtc.data
Class ServerAppConfigDTO

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.data.AbstractDTO
      extended by com.projectdarkstar.tools.dtc.data.ServerAppConfigDTO
All Implemented Interfaces:
Serializable

public class ServerAppConfigDTO
extends AbstractDTO

Represents a runtime configuration for a ServerAppDTO

See Also:
Serialized Form

Constructor Summary
ServerAppConfigDTO(Long id, Long versionNumber, String name, String additionalCommandLine)
           
 
Method Summary
 boolean equals(Object o)
           
 String getAdditionalCommandLine()
          Returns a string to be appended to the runtime command line used to start the server application.
 Long getId()
          Returns the id of the entity in persistent storage
 String getName()
           
 List<PropertyDTO> getProperties()
          Returns a list of arguments in the form of PropertyDTO objects to be passed to the server during run time.
 ServerAppDTO getServerApp()
          Returns the parent ServerAppDTO which this configuration is associated with.
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
protected  void setAdditionalCommandLine(String additionalCommandLine)
           
 void setId(Long id)
           
protected  void setName(String name)
           
protected  void setProperties(List<PropertyDTO> properties)
           
protected  void setServerApp(ServerAppDTO serverApp)
           
 void updateName(String name)
           
 void validate()
          Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.
 
Methods inherited from class com.projectdarkstar.tools.dtc.data.AbstractDTO
checkBlank, checkNull, getFullyPopulated, getUpdatedAttributes, updateAttribute, valueToValidate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAppConfigDTO

public ServerAppConfigDTO(Long id,
                          Long versionNumber,
                          String name,
                          String additionalCommandLine)
Method Detail

getId

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

Specified by:
getId in class AbstractDTO
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

getName

public String getName()

setName

protected void setName(String name)

updateName

public void updateName(String name)
                throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getAdditionalCommandLine

public String getAdditionalCommandLine()
Returns a string to be appended to the runtime command line used to start the server application. This may be used to do things such as modify JVM parameters.

Returns:
string to append to the command line

setAdditionalCommandLine

protected void setAdditionalCommandLine(String additionalCommandLine)

getServerApp

public ServerAppDTO getServerApp()
Returns the parent ServerAppDTO which this configuration is associated with.

Returns:
parent ServerAppDTO for this configuration

setServerApp

protected void setServerApp(ServerAppDTO serverApp)

getProperties

public List<PropertyDTO> getProperties()
Returns a list of arguments in the form of PropertyDTO objects to be passed to the server during run time.

Returns:
list of arguments

setProperties

protected void setProperties(List<PropertyDTO> properties)

validate

public void validate()
              throws DTCInvalidDataException
Description copied from class: AbstractDTO
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.

Specified by:
validate in class AbstractDTO
Throws:
DTCInvalidDataException

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.