Package xal.app.launcher
Class HostConfiguration
- java.lang.Object
-
- xal.app.launcher.HostConfiguration
-
- All Implemented Interfaces:
xal.tools.data.DataListener
public class HostConfiguration extends Object implements xal.tools.data.DataListener
host configuration
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATA_LABELthe data adaptor label used for reading and writing this instanceprotected List<HostSetting>HOST_SETTINGShost settings
-
Constructor Summary
Constructors Constructor Description HostConfiguration()Empty Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdataLabel()dataLabel() provides the name used to identify the class in an external data source.List<String>getCommands()get the commandsList<String>getCommands(String host, List<String> executable)generate a host command based on a local executable expression by substituting the host for %h and the executable for %eList<HostSetting>getEnabledHosts()Get the hosts which are enabledList<HostSetting>getHostSettings()Get the list of host settingsbooleanisHostRequired()determine if a host is required for a commandvoidpreConfigure()preconfigure when initializing without a document filevoidrefreshEnabledHosts()Refresh the list of enabled hostsvoidsetCommands(List<String> commands)set the commandsvoidupdate(xal.tools.data.DataAdaptor adaptor)Instructs the receiver to update its data based on the given adaptor.voidwrite(xal.tools.data.DataAdaptor adaptor)Instructs the receiver to write its data to the adaptor for external storage.
-
-
-
Field Detail
-
DATA_LABEL
public static final String DATA_LABEL
the data adaptor label used for reading and writing this instance- See Also:
- Constant Field Values
-
HOST_SETTINGS
protected final List<HostSetting> HOST_SETTINGS
host settings
-
-
Method Detail
-
isHostRequired
public boolean isHostRequired()
determine if a host is required for a command
-
getCommands
public List<String> getCommands(String host, List<String> executable)
generate a host command based on a local executable expression by substituting the host for %h and the executable for %e
-
getHostSettings
public List<HostSetting> getHostSettings()
Get the list of host settings- Returns:
- host settings
-
getEnabledHosts
public List<HostSetting> getEnabledHosts()
Get the hosts which are enabled- Returns:
- list of enabled hosts
-
refreshEnabledHosts
public void refreshEnabledHosts()
Refresh the list of enabled hosts
-
preConfigure
public void preConfigure()
preconfigure when initializing without a document file
-
dataLabel
public String dataLabel()
dataLabel() provides the name used to identify the class in an external data source.- Specified by:
dataLabelin interfacexal.tools.data.DataListener- Returns:
- The tag for this data node.
-
update
public void update(xal.tools.data.DataAdaptor adaptor)
Instructs the receiver to update its data based on the given adaptor.- Specified by:
updatein interfacexal.tools.data.DataListener- Parameters:
adaptor- The data adaptor corresponding to this object's data node.
-
write
public void write(xal.tools.data.DataAdaptor adaptor)
Instructs the receiver to write its data to the adaptor for external storage.- Specified by:
writein interfacexal.tools.data.DataListener- Parameters:
adaptor- The data adaptor corresponding to this object's data node.
-
-