org.tango.server.export
Class TangoExporter

java.lang.Object
  extended by org.tango.server.export.TangoExporter
All Implemented Interfaces:
IExporter

public final class TangoExporter
extends java.lang.Object
implements IExporter


Constructor Summary
TangoExporter(java.lang.String hostName, java.lang.String serverName, java.lang.String pid, java.util.Map<java.lang.String,java.lang.Class<?>> tangoClasses)
           
 
Method Summary
 DeviceImpl buildDevice(java.lang.String name, DeviceClassBuilder classBuilder)
           
 void clearClass()
           
 void exportAll()
          Build all devices of all classes that are is this executable
 void exportDevices()
          Export all devices except admin device
 DeviceImpl getDevice(java.lang.String className, java.lang.String deviceName)
           
 java.util.List<DeviceClassBuilder> getDeviceClassList()
           
 java.lang.String[] getDevicesOfClass(java.lang.String tangoClass)
          Get the started devices of this server.
 void unexportAll()
           
 void unexportDevices()
          Unexport all except admin device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TangoExporter

public TangoExporter(java.lang.String hostName,
                     java.lang.String serverName,
                     java.lang.String pid,
                     java.util.Map<java.lang.String,java.lang.Class<?>> tangoClasses)
Method Detail

exportAll

public void exportAll()
               throws fr.esrf.Tango.DevFailed
Build all devices of all classes that are is this executable

Specified by:
exportAll in interface IExporter
Throws:
fr.esrf.Tango.DevFailed

exportDevices

public void exportDevices()
                   throws fr.esrf.Tango.DevFailed
Export all devices except admin device

Specified by:
exportDevices in interface IExporter
Throws:
fr.esrf.Tango.DevFailed

unexportDevices

public void unexportDevices()
                     throws fr.esrf.Tango.DevFailed
Unexport all except admin device

Specified by:
unexportDevices in interface IExporter
Throws:
fr.esrf.Tango.DevFailed

unexportAll

public void unexportAll()
                 throws fr.esrf.Tango.DevFailed
Specified by:
unexportAll in interface IExporter
Throws:
fr.esrf.Tango.DevFailed

buildDevice

public DeviceImpl buildDevice(java.lang.String name,
                              DeviceClassBuilder classBuilder)
                       throws fr.esrf.Tango.DevFailed
Specified by:
buildDevice in interface IExporter
Throws:
fr.esrf.Tango.DevFailed

getDevice

public DeviceImpl getDevice(java.lang.String className,
                            java.lang.String deviceName)
                     throws fr.esrf.Tango.DevFailed
Specified by:
getDevice in interface IExporter
Throws:
fr.esrf.Tango.DevFailed

getDevicesOfClass

public java.lang.String[] getDevicesOfClass(java.lang.String tangoClass)
                                     throws fr.esrf.Tango.DevFailed
Get the started devices of this server. WARNING: result is filled after server has been started

Parameters:
tangoClass -
Returns:
The devices
Throws:
fr.esrf.Tango.DevFailed

getDeviceClassList

public java.util.List<DeviceClassBuilder> getDeviceClassList()

clearClass

public void clearClass()


Copyright © 2012-2015. All Rights Reserved.