org.tango.server.dynamic.command
Class ProxyCommand
java.lang.Object
org.tango.server.dynamic.command.ProxyCommand
- All Implemented Interfaces:
- ICommandBehavior
public final class ProxyCommand
- extends java.lang.Object
- implements ICommandBehavior
A Tango dynamic command, that creates a proxy to an existing command The input and output types are the same as those
of the proxy command
- Author:
- hardion
Constructor Summary |
ProxyCommand(java.lang.String commandName,
java.lang.String commandProxyName)
Ctr |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyCommand
public ProxyCommand(java.lang.String commandName,
java.lang.String commandProxyName)
throws fr.esrf.Tango.DevFailed
- Ctr
- Parameters:
commandName
- The name of the created commandcommandProxyName
- The name of the proxy command with syntax like deviceName/commandName. i.e. tmp/test/device1/Start
- Throws:
fr.esrf.Tango.DevFailed
getStateMachine
public StateMachineBehavior getStateMachine()
- Specified by:
getStateMachine
in interface ICommandBehavior
- Returns:
- the command state machine
getConfiguration
public CommandConfiguration getConfiguration()
- Specified by:
getConfiguration
in interface ICommandBehavior
- Returns:
- the command configuration
execute
public java.lang.Object execute(java.lang.Object arg)
throws fr.esrf.Tango.DevFailed
- Execute the command on the proxy
- Specified by:
execute
in interface ICommandBehavior
- Parameters:
arg
- The command input parameter
- Returns:
- The result returned by the command
- Throws:
fr.esrf.Tango.DevFailed
Copyright © 2012-2015. All Rights Reserved.