![JAR search and dependency download from the Maven repository](/logo.png)
nyla.solutions.global.patterns.command.remote.partitioning.RemoteCommasServer Maven / Gradle / Ivy
package nyla.solutions.global.patterns.command.remote.partitioning;
import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Map;
import nyla.solutions.global.data.Envelope;
import nyla.solutions.global.exception.RequiredException;
import nyla.solutions.global.net.rmi.RMI;
import nyla.solutions.global.patterns.command.Command;
import nyla.solutions.global.patterns.command.MacroCommand;
import nyla.solutions.global.patterns.command.commas.CommasConstants;
import nyla.solutions.global.patterns.command.commas.CommasServiceFactory;
import nyla.solutions.global.patterns.command.remote.RemoteCommand;
import nyla.solutions.global.util.Debugger;
import nyla.solutions.global.util.Text;
/**
*
* RMI Server wrapper for execute COMMANDS using the COMMAS framework.
*
* This can be execute stand alone.
*
* Example:
*
* java -Xms512 -Xmx3gb nyla.solutions.global.patterns.command.remote.partitioning.RemoteCommasServer wpp commasRegistry localhost 27001 solutions.office.msoffice.excel.patterns.ExcelFileDirDbLoaderCommand.execute
*
* @author Gregory Green
*
*/
public class RemoteCommasServer implements RemoteCommand>
{
/**
* serialVersionUID = 5429390116183075302L
*/
private static final long serialVersionUID = 5429390116183075302L;
/**
* Execute a Command based on Envelope HEADER value "cmd"
* @see nyla.solutions.global.patterns.command.remote.RemoteCommand#execute(java.io.Serializable)
*/
public Serializable execute(Envelope env)
throws java.rmi.RemoteException
{
try
{
Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy