@@ -16,12 +16,12 @@
 
 package com.yahoo.athenz.common.server.msd;
 
-import com.yahoo.athenz.msd.Workload;
+import com.yahoo.athenz.msd.DynamicWorkload;
 import com.yahoo.athenz.msd.WorkloadOptions;
+import com.yahoo.athenz.msd.Workloads;
 
 import java.io.Closeable;
 import java.util.ArrayList;
-import java.util.List;
 
 /**
  * Storage interface for storing MicroSegmentation Daemon data
/*
 * Copyright The Athenz Authors
 *
 * 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.yahoo.athenz.common.server.msd;

import com.yahoo.athenz.msd.Workload;
import com.yahoo.athenz.msd.WorkloadOptions;

import java.io.Closeable;
import java.util.ArrayList;
import java.util.List;

/**
 * Storage interface for storing MicroSegmentation Daemon data
 */
public interface MsdStoreConnection extends Closeable {

    /**
     * putWorkload stores the Wordload value into the underlying storage that can be an RDMS or NoSQL
     * @param workload workload to be stored in the underlying storage
     * @param options workload options to be passed to the api
     */
    default public void putWorkLoad(Workload workload, WorkloadOptions options) {
    };

    /**
     * getWorkloadsBySvc looks up all workloads for the requested service in the MSD storage
     * @param domain of the service to look up
     * @param service name of the service to look up
     * @return a List of Workload
     */
    default public List<Workload> getWorkloadsBySvc(String domain, String service) {
        return new ArrayList<>();
    }

    /**
     * getWorkloadsByIp looks up all workloads for the requested ip in the MSD Storage
     * @param ip to lookup
     * @return a List of Workload
     */
    default public List<Workload> getWorkloadsByIp(String ip) {
        return new ArrayList<>();
    }

    /**
     * Close the connection to the msd store
     */
    default public void close() {
    }
}

shouldn't we set the static list also to empty list since the rdl has it as mandatory?