public class Event extends Object implements Serializable
Constructor and Description |
---|
Event()
Default constructor for the deserialization.
|
Event(String status,
String id,
String from,
Long time)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction() |
EventActor |
getActor() |
String |
getFrom()
Get source image of the container.
|
String |
getId()
Get ID of docker container.
|
Node |
getNode()
Returns the node when working against docker swarm
|
String |
getStatus()
Status of docker image or container.
|
Long |
getTime()
Get the event time.
|
Long |
getTimeNano() |
EventType |
getType() |
Event |
withAction(String action) |
Event |
withEventActor(EventActor actor) |
Event |
withFrom(String from) |
Event |
withId(String id) |
Event |
withNode(Node node) |
Event |
withStatus(String status) |
Event |
withTime(Long time) |
Event |
withTimenano(Long timenano) |
Event |
withType(EventType type) |
public Event()
public Event(String status, String id, String from, Long time)
id
- Container IDstatus
- Status string. List of statuses is available in Docker API v.1.16from
- Image, from which the container has been createdtime
- Event time The time is specified in milliseconds since January 1, 1970, 00:00:00 GMTpublic String getStatus()
public String getId()
public String getFrom()
public Long getTime()
@CheckForNull public Long getTimeNano()
timeNano
public Node getNode()
@CheckForNull public EventType getType()
@CheckForNull public String getAction()
action
@CheckForNull public EventActor getActor()
actor
public Event withEventActor(EventActor actor)
actor
Copyright © 2021. All rights reserved.