org.modeshape.jboss.managed
Class ManagedSequencingService

java.lang.Object
  extended by org.modeshape.jboss.managed.ManagedSequencingService
All Implemented Interfaces:
ModeShapeManagedObject

@Immutable
public class ManagedSequencingService
extends Object
implements ModeShapeManagedObject

A ManagedSequencingService instance is a JBoss managed object for a sequencing service.


Constructor Summary
ManagedSequencingService()
           
ManagedSequencingService(ManagedEngine managedEngine)
          Creates a JBoss managed object for the specified sequencing service.
 
Method Summary
 ManagedEngine getEngine()
           
 int getJobActivity()
           
 long getNodesSequencedCount()
          The number of nodes that have been sequenced.
 long getNodesSkippedCount()
          The number of nodes that have been skipped.
 List<ManagedEngine.ManagedProperty> getProperties(String objectName, ManagedEngine.Component objectType)
          Obtains the properties for the passed in object.
 int getQueuedJobCount()
           
 SequencerConfig getSequencer(String sequencerName)
          Obtains the specified managed sequencer in this engine.
protected  SequencerConfig getSequencerFrom(SequencingService sequencingService, String sequencerName)
           
 Collection<ManagedSequencerConfig> getSequencers()
          The sequencers currently deployed.
 long getStartTime()
          Obtains the time the counting of nodes being sequenced and skipped began.
 Object listQueuedJobs()
          Obtains a current list of queued sequencing jobs.
 void setManagedEngine(ManagedEngine managedEngine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedSequencingService

public ManagedSequencingService()

ManagedSequencingService

public ManagedSequencingService(ManagedEngine managedEngine)
Creates a JBoss managed object for the specified sequencing service.

Parameters:
managedEngine -
Method Detail

setManagedEngine

public void setManagedEngine(ManagedEngine managedEngine)
                      throws Exception
Throws:
Exception

getEngine

public ManagedEngine getEngine()
Returns:
engine

getJobActivity

public int getJobActivity()

getNodesSequencedCount

public long getNodesSequencedCount()
The number of nodes that have been sequenced. This is a JBoss managed readonly property.

Returns:
the count of sequenced nodes

getNodesSkippedCount

public long getNodesSkippedCount()
The number of nodes that have been skipped. This is a JBoss managed readonly property.

Returns:
the count of skipped nodes

getQueuedJobCount

public int getQueuedJobCount()

getStartTime

public long getStartTime()
Obtains the time the counting of nodes being sequenced and skipped began. This is a JBoss managed readonly property.

Returns:
the time the sequencing statistics began

listQueuedJobs

public Object listQueuedJobs()
Obtains a current list of queued sequencing jobs. This is a JBoss managed operation.

Returns:
the jobs (never null)

getProperties

public List<ManagedEngine.ManagedProperty> getProperties(String objectName,
                                                         ManagedEngine.Component objectType)
Obtains the properties for the passed in object. This is a JBoss managed operation.

Parameters:
objectName -
objectType -
Returns:
an collection of managed properties (may be null)

getSequencers

public Collection<ManagedSequencerConfig> getSequencers()
The sequencers currently deployed. This is a JBoss managed readonly property.

Returns:
List of Sequencers

getSequencer

public SequencerConfig getSequencer(String sequencerName)
Obtains the specified managed sequencer in this engine.

Parameters:
sequencerName - for the sequencer to be returned
Returns:
a SequencerConfig or null if sequencer doesn't exist

getSequencerFrom

protected SequencerConfig getSequencerFrom(SequencingService sequencingService,
                                           String sequencerName)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.