public abstract class InventoryCollector extends java.lang.Object implements CollectorIf
EXECUTION_MODE_ALL, EXECUTION_MODE_COLLECTOR, EXECUTION_MODE_JOBMGR, FREQUENCY_15MIN, FREQUENCY_30MIN, FREQUENCY_DAILY, FREQUENCY_FOUR_HOURLY, FREQUENCY_HOURLY, FREQUENCY_MIN, FREQUENCY_MONTHLY, FREQUENCY_NON_RECURRING, FREQUENCY_THOUROUGLY, FREQUENCY_TWENTY_FOUR_HOURLY, FREQUENCY_WEEKLY
Constructor and Description |
---|
InventoryCollector() |
InventoryCollector(NodeID nodeId) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(ItemIf item) |
void |
afterInventoryDone() |
void |
beforeInventoryStart() |
protected ItemResponse |
collectItem(ItemIf item,
NodeConnectorIf connector) |
protected NodeConnectorIf |
connect() |
void |
disconnect(NodeConnectorIf connector) |
void |
execute(long lastExecuted) |
void |
execute(long last,
TaskParameters[] parameters) |
void |
execute(NodeConnectorIf connector,
long lastExecuted) |
ItemResponse |
getBindObject(NodeConnectorIf connector,
long lastExecuted) |
java.util.List<ItemIf> |
getCollectibleItems() |
ConnectionProperties |
getConnectionProperties() |
abstract long |
getFrequenceInMinutes()
Returns the number of minutes to wait in between collection executions.
|
long |
getFrequency()
The frequency this task will be executed in milliseconds.
|
protected NodeID |
getNodeId() |
int |
getTaskExecutionMode()
While implementaing this method, choose the return value very carefully.
|
void |
handleConnectionFailure(NodeID nodeId2,
ConnectionStatus status) |
boolean |
isValid() |
void |
setConnectionProperties(ConnectionProperties connProperties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnector, getItemListener, getItemParser, getObjectBinder
getFrequencyHoursLov, getFrequencyMinsLov, getTaskName
public InventoryCollector(NodeID nodeId)
public InventoryCollector()
public long getFrequency()
ScheduleTask
getFrequency
in interface ScheduleTask
public abstract long getFrequenceInMinutes()
public void addItem(ItemIf item)
public java.util.List<ItemIf> getCollectibleItems()
public boolean isValid()
isValid
in interface ScheduleTask
public int getTaskExecutionMode()
ScheduleTask
getTaskExecutionMode
in interface ScheduleTask
protected ItemResponse collectItem(ItemIf item, NodeConnectorIf connector) throws java.lang.Exception
java.lang.Exception
public void execute(long last, TaskParameters[] parameters) throws java.lang.Exception
execute
in interface ParameterizedScheduleTask
java.lang.Exception
public void execute(long lastExecuted) throws java.lang.Exception
execute
in interface ScheduleTask
java.lang.Exception
public void afterInventoryDone()
public void execute(NodeConnectorIf connector, long lastExecuted) throws java.lang.Exception
java.lang.Exception
public ItemResponse getBindObject(NodeConnectorIf connector, long lastExecuted) throws java.lang.Exception
java.lang.Exception
protected NodeConnectorIf connect() throws java.lang.Exception
java.lang.Exception
public void handleConnectionFailure(NodeID nodeId2, ConnectionStatus status)
public void beforeInventoryStart()
public void disconnect(NodeConnectorIf connector) throws java.lang.Exception
java.lang.Exception
public ConnectionProperties getConnectionProperties()
public void setConnectionProperties(ConnectionProperties connProperties)
protected NodeID getNodeId()