com.neeve.server.config
Class SrvConfigDescriptor.HeartbeatTracing

java.lang.Object
  extended by com.neeve.server.config.SrvConfigDescriptor.HeartbeatTracing
Enclosing class:
SrvConfigDescriptor

public static final class SrvConfigDescriptor.HeartbeatTracing
extends Object

Configures heartbeat tracing for a server.


Constructor Summary
SrvConfigDescriptor.HeartbeatTracing()
           
 
Method Summary
 boolean isEnabled()
          Gets whether hearbeat tracing is enabled.
 boolean isTraceAdminClientStats()
          Controls whether connected admin client stats are traced.
 boolean isTraceAppStats()
          Controls whether app (engine) stats are traced.
 boolean isTracePoolStats()
          Controls whether pool stats are traced.
 boolean isTraceSysStats()
          Controls whether sys stats are traced.
 boolean isTraceThreadStats()
          Controls whether thread stats are traced.
 boolean isTraceUserStats()
          Controls whether user stats are traced.
 void load(Properties props, boolean shortForm)
          Loads the heartbeat config from the provided properties and removes the loaded values
 void save(Properties props, boolean shortForm)
          Saves the heartbeat config into an config repo property set.
 void setEnabled(boolean enabled)
           
 void setTraceAdminClientStats(boolean enabled)
          Controls connected admin client stats are traced.
 void setTraceAppStats(boolean enabled)
          Controls whether app (engine) stats are traced.
 void setTracePoolStats(boolean enabled)
          Controls whether pool stats are traced.
 void setTraceSysStats(boolean enabled)
          Controls whether sys stats are traced.
 void setTraceThreadStats(boolean enabled)
          Controls whether thread stats are traced.
 void setTraceUserStats(boolean enabled)
          Controls whether user app stats are traced.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrvConfigDescriptor.HeartbeatTracing

public SrvConfigDescriptor.HeartbeatTracing()
Method Detail

isEnabled

public final boolean isEnabled()
Gets whether hearbeat tracing is enabled.

Returns:
True if hearbeat tracing is enabled.

setEnabled

public final void setEnabled(boolean enabled)

isTraceAdminClientStats

public final boolean isTraceAdminClientStats()
Controls whether connected admin client stats are traced.

Returns:
Whether connected admin client stats are traced.

setTraceAdminClientStats

public final void setTraceAdminClientStats(boolean enabled)
Controls connected admin client stats are traced.

Parameters:
enabled - Whether connected admin client stats are traced.

isTraceAppStats

public final boolean isTraceAppStats()
Controls whether app (engine) stats are traced.

Returns:
Whether app (engine) stats are traced.

setTraceAppStats

public final void setTraceAppStats(boolean enabled)
Controls whether app (engine) stats are traced.

Parameters:
enabled - Whether app (engine) stats are traced.

isTracePoolStats

public final boolean isTracePoolStats()
Controls whether pool stats are traced.

Returns:
Whether pool stats are traced.

setTracePoolStats

public final void setTracePoolStats(boolean enabled)
Controls whether pool stats are traced.

Parameters:
enabled - Whether pool stats are traced.

isTraceSysStats

public final boolean isTraceSysStats()
Controls whether sys stats are traced.

Returns:
Whether sys stats are traced.

setTraceSysStats

public final void setTraceSysStats(boolean enabled)
Controls whether sys stats are traced.

Parameters:
enabled - Whether sys stats are traced.

isTraceThreadStats

public final boolean isTraceThreadStats()
Controls whether thread stats are traced.

Returns:
Whether thread stats are traced.

setTraceThreadStats

public final void setTraceThreadStats(boolean enabled)
Controls whether thread stats are traced.

Parameters:
enabled - Whether thread stats are traced.

isTraceUserStats

public final boolean isTraceUserStats()
Controls whether user stats are traced.

Returns:
Whether user stats are traced.

setTraceUserStats

public final void setTraceUserStats(boolean enabled)
Controls whether user app stats are traced.

Parameters:
enabled - Whether user stats are traced.

save

public void save(Properties props,
                 boolean shortForm)
Saves the heartbeat config into an config repo property set.

Parameters:
props - the props into which to save.
shortForm - If props should not include the 'nv.server.' prefix.

load

public void load(Properties props,
                 boolean shortForm)
Loads the heartbeat config from the provided properties and removes the loaded values

Parameters:
props - The properties from which to load.
shortForm - If props should not include the 'nv.server.' prefix.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.