pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.model
Class StatisticsServer

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.component.statistics.model.StatisticsServer
All Implemented Interfaces:
java.io.Serializable

@Entity
public class StatisticsServer
extends AbstractBasicEntity

represents a server to record statistics of.

Version:
$Revision: 1620 $
Author:
Thomas Weber, Daniel Dietz
See Also:
Serialized Form

Constructor Summary
protected StatisticsServer()
          Deprecated. 
  StatisticsServer(java.lang.String hn)
          creates a new StatisticsServer for the given hostName.
  StatisticsServer(java.lang.String hn, java.lang.String sp)
          creates a new StatisticsServer for the given host name and the given path separator.
 
Method Summary
 java.lang.String getHostName()
          returns the hostName.
 TimeSpan getKeepPIRecordsFor()
          Returns the TimeSpan, specifying how long the related PIRecords are to be kept after the aggregation has been run.
 java.lang.String getPathSeparator()
          returns the path separator.
 java.lang.String getStatisticsRoleName()
          Returns the default Role name for the statistics-component.
 boolean isAllowProxy()
          returns whether a proxy (e.g. a JSP or PHP script on the statistics server) may be used to transmit the page impression.
 void setAllowProxy(boolean ap)
          sets whether a proxy (e.g. a JSP or PHP script on the statistics server) may be used to transmit the page impression.
 void setHostName(java.lang.String hn)
          sets the hostName.
 void setKeepPIRecordsFor(TimeSpan span)
          Sets the TimeSpan, specifying how long the related PIRecords are to be kept after the aggregation has been run.
 void setPathSeparator(java.lang.String sp)
          sets the path separator.
 java.lang.String toString()
           
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatisticsServer

@Deprecated
protected StatisticsServer()
Deprecated. 

used by HibernateTM and JAXB.


StatisticsServer

public StatisticsServer(java.lang.String hn)
creates a new StatisticsServer for the given hostName.

Parameters:
hn - the hostName
Throws:
java.lang.NullPointerException - if the hostName is null
java.lang.IllegalArgumentException - if the hostName is an empty string or contains whitespace-characters only

StatisticsServer

public StatisticsServer(java.lang.String hn,
                        java.lang.String sp)
creates a new StatisticsServer for the given host name and the given path separator.

Parameters:
hn - the hostName
sp - the pathSeparator
Throws:
java.lang.NullPointerException -
  • if the hostName is null
  • if the pathSeparator is null
java.lang.IllegalArgumentException -
  • if the hostName is an empty string or contains whitespace-characters only
  • if the pathSeparator is an empty string or contains whitespace-characters only
Method Detail

getHostName

public final java.lang.String getHostName()
returns the hostName.

Returns:
the hostName

setHostName

public final void setHostName(java.lang.String hn)
sets the hostName.

Parameters:
hn - the hostName to set
Throws:
java.lang.NullPointerException - if the hostName is null
java.lang.IllegalArgumentException - if the hostName is an empty string or contains whitespace-characters only

getPathSeparator

public final java.lang.String getPathSeparator()
returns the path separator.

Returns:
the pathSeparator

setPathSeparator

public final void setPathSeparator(java.lang.String sp)
sets the path separator.

Parameters:
sp - the pathSeparator to set
Throws:
java.lang.NullPointerException - if the pathSeparator is null
java.lang.IllegalArgumentException - if the pathSeparator is an empty string or contains whitespace-characters only

isAllowProxy

public final boolean isAllowProxy()
returns whether a proxy (e.g. a JSP or PHP script on the statistics server) may be used to transmit the page impression.

Returns:
true, if proxies are allowed. Otherwise false.

setAllowProxy

public final void setAllowProxy(boolean ap)
sets whether a proxy (e.g. a JSP or PHP script on the statistics server) may be used to transmit the page impression.

Parameters:
ap - true to allow proxies, otherwise false

getStatisticsRoleName

public final java.lang.String getStatisticsRoleName()
Returns the default Role name for the statistics-component.

Returns:
the default role name

getKeepPIRecordsFor

public final TimeSpan getKeepPIRecordsFor()
Returns the TimeSpan, specifying how long the related PIRecords are to be kept after the aggregation has been run.

Returns:
a TimeSpan, or null if no TimeSpan is set

setKeepPIRecordsFor

public final void setKeepPIRecordsFor(TimeSpan span)
Sets the TimeSpan, specifying how long the related PIRecords are to be kept after the aggregation has been run.

Parameters:
span - the TimeSpan to set

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation of the PathTreeAggregation