Class Events
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand<Events>
-
- com.oracle.bedrock.runtime.docker.commands.Events
-
- All Implemented Interfaces:
com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
public class Events extends AbstractDockerCommand<Events>
A representation of the Docker events command.Instances of
Eventsare immutable, methods that add options and configuration to thisEventscommand return a new instance of aEventscommand with the modifications applied.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Eventsall()Create aEventscommand to view Docker events.Eventsfilter(Object... filters)Filter the event output (equates to the --filter argument).static EventsfromContainer(Object containerName)Create aEventscommand to view the events from a specific container.Eventssince(Object timestamp)Show events since timestamp (equates to the --since argument).Eventsuntil(Object timestamp)Show events until timestamp (equates to the --until argument).EventswithCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisAbstractDockerCommandwith the addition of the specified command argumentsArguments.EventswithoutCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisAbstractDockerCommandwithout the specified command argumentsArguments.-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand
getCommandArguments, getImplementationClass, getTimeout, onLaunch, onLaunched, onLaunching, timeoutAfter, timeoutAfter
-
-
-
-
Method Detail
-
filter
public Events filter(Object... filters)
Filter the event output (equates to the --filter argument).- Parameters:
filters- values that resolve to one or more valid filter arguments- Returns:
- a new
Eventsinstance that is the same as this instance with the --filter option applied
-
since
public Events since(Object timestamp)
Show events since timestamp (equates to the --since argument).- Parameters:
timestamp- a value that resolves to the timestamp to use to determine the events to show- Returns:
- a new
Eventsinstance that is the same as this instance with the --since option applied
-
until
public Events until(Object timestamp)
Show events until timestamp (equates to the --until argument).- Parameters:
timestamp- a value that resolves to the timestamp to use to determine the events to show- Returns:
- a new
Eventsinstance that is the same as this instance with the --until option applied
-
fromContainer
public static Events fromContainer(Object containerName)
Create aEventscommand to view the events from a specific container.- Parameters:
containerName- the container to view the events for- Returns:
- a
Eventscommand to view the events from a specific container
-
all
public static Events all()
Create aEventscommand to view Docker events.- Returns:
- a
Eventscommand to view Docker events
-
withCommandArguments
public Events withCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:AbstractDockerCommandObtain a copy of thisAbstractDockerCommandwith the addition of the specified command argumentsArguments.Command arguments in Docker come after the command name on the command line, e.g. docker [options...] COMMAND_NAME [args...] Parts of the Docker documentation that refer to these parameters as both arguments and options. In our case we refer to them as arguments and the are applied after the command name on the command line.
- Specified by:
withCommandArgumentsin classAbstractDockerCommand<Events>- Parameters:
args- the additionalArguments- Returns:
- a copy of this
AbstractDockerCommandwith the addition of the specifiedArguments
-
withoutCommandArguments
public Events withoutCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:AbstractDockerCommandObtain a copy of thisAbstractDockerCommandwithout the specified command argumentsArguments.Command arguments in Docker come after the command name on the command line, e.g. docker [options...] COMMAND_NAME [args...] Parts of the Docker documentation that refer to these parameters as both arguments and options. In our case we refer to them as arguments and the are applied after the command name on the command line.
- Specified by:
withoutCommandArgumentsin classAbstractDockerCommand<Events>- Parameters:
args- the additionalArguments- Returns:
- a copy of this
AbstractDockerCommandwithout the specifiedArguments
-
-