org.jmage.pool
Class Worker

java.lang.Object
  extended by org.jmage.pool.Worker

public class Worker
extends java.lang.Object

A Worker object is a managed resource that is distributed through a pool


Field Summary
protected  int jobCount
           
protected  java.util.Date lastReport
           
protected static org.apache.log4j.Logger log
           
protected  java.lang.Object object
           
 
Constructor Summary
Worker()
           
 
Method Summary
 void decJobCount()
           
 int getJobCount()
           
 java.util.Date getLastReport()
           
 java.lang.Object getObject()
           
 void incJobCount()
           
protected  void setJobCount(int jobCount)
           
 void setLastReport(java.util.Date lastReport)
           
 void setObject(java.lang.Object object)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log

object

protected java.lang.Object object

jobCount

protected int jobCount

lastReport

protected java.util.Date lastReport
Constructor Detail

Worker

public Worker()
Method Detail

getObject

public java.lang.Object getObject()

setObject

public void setObject(java.lang.Object object)

getJobCount

public int getJobCount()

setJobCount

protected void setJobCount(int jobCount)

incJobCount

public void incJobCount()

decJobCount

public void decJobCount()

getLastReport

public java.util.Date getLastReport()

setLastReport

public void setLastReport(java.util.Date lastReport)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2008 Sourceforge. All Rights Reserved.