com.hi3project.broccoli.bsdf.api.deployment.container.IBSDMServiceMicroContainer Maven / Gradle / Ivy
/*******************************************************************************
*
* Copyright (C) 2015 Mytech Ingenieria Aplicada
* Copyright (C) 2015 Alejandro Paz
*
* This file is part of Broccoli.
*
* Broccoli is free software: you can redistribute it and/or modify it under the
* terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Broccoli is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Broccoli. If not, see .
*
******************************************************************************/
package com.hi3project.broccoli.bsdf.api.deployment.container;
import com.hi3project.broccoli.bsdl.api.ISemanticIdentifier;
import com.hi3project.broccoli.bsdl.api.ISemanticLocator;
import com.hi3project.broccoli.bsdf.api.deployment.bd.IServicesDB;
import com.hi3project.broccoli.bsdm.impl.exceptions.ServiceExecutionException;
/**
*
* Description:
* Interface for "micro" container, that has neither broker nor service registry.
* Every service that is handle by the micro-container has to be announced in a remote
* "normal" container.
*
*
*
* Responsabilities:
*
*
* - can open and manage a connection to an external broker
* - knows the current state of that connection
* - can register a service, submitting its descriptor to the external broker
*
*
* Creation date:
* 23-01-2015
*
* Changelog:
*
* - 1 , 23-01-2015 - Initial release
*
*
*
* @version 1
*/
public interface IBSDMServiceMicroContainer
{
public void setRemoteBroker(ISemanticIdentifier remoteBrokerIdentifier)
throws ServiceExecutionException;
public void registerService(ISemanticLocator packedServiceDescriptor)
throws ServiceExecutionException;
public ISemanticLocator getWorkingLocation();
public void setWorkingLocation(ISemanticLocator location);
public IServicesDB getServicesDB();
public void start() throws ServiceExecutionException;
public void stop() throws ServiceExecutionException;
public void restart() throws ServiceExecutionException;
public boolean hasStarted();
public boolean isConnected();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy