FileDocCategorySizeDatePackage
ResourceState.javaAPI DocGlassfish v2 API3574Fri May 04 22:35:14 BST 2007com.sun.enterprise.resource

ResourceState

public class ResourceState extends Object

Fields Summary
private boolean
enlisted
private boolean
busy
private long
timestamp
Constructors Summary
public ResourceState()

            touchTimestamp();
        
Methods Summary
public longgetTimestamp()

            return timestamp;
        
public booleanisBusy()

            return busy;
        
public booleanisEnlisted()

            return enlisted;
        
public booleanisFree()

            return !busy;
        
public booleanisUnenlisted()

            return !enlisted;
        
public voidsetBusy(boolean busy)

            this.busy = busy;
        
public voidsetEnlisted(boolean enlisted)

            this.enlisted = enlisted;
        
public java.lang.StringtoString()

            return "Enlisted :" + enlisted + " Busy :" + busy;
        
public voidtouchTimestamp()

            timestamp = System.currentTimeMillis();