All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brooklyn.entity.messaging.jms.JMSDestinationImpl Maven / Gradle / Ivy

There is a newer version: 0.7.0-M1
Show newest version
package brooklyn.entity.messaging.jms;

import brooklyn.entity.basic.AbstractEntity;

import com.google.common.base.Preconditions;

public abstract class JMSDestinationImpl extends AbstractEntity implements JMSDestination {
    public JMSDestinationImpl() {
    }

    @Override
    public void onManagementStarting() {
        super.onManagementStarting();
        Preconditions.checkNotNull(getName(), "Name must be specified");
    }

    @Override
    public String getName() {
        return getDisplayName();
    }
    
    protected abstract void connectSensors();

    protected abstract void disconnectSensors();

    public abstract void delete();

    public void destroy() {
        disconnectSensors();
        delete();
        super.destroy();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy