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

net.sf.hajdbc.state.distributed.SyncActiveDbsCommand Maven / Gradle / Ivy

There is a newer version: 3.6.61
Show newest version
package net.sf.hajdbc.state.distributed;

import net.sf.hajdbc.Database;
import net.sf.hajdbc.distributed.Command;
import net.sf.hajdbc.state.DatabasesEvent;

import java.util.HashSet;

public class SyncActiveDbsCommand> implements Command>
{
	private final DatabasesEvent event;

	public SyncActiveDbsCommand(DatabasesEvent event)
	{
		this.event = event;
	}



	@Override
	public Boolean execute(StateCommandContext context) {
		if(event!=null&&event.getSource()!=null&&event.getSource().size()>0){
			context.getDatabaseCluster().checkActiveDatabases(new HashSet<>(event.getSource()));
		}
		return true;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy