Class EndpointStatus
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.application.v4.model.EndpointStatus
-
public class EndpointStatus extends java.lang.ObjectRepresent the operational status of a service endpoint (where the endpoint itself is identified by the container cluster id). The status of an endpoint may be assigned from the controller.- Author:
- smorgrav
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEndpointStatus.Status
-
Constructor Summary
Constructors Constructor Description EndpointStatus(EndpointStatus.Status status, java.lang.String reason, java.lang.String agent, long epoch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAgent()longgetEpoch()java.lang.StringgetReason()EndpointStatus.StatusgetStatus()
-
-
-
Constructor Detail
-
EndpointStatus
public EndpointStatus(EndpointStatus.Status status, java.lang.String reason, java.lang.String agent, long epoch)
-
-
Method Detail
-
getAgent
public java.lang.String getAgent()
- Returns:
- The agent responsible setting this status
-
getReason
public java.lang.String getReason()
- Returns:
- The reason for this status (e.g. 'incident INCXXX')
-
getStatus
public EndpointStatus.Status getStatus()
- Returns:
- The current status
-
getEpoch
public long getEpoch()
- Returns:
- The epoch for when this status became active
-
-