org.andromda.core.configuration
Class Server

java.lang.Object
  extended by org.andromda.core.configuration.Server
All Implemented Interfaces:
java.io.Serializable

public class Server
extends java.lang.Object
implements java.io.Serializable

Represents the configuration for the AndroMDA server.

Author:
Chad Brandon
See Also:
Serialized Form

Constructor Summary
Server()
           
 
Method Summary
 java.lang.String getHost()
          gets the host the server should be run on.
 int getLoadInterval()
          Gets the interval at which model(s) are loaded (if required).
 int getMaximumFailedLoadAttempts()
          Gets the maximum number of failed model load attempts that can occur before we fail.
 int getPort()
          The port the server should be run on.
 void setHost(java.lang.String host)
          Sets the host the server should be run on.
 void setLoadInterval(java.lang.String loadInterval)
          Sets the interval at which model(s) should be loaded (if an initial load or Load is required).
 void setMaximumFailedLoadAttempts(java.lang.String maximumFailedLoadAttempts)
          Sets the maximum number of failed model load attempts that can occur before we fail.
 void setPort(java.lang.String port)
          The port the server should be run on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

getPort

public int getPort()
The port the server should be run on.

Returns:
Returns the port.

setPort

public void setPort(java.lang.String port)
The port the server should be run on.

Parameters:
port - The port to set.

getHost

public java.lang.String getHost()
gets the host the server should be run on.

Returns:
Returns the host.

setHost

public void setHost(java.lang.String host)
Sets the host the server should be run on.

Parameters:
host - The host to set.

getLoadInterval

public int getLoadInterval()
Gets the interval at which model(s) are loaded (if required).

Returns:
Returns the model Load interval

setLoadInterval

public void setLoadInterval(java.lang.String loadInterval)
Sets the interval at which model(s) should be loaded (if an initial load or Load is required).

Parameters:
loadInterval - The loadInterval to set.

getMaximumFailedLoadAttempts

public int getMaximumFailedLoadAttempts()
Gets the maximum number of failed model load attempts that can occur before we fail.

Returns:
Returns the maximumFailedLoadAttempts.

setMaximumFailedLoadAttempts

public void setMaximumFailedLoadAttempts(java.lang.String maximumFailedLoadAttempts)
Sets the maximum number of failed model load attempts that can occur before we fail.

Parameters:
maximumFailedLoadAttempts - The maximumFailedLoadAttempts to set.


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.