com.projectdarkstar.tools.dtc.domain
Class ServerAppConfig

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

public class ServerAppConfig
extends Object
implements Serializable

Represents a runtime configuration for a ServerApp

See Also:
Serialized Form

Constructor Summary
ServerAppConfig()
           
ServerAppConfig(String name, String additionalCommandLine, ServerApp serverApp)
           
 
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<Property> getProperties()
          Returns a list of arguments in the form of Property objects to be passed to the server during run time.
 ServerApp getServerApp()
          Returns the parent ServerApp which this configuration is associated with.
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
 void setAdditionalCommandLine(String additionalCommandLine)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setProperties(List<Property> properties)
           
 void setServerApp(ServerApp serverApp)
           
protected  void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAppConfig

public ServerAppConfig()

ServerAppConfig

public ServerAppConfig(String name,
                       String additionalCommandLine,
                       ServerApp serverApp)
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)

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

public void setAdditionalCommandLine(String additionalCommandLine)

getServerApp

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

Returns:
parent ServerApp for this configuration

setServerApp

public void setServerApp(ServerApp serverApp)

getProperties

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

Returns:
list of arguments

setProperties

public void setProperties(List<Property> properties)

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.