org.openmdx.base.application.deploy
Class RemoteDeployment

java.lang.Object
  extended by org.openmdx.base.application.deploy.RemoteDeployment
All Implemented Interfaces:
Deployment

public class RemoteDeployment
extends Object
implements Deployment

Deployment in a separate virtual machine


Constructor Summary
  RemoteDeployment(Map properties, PrintStream detailLog, PrintStream exceptionLog)
          Constructor
protected RemoteDeployment(Map properties, String connectors, String applications, PrintStream detailLog, PrintStream exceptionLog)
          Constructor
  RemoteDeployment(String[] connectors, String[] applications, PrintStream detailLog, PrintStream exceptionLog)
          Constructor
  RemoteDeployment(String connector, String application, PrintStream detailLog, PrintStream exceptionLog)
          Constructor
  RemoteDeployment(URL[] connectors, URL[] applications, PrintStream detailLog, PrintStream exceptionLog)
          Constructor
 
Method Summary
 Context context()
          Create a new initial context referring to this deployment
 void destroy()
          Tells that the deployment is no longer used.
 ServiceException getStatus()
          Retrieve the Exeption in case of a failure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteDeployment

protected RemoteDeployment(Map properties,
                           String connectors,
                           String applications,
                           PrintStream detailLog,
                           PrintStream exceptionLog)
Constructor

Parameters:
properties - the properties are never null and may include for example
  • org.openmdx.deploy.connector.urls
  • org.openmdx.deploy.application.urls
  • org.openmdx.rmi.registry.port
  • org.openmdx.rmi.naming.service
connectors - connectors overrides the corresponding properties entry unless it is null
applications - applications overrides the corresponding properties entry unless it is null
detailLog - the detail log may be null
exceptionLog - the exception log may be null

RemoteDeployment

public RemoteDeployment(Map properties,
                        PrintStream detailLog,
                        PrintStream exceptionLog)
Constructor

Parameters:
properties - the properties are never null and may include for example
  • org.openmdx.deploy.connector.urls
  • org.openmdx.deploy.application.urls
  • org.openmdx.rmi.registry.port
  • org.openmdx.rmi.naming.service
detailLog - the detail log may be null
exceptionLog - the exception log may be null

RemoteDeployment

public RemoteDeployment(String connector,
                        String application,
                        PrintStream detailLog,
                        PrintStream exceptionLog)
Constructor

Parameters:
connector - may be null or empty
application - may be null or empty
detailLog - the detail log may be null
exceptionLog - the exception log may be null

RemoteDeployment

public RemoteDeployment(String[] connectors,
                        String[] applications,
                        PrintStream detailLog,
                        PrintStream exceptionLog)
Constructor

Parameters:
connectors - connectors may be null or empty
applications - applications may be null or empty
detailLog - the detail log may be null
exceptionLog - the exception log may be null

RemoteDeployment

public RemoteDeployment(URL[] connectors,
                        URL[] applications,
                        PrintStream detailLog,
                        PrintStream exceptionLog)
Constructor

Parameters:
connectors - connectors may be null or empty
applications - applications may be null or empty
detailLog - the detail log may be null
exceptionLog - the exception log may be null
Method Detail

destroy

public void destroy()
Description copied from interface: Deployment
Tells that the deployment is no longer used. An implementation may

Specified by:
destroy in interface Deployment

getStatus

public ServiceException getStatus()
Retrieve the Exeption in case of a failure

Returns:
the exception or null if no exception has occured yet

context

public Context context()
                throws ServiceException
Description copied from interface: Deployment
Create a new initial context referring to this deployment

Specified by:
context in interface Deployment
Returns:
this deployment's initial context; or null if deployment was successfull but not registered with a naming service
Throws:
ServiceException - in case of failure


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.