@Override public void getCompleted(GetEvent ev) { synchronized(JCAChannelHandler.this) { if (log.isLoggable(Level.FINEST)) { log.log(Level.FINEST, "JCA metadata getCompleted for channel {0} event {1}", new Object[] {getChannelName(), ev}); } // In case the metadata arrives after the monitor MonitorEvent event = null; if (getLastMessagePayload() != null) { event = getLastMessagePayload().getEvent(); } processMessage(new JCAMessagePayload(ev.getDBR(), event)); } } });
/** * @see com.cosylab.epics.caj.impl.ResponseRequest#timeout() */ public void timeout() { // do not decrement pending IO, if non-callback read is used prohibitIOCancel = true; cancel(); // ... and notify if (callback != null) context.getEventDispatcher().dispatch( new GetEvent(channel, null, CAStatus.TIMEOUT), callback ); }
@Override public void getCompleted(GetEvent getEvent) { DBR fromDBR = getEvent.getDBR(); if(fromDBR==null) { CAStatus caStatus = getEvent.getStatus(); getDone(statusCreate.createStatus(StatusType.ERROR, caStatus.toString(), null)); return; } lock(); try { v3ChannelStructure.toStructure(fromDBR); } finally { unlock(); } getDone(okStatus); } private void getDone(Status success) {
public void getCompleted(GetEvent getEvent) { DBR fromDBR = getEvent.getDBR(); if(fromDBR==null) { CAStatus caStatus = getEvent.getStatus(); getDone(statusCreate.createStatus(StatusType.ERROR, caStatus.toString(), null)); return; } lock(); try { v3ChannelStructure.toStructure(fromDBR); } finally { unlock(); } getDone(okStatus); } /* (non-Javadoc)
public void getCompleted(GetEvent getEvent) { DBR fromDBR = getEvent.getDBR(); if(fromDBR==null) { CAStatus caStatus = getEvent.getStatus(); monitorRequester.monitorConnect( statusCreate.createStatus(StatusType.ERROR, caStatus.getMessage(),null),null,null); } else { v3ChannelStructure.toStructure(fromDBR); monitorRequester.monitorConnect(okStatus, this, v3ChannelStructure.getPVStructure().getStructure()); monitorRequester.monitorEvent(this); } } /* (non-Javadoc)
@Override public void getCompleted(GetEvent ev) { synchronized(JCAChannelHandler.this) { if (log.isLoggable(Level.FINEST)) { log.log(Level.FINEST, "JCA metadata getCompleted for channel {0} event {1}", new Object[] {getChannelName(), ev}); } // In case the metadata arrives after the monitor MonitorEvent event = null; if (getLastMessagePayload() != null) { event = getLastMessagePayload().getEvent(); } processMessage(new JCAMessagePayload(ev.getDBR(), event)); } } });
/** * @see com.cosylab.epics.caj.impl.ResponseRequest#timeout() */ public void timeout() { // do not decrement pending IO, if non-callback read is used prohibitIOCancel = true; cancel(); // ... and notify if (callback != null) context.getEventDispatcher().dispatch( new GetEvent(channel, null, CAStatus.TIMEOUT), callback ); }
new GetEvent(channel, dbr, caStatus), callback );
new GetEvent(channel, dbr, caStatus), callback );