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

io.antmedia.cluster.IClusterStore Maven / Gradle / Ivy

Go to download

Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.

The newest version!
package io.antmedia.cluster;

import java.util.List;

import io.antmedia.AppSettings;

public interface IClusterStore 
{
	public List getClusterNodes(int offset, int size);

	public ClusterNode getClusterNode(String nodeId);
	
	public ClusterNode getClusterNodeFromIP(String ipAddress);
	
	public long getNodeCount();
		
	public boolean deleteNode(String nodeId);
	
	public boolean addOrUpdate(ClusterNode node);
	
	public boolean saveSettings(AppSettings settings);

	public AppSettings getSettings(String appName);
		
	public List getAllSettings();
	
	/**
	 * Delete the app settings in the database
	 * @param appName: Name of the app to be deleted
	 * @return number of deleted records. It should be 1. 
	 */
	public long deleteAppSettings(String appName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy