|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.objectweb.dsrg.sofa.deployment.DeploymentDockImpl
public class DeploymentDockImpl
The main Deployment Dock implementation
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
DeploymentDockImpl(java.lang.String name,
java.lang.String rmiHost,
java.lang.String rmiPort)
The constructor |
Method Summary | |
---|---|
void |
addConnectorUnitITs(java.lang.String dpName,
java.lang.String dpVersion,
java.lang.String componentInstanceName)
Adds the instantiation templates for the given component to the local DockConnectorManager |
java.util.List<Capability> |
getCapabilities()
Returns a list of capabilities of the dock. |
Capability |
getCapability(java.lang.String name)
Returns a capability with the given name. |
DeploymentDockRegistry |
getDeploymentDockRegistry()
Gets a reference to the DDR object this Deployment Dock is registered in |
java.util.List<ComponentHandle> |
getRunningApplications()
Gets the names of all applications running in this Deployment Dock |
java.util.List<ComponentHandle> |
getRunningComponents()
Gets the names of all components running in this Deployment Dock |
ComponentHandle |
instantiateComponent(java.lang.String dpName,
java.lang.String dpVersion,
java.lang.String componentName,
java.lang.String componentInstanceName,
ComponentHandle parent,
java.util.LinkedList<org.objectweb.dsrg.sofa.deployment.ConnectorUnitBindable> cuListCurrent,
long appID)
Instantiates a component with a given name in the given Deployment Plan |
java.lang.Object |
instantiateDynamicComponent(java.lang.String factoryInstanceName,
int dynamicInstanceIndex,
java.lang.String interfaceName,
java.lang.String dynamicID,
long appID)
Instantiates a dynamic component from a factory with a given name |
boolean |
isAlive()
Checks if this Deployment Dock is running |
ComponentHandle |
launchApplication(java.lang.String dpName,
java.lang.String dpVersion)
Launches an application specified by the name and version of a Deployment Plan |
ComponentHandle |
lookup(java.lang.String name)
Gets a reference to a component with a given name |
void |
notifyDeploymentFailed(java.lang.String deploymentPlanID)
Removes all components with the given deployment plan ID from the table |
void |
notifyDeploymentSuccessfull(java.lang.String deploymentPlanID)
Mark all components with the given deployment plan ID as deployed |
void |
shutdownApplication(java.lang.String componentID)
Shuts down the application identified by the component instance ID. |
void |
shutdownApplication(java.lang.String appName,
java.lang.String appVersion)
Deprecated. |
void |
startComponent(ComponentHandle component)
Starts a component on this dock |
void |
stopComponent(ComponentHandle component,
boolean remove)
Stops component on this dock |
boolean |
unregister()
Unregisters this deployment dock from deployment dock registry. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeploymentDockImpl(java.lang.String name, java.lang.String rmiHost, java.lang.String rmiPort) throws java.rmi.RemoteException, SOFAException
name
- Name of the Deployment DockrmiHost
- Address of the machine where a Deployment Dock Registry is runningrmiPort
- Port on which the Deployment Dock Registry is running
RemoteException,
- SOFAException
java.rmi.RemoteException
SOFAException
Method Detail |
---|
public boolean unregister() throws java.rmi.RemoteException
unregister
in interface DeploymentDockRegistryClient
java.rmi.RemoteException
public ComponentHandle launchApplication(java.lang.String dpName, java.lang.String dpVersion) throws java.rmi.RemoteException, DeploymentErrorException
launchApplication
in interface DeploymentDock
dpName
- Name of the Deployment Plan to start withdpVersion
- The version of the Deployment Plan
RemoteException,
- DeploymentErrorException
java.rmi.RemoteException
DeploymentErrorException
public ComponentHandle instantiateComponent(java.lang.String dpName, java.lang.String dpVersion, java.lang.String componentName, java.lang.String componentInstanceName, ComponentHandle parent, java.util.LinkedList<org.objectweb.dsrg.sofa.deployment.ConnectorUnitBindable> cuListCurrent, long appID) throws java.rmi.RemoteException, DeploymentErrorException
instantiateComponent
in interface DeploymentDock
dpName
- Name of the Deployment Plan to start with.dpVersion
- The version of the Deployment Plan.componentName
- Name of the component to instantiate.componentInstanceName
- The hierarchical name of the instance of the given component.parent
- Reference to parent component (may be null if the component is top-level).cuListCurrent
- List of ConnectorUnitBindables that should be initialized on this componentappID
- application ID
RemoteException,
- IncorrectDeploymentRequestException
java.rmi.RemoteException
DeploymentErrorException
public java.lang.Object instantiateDynamicComponent(java.lang.String factoryInstanceName, int dynamicInstanceIndex, java.lang.String interfaceName, java.lang.String dynamicID, long appID) throws java.rmi.RemoteException, DeploymentErrorException
instantiateDynamicComponent
in interface DeploymentDock
factoryInstanceName
- The hierarchical name of the factory of the given componentdynamicInstanceIndex
- Index of the dynamic instance in above mentioned factory's listinterfaceName
- The name of the interface that should be returneddynamicID
- ID of the newly created componentappID
- application ID
java.rmi.RemoteException
- DeploymentErrorException
DeploymentErrorException
public ComponentHandle lookup(java.lang.String name) throws java.rmi.RemoteException
lookup
in interface DeploymentDock
name
- Name of the component to get reference to.
java.rmi.RemoteException
public void startComponent(ComponentHandle component) throws java.rmi.RemoteException
startComponent
in interface DeploymentDock
component
- The handle of the component to start
java.rmi.RemoteException
public void stopComponent(ComponentHandle component, boolean remove) throws java.rmi.RemoteException
stopComponent
in interface DeploymentDock
component
- The handle of the component to stopremove
- True if this component should be removed from this dock as well
java.rmi.RemoteException
@Deprecated public void shutdownApplication(java.lang.String appName, java.lang.String appVersion) throws java.rmi.RemoteException, DockNotFoundException, DeploymentErrorException
shutdownApplication
in interface DeploymentDock
appName
- The name of the application to shutdownappVersion
- The version of the application to shutdown
RemoteException,
- DockNotFoundException
, DeploymentErrorException
java.rmi.RemoteException
DockNotFoundException
DeploymentErrorException
public void shutdownApplication(java.lang.String componentID) throws java.rmi.RemoteException, DockNotFoundException, DeploymentErrorException
shutdownApplication
in interface DeploymentDock
componentID
- component instance ID
java.rmi.RemoteException
- remote exception
DockNotFoundException
DeploymentErrorException
public void notifyDeploymentSuccessfull(java.lang.String deploymentPlanID) throws java.rmi.RemoteException
notifyDeploymentSuccessfull
in interface DeploymentDock
deploymentPlanID
- The ID of the deployment plan that succeeded
java.rmi.RemoteException
public void notifyDeploymentFailed(java.lang.String deploymentPlanID) throws java.rmi.RemoteException
notifyDeploymentFailed
in interface DeploymentDock
deploymentPlanID
- The ID of the deployment plan that failed
java.rmi.RemoteException
public java.util.List<ComponentHandle> getRunningApplications() throws java.rmi.RemoteException
getRunningApplications
in interface DeploymentDock
java.rmi.RemoteException
public java.util.List<ComponentHandle> getRunningComponents() throws java.rmi.RemoteException
getRunningComponents
in interface DeploymentDock
java.rmi.RemoteException
public boolean isAlive() throws java.rmi.RemoteException
isAlive
in interface DeploymentDockRegistryClient
java.rmi.RemoteException
public DeploymentDockRegistry getDeploymentDockRegistry()
public void addConnectorUnitITs(java.lang.String dpName, java.lang.String dpVersion, java.lang.String componentInstanceName) throws java.rmi.RemoteException, DeploymentErrorException
addConnectorUnitITs
in interface DeploymentDock
dpName
- Name of the Deployment Plan to searchdpVersion
- The version of the Deployment PlancomponentInstanceName
- The hierarchical name of the instance of the given component
RemoteException,
- IncorrectDeploymentRequestException
, DeploymentErrorException
java.rmi.RemoteException
DeploymentErrorException
public java.util.List<Capability> getCapabilities() throws java.rmi.RemoteException
getCapabilities
in interface DeploymentDock
java.rmi.RemoteException
public Capability getCapability(java.lang.String name) throws java.rmi.RemoteException, java.lang.IllegalArgumentException
getCapability
in interface DeploymentDock
name
- name of the capability
java.rmi.RemoteException
java.lang.IllegalArgumentException
- non existing name of a capability
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |