---
name: "FusionInventory::Agent::Target"
section: "3pm"
platform: "linux"
package: "fusioninventory-agent"
version: "2.2.3-8"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/FusionInventory::Agent::Target"
---

# FusionInventory::Agent::Target(3pm)

Abstract target

## NAME

FusionInventory::Agent::Target - Abstract target

## DESCRIPTION

This is an abstract class for execution targets.

## METHODS

### new(%params)

The constructor. The following parameters are allowed, as keys of the `%params` hash:

- *logger*

  the logger object to use

- *maxDelay*

  the maximum delay before contacting the target, in seconds  (default: 3600)

- *basevardir*

  the base directory of the storage area (mandatory)

### *setShared()*

Ensure the target can be shared among threads

### *getNextRunDate()*

Get nextRunDate attribute.

### setNextRunDate($nextRunDate)

Set next execution date.

### *resetNextRunDate()*

Set next execution date to a random value.

### getMaxDelay($maxDelay)

Get maxDelay attribute.

### setMaxDelay($maxDelay)

Set maxDelay attribute.

### *getStorage()*

Return the storage object for this target.

### *getDescription()*

Return a string description of the target.

### *getStatus()*

Return a string status for the target.
