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
protected ManagedSequencingService()
           
  ManagedSequencingService(SequencingService sequencingService)
          Creates a JBoss managed object for the specified sequencing service.
 
Method Summary
 int getJobActivity()
           
 long getNodesSequencedCount()
          The number of nodes that have been sequenced.
 long getNodesSkippedCount()
          The number of nodes that have been skipped.
 int getQueuedJobCount()
           
 long getStartTime()
          Obtains the time the counting of nodes being sequenced and skipped began.
 Object listQueuedJobs()
          Obtains a current list of queued sequencing jobs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedSequencingService

protected ManagedSequencingService()

ManagedSequencingService

public ManagedSequencingService(SequencingService sequencingService)
Creates a JBoss managed object for the specified sequencing service.

Parameters:
sequencingService - the sequencing service being managed (never null)
Method Detail

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)


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