radtools.services.researchindex_load
Class AdvancedResearchIndexLoadLinux

java.lang.Object
  extended by rcf.core.framework.component.DynamicComponent.Abstract
      extended by radtools.services.AbstractRADService
          extended by radtools.services.linux.AbstractLinuxHostedRADService
              extended by radtools.services.researchindex_load.AdvancedResearchIndexLoadLinux
All Implemented Interfaces:
ConfigWriter, HostedRADService, LinuxHostedRADService, RADService, DynamicBound, DynamicComponent, ReflectedBindable<DynamicComponent>, ReflectedComponent, rcf.core.util.accessor.GUIAccessible

@Revision(value="$Revision: 1.3 $",
          date="$Date: 2006/12/16 05:18:21 $",
          tag="$Name:  $")
public class AdvancedResearchIndexLoadLinux
extends AbstractLinuxHostedRADService
implements ConfigWriter

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.3 $
Author:
Greg Gibeling

Nested Class Summary
protected  class AdvancedResearchIndexLoadLinux.State
          TODO: Javadoc
 
Nested classes/interfaces inherited from class radtools.services.AbstractRADService
AbstractRADService.AbstractRADServiceState, AbstractRADService.RefreshTask, AbstractRADService.StateProxy, AbstractRADService.UpdateTask
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicComponent
DynamicComponent.Abstract, DynamicComponent.Default
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicBound
DynamicBound.GUIType
 
Field Summary
protected  int actions
          TODO: Javadoc
protected  int depth
          TODO: Javadoc
protected  boolean enableAJAX
          TODO: Javadoc
protected  int errors
          TODO: Javadoc
protected  int iterationBreak
          TODO: Javadoc
protected  int iterations
          TODO: Javadoc
protected  String logFile
          TODO: Javadoc
protected  int logLevel
          TODO: Javadoc
protected  int maxThreads
          TODO: Javadoc
protected  int minThreads
          TODO: Javadoc
protected  int requestBreak
          TODO: Javadoc
protected  int stepThreads
          TODO: Javadoc
protected  int threads
          TODO: Javadoc
protected  double totalTime
          TODO: Javadoc
protected  String url
          TODO: Javadoc
 
Fields inherited from class radtools.services.AbstractRADService
composition, dependency, management, proxy, state, window
 
Fields inherited from class rcf.core.framework.component.DynamicComponent.Abstract
component, operations, properties
 
Constructor Summary
AdvancedResearchIndexLoadLinux(LinuxSystem _host, RADService _composition)
          TODO: Javadoc
 
Method Summary
 boolean generate(OutputStream _out, String separator)
          TODO: Javadoc
 boolean isConcrete()
          Determine if this RADService is a concrete service, or simply an arbitrary abstraction built for management purposes.
 DynamicProperty<RADService.State> radServiceState()
          Returns the dynamic property object for the state of this service.
 String toString()
           
 
Methods inherited from class radtools.services.linux.AbstractLinuxHostedRADService
host
 
Methods inherited from class radtools.services.AbstractRADService
check, communication, composition, dependency, icon, management, radTools, refresh, update, window
 
Methods inherited from class rcf.core.framework.component.DynamicComponent.Abstract
bind, component, gui, interfaces, isInstance, o, operations, popupMenu, properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface radtools.services.RADService
communication, composition, dependency, management, refresh, update, window
 
Methods inherited from interface rcf.core.framework.component.DynamicComponent
component, operations, properties
 
Methods inherited from interface rcf.core.framework.component.DynamicBound
gui
 
Methods inherited from interface rcf.core.util.accessor.GUIAccessible
icon, popupMenu
 
Methods inherited from interface rcf.core.framework.component.ReflectedComponent
interfaces, isInstance
 
Methods inherited from interface rcf.core.framework.component.ReflectedBindable
bind
 

Field Detail

url

@StaticProperty(value="ResearchIndexLoad.URL")
protected String url
TODO: Javadoc


logFile

@StaticProperty(value="ResearchIndexLoad.LogFile")
protected String logFile
TODO: Javadoc


logLevel

@StaticProperty(value="ResearchIndexLoad.LogLevel")
protected int logLevel
TODO: Javadoc


minThreads

@StaticProperty(value="AdvancedResearchIndexLoad.MinThreads")
protected int minThreads
TODO: Javadoc


stepThreads

@StaticProperty(value="AdvancedResearchIndexLoad.StepThreads")
protected int stepThreads
TODO: Javadoc


maxThreads

@StaticProperty(value="AdvancedResearchIndexLoad.MaxThreads")
protected int maxThreads
TODO: Javadoc


threads

@StaticProperty(value="ResearchIndexLoad.Threads",
                use=Output)
protected int threads
TODO: Javadoc


iterations

@StaticProperty(value="ResearchIndexLoad.Iterations")
protected int iterations
TODO: Javadoc


depth

@StaticProperty(value="ResearchIndexLoad.Depth")
protected int depth
TODO: Javadoc


iterationBreak

@StaticProperty(value="ResearchIndexLoad.IterationBreak")
protected int iterationBreak
TODO: Javadoc


requestBreak

@StaticProperty(value="ResearchIndexLoad.RequestBreak")
protected int requestBreak
TODO: Javadoc


enableAJAX

@StaticProperty(value="ResearchIndexLoad.EnableAJAX")
protected boolean enableAJAX
TODO: Javadoc


actions

@StaticProperty(value="ResearchIndexLoad.Actions",
                use=Output)
protected int actions
TODO: Javadoc


totalTime

@StaticProperty(value="ResearchIndexLoad.TotalTime",
                use=Output)
protected double totalTime
TODO: Javadoc


errors

@StaticProperty(value="ResearchIndexLoad.Errors",
                use=Output)
protected int errors
TODO: Javadoc

Constructor Detail

AdvancedResearchIndexLoadLinux

public AdvancedResearchIndexLoadLinux(LinuxSystem _host,
                                      RADService _composition)
TODO: Javadoc

Parameters:
_host -
_composition -
Method Detail

generate

public boolean generate(OutputStream _out,
                        String separator)
Description copied from interface: ConfigWriter
TODO: Javadoc

Specified by:
generate in interface ConfigWriter
Parameters:
_out - The output stream to write the configuration to.
separator - The line separator to use. Must be a parameter since the file may be destined for a machine other than the one it is being written on.
Returns:

isConcrete

public boolean isConcrete()
Description copied from interface: RADService
Determine if this RADService is a concrete service, or simply an arbitrary abstraction built for management purposes.

Specified by:
isConcrete in interface RADService
Returns:
true if this object represents a concrete service. false if this object represents an arbitrary abstraction, and does not correspond to a real service.

radServiceState

public DynamicProperty<RADService.State> radServiceState()
Description copied from interface: RADService
Returns the dynamic property object for the state of this service. The dynamic property can then be used to query the actual state, or to set it. There are few restrictions on state, except that it must be RADService.State.Unknown when RADService.management().parent().get().radServiceState().get() != RADService.State.Running.

Note that the ImmutableSingletonInterface.get() and SingletonInterface#set() methods on the dynamic property refer to the offline state of this service. The RADService.refresh() and RADService.update(boolean, RADService.State) methods can be used to synchronize this state with the state of the actual service. SingletonInterface#set() will schedule a call to RADService.update(boolean, RADService.State) so that the service state will be updated in the future.

Specified by:
radServiceState in interface RADService
Returns:
The dynamic property which represents the offline state of this service.

toString

public String toString()
Overrides:
toString in class Object