COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.mgmt.annotations
Annotation Type ManagedResource


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ManagedResource

Annotation used to indicate a class to be exposed as a manageable resource.


Optional Element Summary
 boolean advertise
          If true, indicates that the resource should support advertisement, and that the initial advertisementConsumer should be honored.
 java.lang.String advertisementConsumer
          A text string used by the management host to identify the endpoint of an initial advertisement.
 java.lang.String autowireName
          A name used to supply a target for AutoWire-annotated fields in other managed components.
 java.lang.String description
          A text description of the resource.
 java.lang.String namespace
          The namespace of the resource.
 java.lang.String persistent
          The desired persistence model for the resource.
 

description

public abstract java.lang.String description
A text description of the resource. This value will be used as the default description when the resource is introspected.

Default:
""

namespace

public abstract java.lang.String namespace
The namespace of the resource. This namespace will be used for all operations and properties exposed by this resource (unless overridden) that are not part of some other capability

Default:
""

persistent

public abstract java.lang.String persistent
The desired persistence model for the resource.

Default:
"never"

advertise

public abstract boolean advertise
If true, indicates that the resource should support advertisement, and that the initial advertisementConsumer should be honored.

Default:
false

advertisementConsumer

public abstract java.lang.String advertisementConsumer
A text string used by the management host to identify the endpoint of an initial advertisement. This attribute is only used if advertise is true.

Default:
""

autowireName

public abstract java.lang.String autowireName
A name used to supply a target for AutoWire-annotated fields in other managed components.

Default:
""

COSMOS ${releaseVersion} data-collection Project
Public API Specification