nyla.solutions.commas.remote.partitioning.RemoteCommasServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.commas Show documentation
Show all versions of nyla.solutions.commas Show documentation
Command pattern implementation for building services.
The newest version!
package nyla.solutions.commas.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.commas.Command;
import nyla.solutions.commas.CommasConstants;
import nyla.solutions.commas.CommasServiceFactory;
import nyla.solutions.commas.MacroCommand;
import nyla.solutions.commas.remote.RemoteCommand;
import nyla.solutions.core.data.Envelope;
import nyla.solutions.core.exception.RequiredException;
import nyla.solutions.core.net.rmi.RMI;
import nyla.solutions.core.util.Debugger;
import nyla.solutions.core.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.commas.remote.RemoteCommand#execute(java.io.Serializable)
*/
public Serializable execute(Envelope env)
throws java.rmi.RemoteException
{
try
{
Map