// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/exceptions/ActionInstanceNotFoundException.java
// public class ActionInstanceNotFoundException extends Exception {
// 
//     public ActionInstanceNotFoundException(String message) {
//         super(message);
//     }
// 
//     public ActionInstanceNotFoundException(String message, Throwable throwable) {
//         super(message, throwable);
//     }
// }
// 
// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/persistence/ExecutionDao.java
// public interface ExecutionDao {
// 
//     public String createExecution(String actionInstanceId, Execution execution);
//     public void updateExecution(Execution execution);
//     public Execution getExecution(String executionId);
//     public void deleteExecution(String actionInstanceId, Execution execution);
//     public List<Execution> getExecutions(String actionInstanceId, int count);
//     public List<Execution> getExecutions(String actionInstanceId);
// 
// }


import com.netflix.fenzo.triggers.TriggerOperator;
import com.netflix.fenzo.triggers.exceptions.SchedulerException;
import com.netflix.scheduledactions.exceptions.ActionInstanceNotFoundException;
import com.netflix.scheduledactions.exceptions.ExecutionNotFoundException;
import com.netflix.scheduledactions.executors.LocalThreadPoolBlockingExecutor;
import com.netflix.scheduledactions.persistence.ActionInstanceDao;
import com.netflix.scheduledactions.persistence.ExecutionDao;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicBoolean;
/*
 * 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;



/**
 * Primary class that operates on {@code ActionInstance}. This class should be initialized
 * as a singleton in the application that is using this library.
 */
public class ActionsOperator {

    public static final String DEFAULT_INITIATOR = "Unknown";

    private final ActionInstanceDao actionInstanceDao;
// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/exceptions/ActionInstanceNotFoundException.java
// public class ActionInstanceNotFoundException extends Exception {
// 
//     public ActionInstanceNotFoundException(String message) {
//         super(message);
//     }
// 
//     public ActionInstanceNotFoundException(String message, Throwable throwable) {
//         super(message, throwable);
//     }
// }
// 
// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/persistence/ExecutionDao.java
// public interface ExecutionDao {
// 
//     public String createExecution(String actionInstanceId, Execution execution);
//     public void updateExecution(Execution execution);
//     public Execution getExecution(String executionId);
//     public void deleteExecution(String actionInstanceId, Execution execution);
//     public List<Execution> getExecutions(String actionInstanceId, int count);
//     public List<Execution> getExecutions(String actionInstanceId);
// 
// }


// Path: scheduled-actions-core/src/main/java/com/netflix/scheduledactions/ActionsOperator.java
import com.netflix.fenzo.triggers.TriggerOperator;
import com.netflix.fenzo.triggers.exceptions.SchedulerException;
import com.netflix.scheduledactions.exceptions.ActionInstanceNotFoundException;
import com.netflix.scheduledactions.exceptions.ExecutionNotFoundException;
import com.netflix.scheduledactions.executors.LocalThreadPoolBlockingExecutor;
import com.netflix.scheduledactions.persistence.ActionInstanceDao;
import com.netflix.scheduledactions.persistence.ExecutionDao;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicBoolean;

/*
 * 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;



/**
 * Primary class that operates on {@code ActionInstance}. This class should be initialized
 * as a singleton in the application that is using this library.
 */
public class ActionsOperator {

    public static final String DEFAULT_INITIATOR = "Unknown";

    private final ActionInstanceDao actionInstanceDao;
    private final ExecutionDao executionDao;