package com.mycompany.client;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("serviceNodes")
public interface ServiceNodesService 
	extends RemoteService {
	
	String SERVICE_HASDATA			= "117";
	String SERVICE_SERVERINFO 		= "100";
	String SERVICE_USERAGENT  		= "101";
	String SERVICE_TRANSACTIONID	= "102"; 
	String SERVICE_PORTALUSERID		= "103";
	String SERVICE_PORTALUSERNAME	= "104";
	String SERVICE_INSTITUTIONCODE	= "105";
	String SERVICE_ENVIRONMENT		= "106";
	String SERVICE_SUCCESS			= "107";
	String NODE_NODEID				= "108";
	String NODE_NAME				= "109";
	String NODE_ADDRESS				= "110";
	String NODE_PORT				= "111";
	String NODE_XPOS				= "112";
	String NODE_YPOS				= "113";
	String NODE_XLEN				= "114";
	String NODE_YLEN				= "115";
	String NODE_TYPE				= "116";
	String NODE_CONTAINER			= "118";
			
    List<ServiceNodeRecord> fetch ();
    
    ServiceNodeRecord add(ServiceNodeRecord record);

    ServiceNodeRecord update(ServiceNodeRecord record);
    
    void remove(ServiceNodeRecord record);

}
