org.ow2.easybeans.mavenplugin.server
Class RemoteEasyBeansPluginServer

java.lang.Object
  extended by org.ow2.easybeans.mavenplugin.server.AbstractEasyBeansPluginServer
      extended by org.ow2.easybeans.mavenplugin.server.RemoteEasyBeansPluginServer
All Implemented Interfaces:
org.ow2.util.maven.plugin.deployment.api.IPluginServer

public class RemoteEasyBeansPluginServer
extends AbstractEasyBeansPluginServer

Implementation of IRemotePluginServer interface. Provide access of remote EasyBeans instance and operations.

Author:
Vincent Michaud, Alexandre Deneux

Constructor Summary
RemoteEasyBeansPluginServer(java.lang.String hostname, int numPort)
          Get an instance of launched remote EasyBeans server.
 
Method Summary
 void deployArchive(java.lang.String filename)
          Deploy an EJB or an EAR.
 java.lang.String getVersion()
          Get the version of EasyBeans server.
 boolean isRemoteInstance()
          Determine if the server is a remote instance.
 void undeployArchive(java.lang.String filename)
          Undeploy a deployed EJB or EAR.
 
Methods inherited from class org.ow2.easybeans.mavenplugin.server.AbstractEasyBeansPluginServer
getLog, getServer, isStopped, localServerFound, removeArchiveIfDeployed, setServer, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteEasyBeansPluginServer

public RemoteEasyBeansPluginServer(java.lang.String hostname,
                                   int numPort)
                            throws java.io.IOException
Get an instance of launched remote EasyBeans server.

Parameters:
hostname - Domaine name used to contact EasyBeans.
numPort - Port number used to contact EasyBeans.
Throws:
java.io.IOException - When not any EasyBeans server instance found
Method Detail

deployArchive

public void deployArchive(java.lang.String filename)
Deploy an EJB or an EAR.

Specified by:
deployArchive in interface org.ow2.util.maven.plugin.deployment.api.IPluginServer
Overrides:
deployArchive in class AbstractEasyBeansPluginServer
Parameters:
filename - Name of deployable file

undeployArchive

public void undeployArchive(java.lang.String filename)
Undeploy a deployed EJB or EAR.

Specified by:
undeployArchive in interface org.ow2.util.maven.plugin.deployment.api.IPluginServer
Overrides:
undeployArchive in class AbstractEasyBeansPluginServer
Parameters:
filename - A deployable deployed on EasyBeans

isRemoteInstance

public boolean isRemoteInstance()
Determine if the server is a remote instance.

Returns:
True if server is a remote instance.

getVersion

public java.lang.String getVersion()
Get the version of EasyBeans server.

Specified by:
getVersion in interface org.ow2.util.maven.plugin.deployment.api.IPluginServer
Specified by:
getVersion in class AbstractEasyBeansPluginServer
Returns:
The version


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.