org.rhq.core.pc.content
Class ScheduledContentDiscoveryInfo

java.lang.Object
  extended by org.rhq.core.pc.content.ScheduledContentDiscoveryInfo
All Implemented Interfaces:
Comparable<ScheduledContentDiscoveryInfo>

public class ScheduledContentDiscoveryInfo
extends Object
implements Comparable<ScheduledContentDiscoveryInfo>

Describes one instance of a content discovery for a particular resource and a particular package type.

Author:
Jason Dobies

Constructor Summary
ScheduledContentDiscoveryInfo(int resourceId, org.rhq.core.domain.content.PackageType packageType)
          Creates a new set of data to drive a content discovery.
 
Method Summary
 int compareTo(ScheduledContentDiscoveryInfo other)
           
 long getInterval()
           
 long getLastDiscovery()
           
 long getNextDiscovery()
           
 org.rhq.core.domain.content.PackageType getPackageType()
           
 int getResourceId()
           
 void setLastDiscovery(long lastDiscovery)
           
 void setNextDiscovery(long nextDiscovery)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScheduledContentDiscoveryInfo

public ScheduledContentDiscoveryInfo(int resourceId,
                                     org.rhq.core.domain.content.PackageType packageType)
Creates a new set of data to drive a content discovery.

Parameters:
resourceId - resource against which to discover; must be a valid resource in the inventory
packageType - type of content being discovered; cannot be null
Method Detail

getResourceId

public int getResourceId()

getPackageType

public org.rhq.core.domain.content.PackageType getPackageType()

getInterval

public long getInterval()

getNextDiscovery

public long getNextDiscovery()

setNextDiscovery

public void setNextDiscovery(long nextDiscovery)

getLastDiscovery

public long getLastDiscovery()

setLastDiscovery

public void setLastDiscovery(long lastDiscovery)

compareTo

public int compareTo(ScheduledContentDiscoveryInfo other)
Specified by:
compareTo in interface Comparable<ScheduledContentDiscoveryInfo>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.