code
stringlengths
73
34.1k
label
stringclasses
1 value
public int log4j_to_tango_level(Level level) { if (level.equals(Level.OFF)) { return LOGGING_OFF; } if (level.equals(Level.FATAL)) { return LOGGING_FATAL; } if (level.equals(Level.ERROR)) { return LOGGING_ERROR; } if (level.equals(Level.WARN)) { return LOGGING_WARN; } if...
java
public void set_rolling_file_threshold (Logger logger, long rft) { if (logger == null) { return; } if (rft < LOGGING_MIN_RFT) { rft = LOGGING_MIN_RFT; } else if (rft > LOGGING_MAX_RFT) { rft = LOGGING_MAX_RFT; } String prefix = LOGGING_FILE_TARGET + LOGG...
java
public void addAttribute(final IAttributeBehavior behavior) throws DevFailed { final AttributeConfiguration configuration = behavior.getConfiguration(); final String attributeName = configuration.getName(); xlogger.entry("adding dynamic attribute {}", attributeName); if (behavior instanc...
java
public void clearAttributesWithExclude(final String... exclude) throws DevFailed { final String[] toExclude = new String[exclude.length]; for (int i = 0; i < toExclude.length; i++) { toExclude[i] = exclude[i].toLowerCase(Locale.ENGLISH); } for (final String attributeName : dy...
java
public void clearAttributes() throws DevFailed { for (final AttributeImpl attributeImpl : dynamicAttributes.values()) { deviceImpl.removeAttribute(attributeImpl); } forwardedAttributes.clear(); dynamicAttributes.clear(); }
java
public List<IAttributeBehavior> getDynamicAttributes() { final List<IAttributeBehavior> result = new ArrayList<IAttributeBehavior>(); for (final AttributeImpl attributeImpl : dynamicAttributes.values()) { result.add(attributeImpl.getBehavior()); } return result; }
java
public IAttributeBehavior getAttribute(final String attributeName) { AttributeImpl attr = dynamicAttributes.get(attributeName.toLowerCase(Locale.ENGLISH)); if (attr == null) return null; else return attr.getBehavior(); }
java
public void addCommand(final ICommandBehavior behavior) throws DevFailed { final String cmdName = behavior.getConfiguration().getName(); xlogger.entry("adding dynamic command {}", cmdName); final CommandImpl commandImpl = new CommandImpl(behavior, deviceImpl.getName()); commandImpl.setSt...
java
public ICommandBehavior getCommand(final String commandName) { return dynamicCommands.get(commandName.toLowerCase(Locale.ENGLISH)).getBehavior(); }
java
public void clearCommands() throws DevFailed { for (final CommandImpl cmdImpl : dynamicCommands.values()) { deviceImpl.removeCommand(cmdImpl); } dynamicCommands.clear(); }
java
public void clearCommandsWithExclude(final String... exclude) throws DevFailed { final String[] toExclude = new String[exclude.length]; for (int i = 0; i < toExclude.length; i++) { toExclude[i] = exclude[i].toLowerCase(Locale.ENGLISH); } for (final String cmdName : dynamicCom...
java
public List<ICommandBehavior> getDynamicCommands() { final List<ICommandBehavior> result = new ArrayList<ICommandBehavior>(); for (final CommandImpl cmdImpl : dynamicCommands.values()) { result.add(cmdImpl.getBehavior()); } return result; }
java
public void write(final Object value) throws DevFailed { initDeviceAttributes(); for (final DeviceAttribute deviceAttribute : deviceAttributes) { if (deviceAttribute != null) { // may be null if read failed and throwExceptions is false InsertExtractUtils.inse...
java
public Object[] readExtract() throws DevFailed { final DeviceAttribute[] da = read(); final Object[] results = extract(da); return results; }
java
public static synchronized ITangoDB getDatabase(final String host, final String port) throws DevFailed { final ITangoDB dbase; if (useDb) { final String tangoHost = host + ":" + port; // Search if database object already created for this host and port if (databaseMap....
java
public static synchronized ITangoDB getDatabase() throws DevFailed { ITangoDB tangoDb = null; if (useDb) { final String tangoHost = TangoHostManager.getFirstTangoHost(); // Search if database object already created for this host and port if (databaseMap.containsKey(ta...
java
public static void setDbFile(final File dbFile, final String[] devices, final String className) throws DevFailed { DatabaseFactory.useDb = false; DatabaseFactory.fileDatabase = new FileTangoDB(dbFile, Arrays.copyOf(devices, devices.length), className); }
java
public static void setNoDbDevices(final String[] devices, final String className) { DatabaseFactory.useDb = false; DatabaseFactory.fileDatabase = new FileTangoDB(Arrays.copyOf(devices, devices.length), className); }
java
public static Object extract(final DeviceAttribute da) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return InsertExtractFactory.getAttributeExtractor(da.getType()).extract(da); }
java
public static Object extractRead(final DeviceAttribute da, final AttrDataFormat format) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return InsertExtractFactory.getAttributeExtractor(da.getType()).extractRead(da, format); }
java
public static Object extractWriteArray(final DeviceAttribute da, final AttrWriteType writeType, final AttrDataFormat format) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return InsertExtractFactory.getAttributeExtractor(da.getType()).extractWriteArray(da, writeTyp...
java
public static <T> T extract(final DeviceAttribute da, final Class<T> type) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return TypeConversionUtil.castToType(type, extract(da)); }
java
public static <T> T extractRead(final DeviceAttribute da, final AttrDataFormat format, final Class<T> type) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return TypeConversionUtil.castToType(type, extractRead(da, format)); }
java
public static <T> T extractWrite(final DeviceAttribute da, final AttrDataFormat format, final AttrWriteType writeType, final Class<T> type) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return TypeConversionUtil.castToType(type, extractWrite(da, writeType, format))...
java
public static DServerClass instance() { if (_instance == null) { System.err.println("DServerClass is not initialised !!!"); System.err.println("Exiting"); System.exit(-1); } return _instance; }
java
public void command_factory() { command_list.addElement(new DevRestartCmd( "DevRestart", Tango_DEV_STRING, Tango_DEV_VOID, "Device name")); command_list.addElement(new RestartServerCmd( "RestartServer", Tango_DEV_VOID, Tango_DEV_VOID)); command_list.addElement(new QueryClassCmd...
java
public void device_factory(String[] devlist) throws DevFailed { Util.out4.println("DServerClass::device_factory() arrived"); for (int i = 0;i < devlist.length;i++) { Util.out4.println("Device name : " + devlist[i]); // // Create device and add it into the device list // device_list.addElement(new...
java
public String[] getDeviceList(final String serverName, final String className) { String[] result = new String[0]; final Server server = servers.get(serverName); if (server != null) { final String[] devices = server.getDevices(className); if (devices != null) { ...
java
public void build(final Class<?> clazz, final Field field, final DeviceImpl device, final Object businessObject) throws DevFailed { xlogger.entry(); BuilderUtils.checkStatic(field); Method getter; final String stateName = field.getName(); final String getterName = Bui...
java
public AttributePropertiesImpl getAttributeProperties(final String attributeName) throws DevFailed { final AttributeImpl attr = AttributeGetterSetter.getAttribute(attributeName, device.getAttributeList()); return attr.getProperties(); }
java
public void setAttributeProperties(final String attributeName, final AttributePropertiesImpl properties) throws DevFailed { final AttributeImpl attr = AttributeGetterSetter.getAttribute(attributeName, device.getAttributeList()); attr.setProperties(properties); }
java
public void removeAttributeProperties(final String attributeName) throws DevFailed { final AttributeImpl attr = AttributeGetterSetter.getAttribute(attributeName, device.getAttributeList()); attr.removeProperties(); }
java
public boolean isPolled(final String polledObject) throws DevFailed { try { return AttributeGetterSetter.getAttribute(polledObject, device.getAttributeList()).isPolled(); } catch (final DevFailed e) { return device.getCommand(polledObject).isPolled(); } }
java
public int getPollingPeriod(final String polledObject) throws DevFailed { try { return AttributeGetterSetter.getAttribute(polledObject, device.getAttributeList()).getPollingPeriod(); } catch (final DevFailed e) { return device.getCommand(polledObject).getPollingPeriod(); ...
java
public void startPolling(final String polledObject, final int pollingPeriod) throws DevFailed { try { final AttributeImpl attr = AttributeGetterSetter.getAttribute(polledObject, device.getAttributeList()); attr.configurePolling(pollingPeriod); device.startPolling(attr); ...
java
public void pushEvent(final String attributeName, final AttributeValue value, final EventType eventType) throws DevFailed { switch (eventType) { case CHANGE_EVENT: case ARCHIVE_EVENT: case USER_EVENT: // set attribute value final At...
java
public void pushDataReadyEvent(final String attributeName, final int counter) throws DevFailed { EventManager.getInstance().pushAttributeDataReadyEvent(name, attributeName, counter); }
java
public void pushPipeEvent(final String pipeName, final PipeValue blob) throws DevFailed { // set attribute value final PipeImpl pipe = DeviceImpl.getPipe(pipeName, device.getPipeList()); try { pipe.updateValue(blob); // push the event EventManager.getInstance(...
java
public void execute() throws DevFailed { GroupCmdReplyList replies; if (isArginVoid()) { replies = group.command_inout(commandName, true); } else { replies = group.command_inout(commandName, inData, true); } if (replies.has_failed()) { // get d...
java
public void insert(final Object value) throws DevFailed { for (int i = 0; i < group.get_size(true); i++) { final int arginType = group.get_device(i + 1).command_query(commandName).in_type; InsertExtractUtils.insert(inData[i], arginType, value); } }
java
public void insert(final Object... value) throws DevFailed { if (value.length == 1) { for (int i = 0; i < group.get_size(true); i++) { final int arginType = group.get_device(i + 1).command_query(commandName).in_type; InsertExtractUtils.insert(inData[i], arginType, val...
java
public static CommandImpl getCommand(final String name, final List<CommandImpl> commandList) throws DevFailed { CommandImpl result = null; for (final CommandImpl command : commandList) { if (command.getName().equalsIgnoreCase(name)) { result = command; br...
java
public void set_default_properties(UserDefaultAttrProp prop_list) { if (prop_list.label != null) user_default_properties.addElement(new AttrProperty("label",prop_list.label)); if (prop_list.description != null) user_default_properties.addElement(new AttrProperty("description",prop_list.description)); if ...
java
public T execute(final Task<T> taskToWrap) throws DevFailed { int triesLeft = tries; do { try { return taskToWrap.call(); } catch (final DevFailed e) { triesLeft--; // Are we allowed to try again? if (triesLeft <= 0)...
java
public static void updatePollingConfigFromDB(final PolledObjectConfig config, final AttributePropertiesManager attributePropertiesManager) throws DevFailed { final String isPolledProp = attributePropertiesManager.getAttributePropertyFromDB(config.getName(), Constants.IS_POLLED); ...
java
@Override public void updateValue() throws DevFailed { xlogger.entry(getName()); // invoke on device // final Profiler profilerPeriod = new Profiler("read attribute " + name); // profilerPeriod.start("invoke"); if (!config.getWritable().equals(AttrWriteType.READ) && behavior ...
java
@Override public void updateValue(final AttributeValue inValue) throws DevFailed { xlogger.entry(getName()); // final Profiler profilerPeriod = new Profiler("read attribute " + name); // profilerPeriod.start("in"); if (inValue == null) { throw DevFailedUtils.newDevFailed(...
java
public void setProperties(final AttributePropertiesImpl properties) throws DevFailed { if (isMemorized()) { Object memorizedValue = getMemorizedValue(); if (memorizedValue != null && memorizedValue.getClass().isAssignableFrom(Number.class)) { final double memoValue = Doub...
java
private Map<String, String[]> extractArgout(final String[] result, final int startingPoint) { final Map<String, String[]> map = new CaseInsensitiveMap<String[]>(); if (result.length > 4) { // System.out.println(result[0]);// device name // System.out.println(Integer.valueOf(resul...
java
public Any execute(DeviceImpl device, Any in_any) throws DevFailed { Util.out4.println("RemoveLoggingTargetCmd::execute(): arrived"); String[] dvsa = null; try { dvsa = extract_DevVarStringArray(in_any); } catch (DevFailed df) { Util.out3.println("RemoveLoggingTargetCmd::execute() --> Wrong...
java
static String[] getProp(final Map<String, String[]> prop, final String propertyName) { String[] result = null; if (prop != null) { for (final Entry<String, String[]> entry : prop.entrySet()) { if (entry.getKey().equalsIgnoreCase(propertyName)) { result = e...
java
public static void setDevicePipePropertiesInDB(final String deviceName, final String pipeName, final Map<String, String[]> properties) throws DevFailed { LOGGER.debug("update pipe {} device properties {} in DB ", pipeName, properties.keySet()); Database...
java
public Any execute(DeviceImpl device, Any in_any) throws DevFailed { Util.out4.println("StartLoggingCmd::execute(): arrived"); Logging.instance().start_logging(); Util.out4.println("Leaving StartLoggingCmd.execute()"); return Util.return_empty_any("StartLogging"); }
java
@Init @StateMachine(endState = DeviceState.ON) public void init() throws DevFailed { xlogger.entry(); TangoCacheManager.setPollSize(pollingThreadsPoolSize); // logger.debug("init admin device with quartzThreadsPoolSize = {}", // quartzThreadsPoolSize); status = "The devic...
java
@Command(name = "DevPollStatus", inTypeDesc = DEVICE_NAME, outTypeDesc = "Device polling status") public String[] getPollStatus(final String deviceName) throws DevFailed { xlogger.entry(deviceName); String[] ret = new PollStatusCommand(deviceName, classList).call(); xlogger.exit(ret); ...
java
@Command(name = "RestartServer") public void restartServer() throws DevFailed { xlogger.entry(); tangoExporter.unexportAll(); tangoExporter.exportAll(); xlogger.exit(); }
java
@Command(name = "Kill") public void kill() throws DevFailed { xlogger.entry(); // do it in a thread to avoid throwing error to client new Thread() { @Override public void run() { logger.error("kill server"); try { t...
java
@Command(name = "AddLoggingTarget", inTypeDesc = "Str[i]=Device-name. Str[i+1]=Target-type::Target-name") public void addLoggingTarget(final String[] argin) throws DevFailed { if (argin.length % 2 != 0) { throw DevFailedUtils.newDevFailed(INPUT_ERROR, "argin must be of even size"); } ...
java
@Command(name = "RemoveLoggingTarget", inTypeDesc = "Str[i]=Device-name. Str[i+1]=Target-type::Target-name") public void removeLoggingTarget(final String[] argin) throws DevFailed { if (argin.length % 2 != 0) { throw DevFailedUtils.newDevFailed(INPUT_ERROR, "argin must be of even size"); ...
java
@Command(name = "GetLoggingLevel", inTypeDesc = "Device list", outTypeDesc = "Lg[i]=Logging Level. Str[i]=Device name.") public DevVarLongStringArray getLoggingLevel(final String[] deviceNames) { final int[] levels = new int[deviceNames.length]; for (int i = 0; i < levels.length; i++) { ...
java
@Command(name = "GetLoggingTarget", inTypeDesc = DEVICE_NAME, outTypeDesc = "Logging target list") public String[] getLoggingTarget(final String deviceName) throws DevFailed { return LoggingManager.getInstance().getLoggingTarget(deviceName); }
java
@Command(name = "SetLoggingLevel", inTypeDesc = "Lg[i]=Logging Level. Str[i]=Device name.") public void setLoggingLevel(final DevVarLongStringArray dvlsa) throws DevFailed { final int[] levels = dvlsa.lvalue; final String[] deviceNames = dvlsa.svalue; if (deviceNames.length != levels.length)...
java
@Command(name = "QueryWizardClassProperty", inTypeDesc = "Class name", outTypeDesc = "Class property list (name - description and default value)") public String[] queryClassProp(final String className) throws DevFailed { xlogger.entry(); final List<String> names = new ArrayList<String>(); fo...
java
@Command(name = "QueryWizardDevProperty", inTypeDesc = "Class name", outTypeDesc = "Device property list (name - description and default value)") public String[] queryDevProp(final String className) { xlogger.entry(); final List<String> names = new ArrayList<String>(); for (final DeviceClass...
java
private DevVarLongStringArray subcribeIDLInEventString(final String eventTypeAndIDL, final String deviceName, final String objName) throws DevFailed { // event name like "idl5_archive" or "archive" String event = eventTypeAndIDL; int idl...
java
public Any execute(DeviceImpl device, Any in_any) throws DevFailed { Util.out4.println("GetLoggingTargetCmd::execute(): arrived"); String string = null; try { string = extract_DevString(in_any); } catch (DevFailed df) { Util.out3.println("GetLoggingTargetCmd::execute() --> Wrong argument type...
java
public static synchronized void init(final boolean useDb, final String adminDeviceName) throws DevFailed { // Modified properties fo ORB usage. final Properties props = System.getProperties(); props.put("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB"); props.put("org.omg.CORBA.ORBSingleto...
java
private static void checkServerRunning(final DeviceImportInfo importInfo, final String toBeImported) throws DevFailed { XLOGGER.entry(); Device_5 devIDL5 = null; Device_4 devIDL4 = null; Device_3 devIDL3 = null; Device_2 devIDL2 = null; Device devIDL1 = null; ...
java
public static void startDetached() { orbStart = Executors.newSingleThreadExecutor(new ThreadFactory() { @Override public Thread newThread(final Runnable r) { return new Thread(r, "ORB run"); } }); orbStart.submit(new StartTask()); LOGGE...
java
private static String checkORBgiopMaxMsgSize() { /* * JacORB definition (see jacorb.properties file): * * This is NOT the maximum buffer size that can be used, but just the * largest size of buffers that will be kept and managed. This value * will be added to an inte...
java
public static void shutdown() { if (orbStart != null) { orbStart.shutdown(); } if (orb != null) { orb.shutdown(true); LOGGER.debug("ORB shutdown"); } }
java
public boolean isAllowed(final DeviceState state) { boolean isAllowed = true; if (deniedStates.contains(state)) { isAllowed = false; } return isAllowed; }
java
public void build(final Class<?> clazz, final Field field, final DeviceImpl device, final Object businessObject) throws DevFailed { xlogger.entry(); BuilderUtils.checkStatic(field); Method getter; final String stateName = field.getName(); final String getterName = Bui...
java
public static void waitForState(final DeviceProxy proxy, final DevState waitState, final long timeout) throws DevFailed, TimeoutException { waitForState(proxy, waitState, timeout, 300); }
java
public static void failIfWrongStateAfterWhileState(final DeviceProxy deviceProxy, final DevState expected, final DevState waitState, final long timeout, final long polling) throws DevFailed, TimeoutException { waitWhileState(deviceProxy, waitState, timeout, polling); if (!expected.equals(deviceProxy.state())) { ...
java
public static String getfullAttributeNameForAttribute(final String attributeName) throws DevFailed { String result; final String[] fields = attributeName.split("/"); final Database db = ApiUtil.get_db_obj(); if (attributeName.contains(DBASE_NO)) { result = attributeName; ...
java
public static String[] getDevicesForPattern(final String deviceNamePattern) throws DevFailed { String[] devices; // is p a device name or a device name pattern ? if (!deviceNamePattern.contains("*")) { // p is a pure device name devices = new String[1]; device...
java
public static String getAttributeName(final String fullname) throws DevFailed { final String s = TangoUtil.getfullAttributeNameForAttribute(fullname); return s.substring(s.lastIndexOf('/') + 1); }
java
protected boolean name_matches(String pattern) { pattern = pattern.toLowerCase().replaceAll("[*]{1}", ".*?"); return name.toLowerCase().matches(pattern) || get_fully_qualified_name().toLowerCase().matches(pattern); }
java
public void post_init(final ORBInitInfo info) { try { info.add_server_request_interceptor(ServerRequestInterceptor.getInstance()); } catch (final Exception e) { logger.error("error registering server interceptor", e); } }
java
public final static Object toPrimitiveArray(final Object array) { if (!array.getClass().isArray()) { return array; } final Class<?> clazz = OBJ_TO_PRIMITIVE.get(array.getClass().getComponentType()); return setArray(clazz, array); }
java
public final static Object toObjectArray(final Object array) { if (!array.getClass().isArray()) { return array; } final Class<?> clazz = PRIMITIVE_TO_OBJ.get(array.getClass().getComponentType()); return setArray(clazz, array); }
java
public static String[] toStringArray(final Object array) { final int length = Array.getLength(array); final String[] result = new String[length]; for (int i = 0; i < length; i++) { result[i] = Array.get(array, i).toString(); } return result; }
java
public static Object addAll(final Object array1, final Object array2) { Object joinedArray; if (array1 == null) { if (array2.getClass().isArray()) { joinedArray = array2; } else { joinedArray = Array.newInstance(array2.getClass(), 1); ...
java
public static Object from2DArrayToArray(final Object array2D) { // final Profiler profilerPeriod = new Profiler("from2DArrayToArray"); // profilerPeriod.start("from2DArrayToArray"); Object array = null; if (array2D.getClass().isArray()) { final int lengthY = Array.getLength(a...
java
public static boolean checkDimensions(final Object object, final int dimX, final int dimY) { boolean hasGoodDimensions = false; if (object != null) { if (object.getClass().isArray()) { if (Array.getLength(object) == 0 && dimX == 0) {// is a 0D Array hasGoo...
java
public static Object fromArrayTo2DArray(final Object array, final int dimX, final int dimY) throws DevFailed { Object array2D = null; // final Profiler profilerPeriod = new Profiler("fromArrayTo2DArray"); // profilerPeriod.start("fromArrayTo2DArray"); if (array.getClass().isArray()) { ...
java
public String[] getDeviceStateArray() { final String[] array = new String[deviceStateMap.size()]; int i = 0; for (final Map.Entry<String, DevState> deviceStateEntry : deviceStateMap.entrySet()) { final String deviceName = deviceStateEntry.getKey(); final DevState deviceState = deviceStateEntry.getValue();...
java
public short[] getDeviceStateNumberArray() { final short[] array = new short[deviceStateMap.size()]; int i = 0; for (final Map.Entry<String, DevState> deviceStateEntry : deviceStateMap.entrySet()) { final DevState deviceState = deviceStateEntry.getValue(); array[i++] = (short) getPriorityForState(deviceSt...
java
public <T> T read(final Class<T> type) throws DevFailed { update(); return extract(type); }
java
public <T> Object readArray(final Class<T> type) throws DevFailed { update(); return extractArray(type); }
java
public <T> T readWritten(final Class<T> type) throws DevFailed { update(); return extractWritten(type); }
java
public <T> T[] readSpecOrImage(final Class<T> type) throws DevFailed { update(); return extractSpecOrImage(type); }
java
public String readAsString(final String separator, final String endSeparator) throws DevFailed { update(); return extractToString(separator, endSeparator); }
java
public void insert(final Object value) throws DevFailed { logger.debug(LOG_INSERTING, this); attributeImpl.insert(value); }
java
public Number extractNumber() throws DevFailed { logger.debug(LOG_EXTRACTING, this); final Object result = attributeImpl.extract(); if (!Number.class.isAssignableFrom(result.getClass())) { throw DevFailedUtils.newDevFailed(TANGO_WRONG_DATA_ERROR, THIS_ATTRIBUTE_MUST_BE_A_JAVA_LANG_NU...
java
public static void initPoolConf() throws DevFailed { polledDevices.clear(); final Map<String, String[]> prop = PropertiesUtils.getDeviceProperties(ServerManager.getInstance() .getAdminDeviceName()); if (prop.containsKey(POLLING_THREADS_POOL_CONF)) { final String[] pol...
java
private void updatePoolConf() throws DevFailed { if (!polledDevices.contains(deviceName)) { polledDevices.add(deviceName); final Map<String, String[]> properties = new HashMap<String, String[]>(); properties.put(POLLING_THREADS_POOL_CONF, polledDevices.toArray(new String[0]))...
java
public synchronized void startCommandPolling(final CommandImpl command) throws DevFailed { addCommandPolling(command); LOGGER.debug("starting command {} for polling on device {}", command.getName(), deviceName); if (command.getPollingPeriod() != 0) { commandCacheMap.get(command).star...
java
private void addCommandPolling(final CommandImpl command) throws DevFailed { if (MANAGER == null) { startCache(); } removeCommandPolling(command); final CommandCache cache = new CommandCache(MANAGER, command, deviceName, deviceLock, aroundInvoke); if (command.getPolli...
java