// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/triggers/Trigger.java
// @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
// public interface Trigger {
//     public void validate() throws IllegalArgumentException;
//     public com.netflix.fenzo.triggers.Trigger<Context> createFenzoTrigger(Context context,
//                                                                           Class<? extends Action1<Context>> action);
// }


import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.netflix.scheduledactions.triggers.Trigger;
import java.util.*;
/*
 * Copyright 2015 Netflix, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.netflix.scheduledactions;



@JsonDeserialize(builder = ActionInstance.ActionInstanceBuilder.class)
public class ActionInstance implements Comparable<ActionInstance> {

    public static final String DEFAULT_GROUP = "DEFAULT_GROUP";
    public static final Class<? extends ExecutionListener> DEFAULT_EXECUTION_LISTENER_CLASS = NoOpExecutionListener.class;
    public static final long DEFAULT_EXECUTION_TIMEOUT = -1L;
    public static final ConcurrentExecutionStrategy DEFAULT_EXECUTION_STRATEGY = ConcurrentExecutionStrategy.REJECT;

    private long creationTime;
    private String id;
    private String name;
    private String group;
    private Class<? extends Action> action;
    private Class<? extends ExecutionListener> executionListener;
    private Map<String, String> parameters;
// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/triggers/Trigger.java
// @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
// public interface Trigger {
//     public void validate() throws IllegalArgumentException;
//     public com.netflix.fenzo.triggers.Trigger<Context> createFenzoTrigger(Context context,
//                                                                           Class<? extends Action1<Context>> action);
// }


// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/ActionInstance.java
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.netflix.scheduledactions.triggers.Trigger;
import java.util.*;

/*
 * Copyright 2015 Netflix, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.netflix.scheduledactions;



@JsonDeserialize(builder = ActionInstance.ActionInstanceBuilder.class)
public class ActionInstance implements Comparable<ActionInstance> {

    public static final String DEFAULT_GROUP = "DEFAULT_GROUP";
    public static final Class<? extends ExecutionListener> DEFAULT_EXECUTION_LISTENER_CLASS = NoOpExecutionListener.class;
    public static final long DEFAULT_EXECUTION_TIMEOUT = -1L;
    public static final ConcurrentExecutionStrategy DEFAULT_EXECUTION_STRATEGY = ConcurrentExecutionStrategy.REJECT;

    private long creationTime;
    private String id;
    private String name;
    private String group;
    private Class<? extends Action> action;
    private Class<? extends ExecutionListener> executionListener;
    private Map<String, String> parameters;
    private Trigger trigger;