/** * Copyright (c) 2016 Inria * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * - Philippe Merle <philippe.merle@inria.fr> * * Generated at Fri Sep 09 14:22:40 CEST 2016 from platform:/resource/org.occiware.clouddesigner.occi.vmware/model/vmware.occie by org.occiware.clouddesigner.occi.gen.connector */ package org.occiware.clouddesigner.occi.vmware.connector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Connector implementation for the OCCI kind: * - scheme: http://occiware.org/occi/vmware# * - term: datastore * - title: Datastores are logical containers, analogous to file systems, that hide specifics of each storage device and provide a uniform model for storing virtual machine files. Datastores can also be used for storing ISO images, virtual machine templates, and floppy images. */ public class DatastoreConnector extends org.occiware.clouddesigner.occi.vmware.impl.DatastoreImpl { /** * Initialize the logger. */ private static Logger LOGGER = LoggerFactory.getLogger(DatastoreConnector.class); /** * Constructs a datastore connector. */ DatastoreConnector() { LOGGER.debug("Constructor called on " + this); } // // OCCI CRUD callback operations. // /** * Called when this Datastore instance is completely created. */ @Override public void occiCreate() { LOGGER.debug("occiCreate() called on " + this); // TODO: Implement this callback or remove this method. } /** * Called when this Datastore instance must be retrieved. */ @Override public void occiRetrieve() { LOGGER.debug("occiRetrieve() called on " + this); // TODO: Implement this callback or remove this method. } /** * Called when this Datastore instance is completely updated. */ @Override public void occiUpdate() { LOGGER.debug("occiUpdate() called on " + this); // TODO: Implement this callback or remove this method. } /** * Called when this Datastore instance will be deleted. */ @Override public void occiDelete() { LOGGER.debug("occiDelete() called on " + this); // TODO: Implement this callback or remove this method. } // // Datastore actions. // /** * Implement OCCI action: * - scheme: http://occiware.org/occi/vmware/datastore/action# * - term: enterMaintenanceMode * - title: */ @Override public void enterMaintenanceMode() { LOGGER.debug("Action enterMaintenanceMode() called on " + this); // TODO: Implement how to enterMaintenanceMode this datastore. } }