Beispiel #1
0
void
Outgoing::completed(const Ice::Exception& ex)
{
    Monitor<Mutex>::Lock sync(_monitor);
    //assert(_state <= StateInProgress);
    if(_state > StateInProgress)
    {
        //
        // Response was already received but message
        // didn't get removed first from the connection
        // send message queue so it's possible we can be
        // notified of failures. In this case, ignore the
        // failure and assume the outgoing has been sent.
        //
        assert(_state != StateFailed);
        _sent = true;
        _monitor.notify();
        return;
    }

    _childObserver.failed(ex.ice_name());
    _childObserver.detach();

    _state = StateFailed;
    _exception.reset(ex.ice_clone());
    _monitor.notify();
}
void AMI_WsICEService_runRobotFinished_I::ice_exception( const Ice::Exception& ex)
{
	ZTools::WriteZToolsLog(
		ZTools::FormatString("调用finish接口出现异常\nice_name:%s", 
		ex.ice_name().c_str())
		);
}
Beispiel #3
0
void
FlushBatch::completed(const Ice::Exception& ex)
{
    Monitor<Mutex>::Lock sync(_monitor);
    _childObserver.failed(ex.ice_name());
    _childObserver.detach();
    _exception.reset(ex.ice_clone());
    _monitor.notify();
}
Beispiel #4
0
bool
AsyncResult::finished(const Ice::Exception& ex)
{
    IceUtil::Monitor<IceUtil::Mutex>::Lock sync(_monitor);
    _state |= Done;
    _exception.reset(ex.ice_clone());
    _cancellationHandler = 0;
    _observer.failed(ex.ice_name());
    if(!_callback)
    {
        _observer.detach();
    }
    _monitor.notifyAll();
    return _callback;
}
void AMI_PeraWsAstICE_CreateWSByXpdlStream_I::ice_exception( const Ice::Exception& ex )
{
	SendIceMsg( ex.ice_name().c_str(), "createws" );
}
void AMI_PeraWsAstICE_DeleteCache_I::ice_exception( const Ice::Exception& ex )
{
	SendIceMsg( ex.ice_name().c_str(), "delete" );
}
void AMI_PeraWsAstICE_CopyCache_I::ice_exception( const Ice::Exception& ex )
{
	SendIceMsg( ex.ice_name().c_str(), "resume" );
}
void AMI_PeraWsAstICE_CreateWSByCache_I::ice_exception( const Ice::Exception& ex )
{
	SendIceMsg( ex.ice_name().c_str(), "save" );
}
void AMI_PeraWsAstICE_CreateCacheByWS_I::ice_exception( const Ice::Exception& ex )
{
	SendIceMsg( ex.ice_name().c_str(), "open" );
}