Ejemplo n.º 1
0
 private void initStubs(BTransport transport)
 {
     bioFruitServiceVal          = new byps.test.api.inherit.BStub_BioFruitService(transport);
     bioLemonServiceVal          = new byps.test.api.inherit.BStub_BioLemonService(transport);
     fruitServiceVal             = new byps.test.api.inherit.BStub_FruitService(transport);
     lemonServiceVal             = new byps.test.api.inherit.BStub_LemonService(transport);
     plantServiceVal             = new byps.test.api.inherit.BStub_PlantService(transport);
     remoteArrayTypes1dimVal     = new byps.test.api.remote.BStub_RemoteArrayTypes1dim(transport);
     remoteArrayTypes23Val       = new byps.test.api.remote.BStub_RemoteArrayTypes23(transport);
     remoteArrayTypes4dimVal     = new byps.test.api.remote.BStub_RemoteArrayTypes4dim(transport);
     remoteConstantsVal          = new byps.test.api.remote.BStub_RemoteConstants(transport);
     remoteEnumsVal              = new byps.test.api.remote.BStub_RemoteEnums(transport);
     remoteInlineInstanceVal     = new byps.test.api.remote.BStub_RemoteInlineInstance(transport);
     remoteListTypesVal          = new byps.test.api.remote.BStub_RemoteListTypes(transport);
     remoteMapTypesVal           = new byps.test.api.remote.BStub_RemoteMapTypes(transport);
     remotePrimitiveTypesVal     = new byps.test.api.remote.BStub_RemotePrimitiveTypes(transport);
     remoteProcessingExVal       = new byps.test.api.remote.BStub_RemoteProcessingEx(transport);
     remoteReferencesVal         = new byps.test.api.remote.BStub_RemoteReferences(transport);
     remoteServerCtrlVal         = new byps.test.api.remote.BStub_RemoteServerCtrl(transport);
     remoteSetTypesVal           = new byps.test.api.remote.BStub_RemoteSetTypes(transport);
     remoteStreamsVal            = new byps.test.api.remote.BStub_RemoteStreams(transport);
     remoteWithAuthenticationVal = new byps.test.api.remote.BStub_RemoteWithAuthentication(transport);
     clientIFVal = new byps.test.api.srvr.BStub_ClientIF(transport);
     serverIFVal = new byps.test.api.srvr.BStub_ServerIF(transport);
     evolveIFVal = new byps.test.api.ver.BStub_EvolveIF(transport);
 }
Ejemplo n.º 2
0
        public BInput(BTransport transport, BMessageHeader responseHeader, BRegistry registry)
        {
            this.header = responseHeader;
		    this.transport = transport;
		    this.registry = registry;
            this.idMap = transport.getApiDesc().uniqueObjects ? null : new Dictionary<int, Object>();
        }
Ejemplo n.º 3
0
 public BOutput(BTransport transport, BRegistry registry, BMessageHeader requestHeader)
 {
     this.objMap = transport.getApiDesc().uniqueObjects ? null : new BObjMap();
     this.header = requestHeader;
     this.header.targetId = transport.getTargetId();
     this.header.sessionId = transport.getSessionId();
     this.transport = transport;
     this.registry = registry;
     this.streams = null;
 }
Ejemplo n.º 4
0
 public BOutput(BTransport transport, BRegistry registry, int streamHeaderMagic, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
 {
     this.objMap = transport.getApiDesc().uniqueObjects ? null : new BObjMap();
     this.header = new BMessageHeader(streamHeaderMagic, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder, transport.getWire().makeMessageId());
     this.header.targetId = transport.getTargetId();
     this.header.sessionId = transport.getSessionId();
     this.transport = transport;
     this.registry = registry;
     this.streams = null;
 }
Ejemplo n.º 5
0
 private void initStubs(BTransport transport)
 {
     iXEventBusHandlerVal  = new BStub_IXEventBusHandler(transport);
     iXServerEventsVal     = new BStub_IXServerEvents(transport);
     iXServicePortIFVal    = new BStub_IXServicePortIF(transport);
     rawStreamServiceVal   = new EloixClient.IndexServer.compatibility.BStub_RawStreamService(transport);
     wClientServiceVal     = new EloixClient.IndexServer.compatibility.BStub_WClientService(transport);
     feedNotificationVal   = new EloixClient.IndexServer.feed.BStub_FeedNotification(transport);
     feedServiceVal        = new EloixClient.IndexServer.feed.BStub_FeedService(transport);
     healthCheckServiceVal = new EloixClient.IndexServer.health.BStub_HealthCheckService(transport);
     myELOServiceVal       = new EloixClient.IndexServer.myelo.BStub_MyELOService(transport);
     clientNotificationVal = new EloixClient.IndexServer.notify.BStub_ClientNotification(transport);
     systemInformationVal  = new EloixClient.Indexserver.system.BStub_SystemInformation(transport);
 }
Ejemplo n.º 6
0
        public override Object read(Object obj, BInput bin1, long version)
        {
		    BInputBin bin = ((BInputBin)bin1);
		    BRemote remote = null;
		    BTargetId targetId = BTargetId.read(bin.bbuf.getBuffer(), bin1.header.bversion);
		    BRemoteRegistry rreg = bin.transport.getRemoteRegistry();
		    if (rreg != null) {
			    remote = rreg.getRemote(bin.header.targetId, targetId, typeId);
		    }
		    else {
			    BTransport transport = new BTransport(bin.transport, targetId);
			    remote = internalCreate(transport);
		    }
		    return remote;
	    }
Ejemplo n.º 7
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="transport">BYPS Transport</param>
        /// <param name="connProps">Connection properties</param>
        public IXCachedConnIXServicePortIF(BTransport transport, IXProperties connProps)
            : base(transport)
        {
            int cacheLifetimeSecondsLong  = connProps.Get(IXConnFactory.PROP_CACHE_MASTERDATA_LIFETIME_SECONDS, 10 * 60);
            int cacheLifetimeSecondsShort = connProps.Get(IXConnFactory.PROP_CACHE_CONTENT_LIFETIME_SECONDS, 0);

            sordCache     = new SordCache(this, cacheLifetimeSecondsShort);
            docMaskCache  = new DocMaskCache(this, cacheLifetimeSecondsLong);
            colorCache    = new ColorDataCache(this, cacheLifetimeSecondsLong);
            keywordCache  = new KeywordCache(this, cacheLifetimeSecondsLong);
            sordTypeCache = new SordTypeCache(this, cacheLifetimeSecondsLong);
            colorCache    = new ColorDataCache(this, cacheLifetimeSecondsLong);
            counterCache  = new CounterInfoCache(this, cacheLifetimeSecondsLong);
            userNameCache = new UserNameCache(this, cacheLifetimeSecondsLong);
        }
Ejemplo n.º 8
0
        public static BTransport createTransport()
        {
            BRegistry registryBin = new BRegistry_Testser();

            BWire wire = new MyWire();

            BApiDescriptor apiDesc = new BApiDescriptor("TestSerialize",
                                                        "com.wilutions.byps.test.api",
                                                        0,
                                                        false);


            BProtocol proto = new BProtocolS(apiDesc, 1, 0, ByteOrder.LITTLE_ENDIAN);

            BTransport transport = new BTransport(apiDesc, wire, null);

            transport.setProtocol(proto);

            return(transport);
        }
Ejemplo n.º 9
0
        public static BTransport createTransport()
        {

            BRegistry registryBin = new BRegistry_Testser();

            BWire wire = new MyWire();

            BApiDescriptor apiDesc = new BApiDescriptor("TestSerialize",
                    "com.wilutions.byps.test.api",
                    0,
                    false);


            BProtocol proto = new BProtocolS(apiDesc, 1, 0, ByteOrder.LITTLE_ENDIAN);

            BTransport transport = new BTransport(apiDesc, wire, null);
            transport.setProtocol(proto);

            return transport;
        }
Ejemplo n.º 10
0
		public static BServer_JSFS createServerR(BTransport transport) {
			return new BServer_JSFS(transport);
		}
Ejemplo n.º 11
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_BioFruitService(transport));
 }
Ejemplo n.º 12
0
		public BStub_BioLemonService(BTransport transport)
			: base(transport) {}			
Ejemplo n.º 13
0
		public BStub_DispatcherService(BTransport transport)
			: base(transport) {}			
Ejemplo n.º 14
0
		public BStub_RemoteSetTypes(BTransport transport)
			: base(transport) {}			
Ejemplo n.º 15
0
 public BStub_ClientIF(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 16
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_ServerIF(transport));
 }
Ejemplo n.º 17
0
 public BStub_FileSystemNotify(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 18
0
 public BServer_JSFS(BTransport transport)
     : base(transport, null)
 {
 }
Ejemplo n.º 19
0
 public static BServer_JSFS createServerR(BTransport transport)
 {
     return(new BServer_JSFS(transport));
 }
Ejemplo n.º 20
0
 protected BClient_JSFS(BTransport transport)
     : base(transport, null)
 {
     initStubs(transportVal);
 }
Ejemplo n.º 21
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_BUtilityRequests(transport));
 }
Ejemplo n.º 22
0
		protected override BRemote internalCreate(BTransport transport) {
			return new BStub_RemotePrimitiveTypes(transport);
		}
Ejemplo n.º 23
0
 public BStub_LemonService(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 24
0
 public BStub_FruitService(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 25
0
 public BStub_RemoteArrayTypes1dim(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 26
0
 public static BClient_Indexserver createClientR(BTransport transport)
 {
     return(new BClient_Indexserver(transport));
 }
Ejemplo n.º 27
0
	    public BStub(BTransport transport) {
		    this.transport = transport;
	    }
Ejemplo n.º 28
0
 protected BClient_Indexserver(BTransport transport)
     : base(transport, null)
 {
     initStubs(transportVal);
 }
Ejemplo n.º 29
0
 public static BClient_JSFS createClientR(BTransport transport)
 {
     return(new BClient_JSFS(transport));
 }
Ejemplo n.º 30
0
 public BStub_RemoteSetTypes(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 31
0
		private void initStubs(BTransport transport) {
			bUtilityRequestsVal = new BStub_BUtilityRequests(transport);
		}
Ejemplo n.º 32
0
	    public override BOutput getOutput(BTransport transport) 
        {
            if (negotiatedByteOrder == ByteOrder.UNDEFINED) throw new BException(BExceptionC.INTERNAL, "Protocol object can only be used for input.");
            return new BOutputS(transport, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder);
	    }
Ejemplo n.º 33
0
	    public BServerR(BTransport transport, BServer server) {
		    this.transport = transport;
		    this.server = new MyServer(this, server);
	    }
Ejemplo n.º 34
0
	    protected virtual BRemote internalCreate(BTransport transport) {
		    return null; // must be implemented by subclass
	    }
Ejemplo n.º 35
0
		protected override BRemote internalCreate(BTransport transport) {
			return new BStub_EvolveIF(transport);
		}
Ejemplo n.º 36
0
 public BStub_RemoteWithAuthentication(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 37
0
		public BServer_JSFS(BTransport transport) 
			: base(transport, null)
		{
		}
Ejemplo n.º 38
0
		protected override BRemote internalCreate(BTransport transport) {
			return new BStub_RemoteReferences(transport);
		}
Ejemplo n.º 39
0
		protected override BRemote internalCreate(BTransport transport) {
			return new BStub_RemoteInlineInstance(transport);
		}
		public BStub_RemoteWithAuthentication(BTransport transport)
			: base(transport) {}			
Ejemplo n.º 41
0
        public override BOutput getResponse(BTransport transport, BMessageHeader requestHeader)
        {
            if (negotiatedByteOrder == ByteOrder.UNDEFINED) throw new BException(BExceptionC.INTERNAL, "Protocol object can only be used for input.");
		    return new BOutputS(transport, requestHeader);
	    }
Ejemplo n.º 42
0
 private void initStubs(BTransport transport)
 {
     dispatcherServiceVal = new BStub_DispatcherService(transport);
     fileSystemNotifyVal  = new BStub_FileSystemNotify(transport);
     fileSystemServiceVal = new BStub_FileSystemService(transport);
 }
Ejemplo n.º 43
0
 public BStub_EvolveIF(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 44
0
        public override BInput getInput(BTransport transport, BMessageHeader responseHeader, ByteBuffer buf)
        {
		    return new BInputS(transport, responseHeader, buf);
	    }
Ejemplo n.º 45
0
 public BStub_BUtilityRequests(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 46
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_FileSystemNotify(transport));
 }
Ejemplo n.º 47
0
		public BStub_RemoteArrayTypes4dim(BTransport transport)
			: base(transport) {}			
Ejemplo n.º 48
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_DispatcherService(transport));
 }
Ejemplo n.º 49
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_SystemInformation(transport));
 }
Ejemplo n.º 50
0
		public BStub_RemoteReferences(BTransport transport)
			: base(transport) {}			
Ejemplo n.º 51
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_RawStreamService(transport));
 }
Ejemplo n.º 52
0
		public static BClient_Testser createClientR(BTransport transport) {
			return new BClient_Testser(transport);
		}
Ejemplo n.º 53
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_RemoteListTypes(transport));
 }
Ejemplo n.º 54
0
		protected BClient_Testser(BTransport transport) 
			: base(transport, null)
		{
			initStubs(transportVal);
		}
Ejemplo n.º 55
0
 protected override BRemote internalCreate(BTransport transport)
 {
     return(new BStub_HealthCheckService(transport));
 }
Ejemplo n.º 56
0
		private void initStubs(BTransport transport) {
			bioFruitServiceVal = new byps.test.api.inherit.BStub_BioFruitService(transport);
			bioLemonServiceVal = new byps.test.api.inherit.BStub_BioLemonService(transport);
			fruitServiceVal = new byps.test.api.inherit.BStub_FruitService(transport);
			lemonServiceVal = new byps.test.api.inherit.BStub_LemonService(transport);
			plantServiceVal = new byps.test.api.inherit.BStub_PlantService(transport);
			remoteArrayTypes1dimVal = new byps.test.api.remote.BStub_RemoteArrayTypes1dim(transport);
			remoteArrayTypes23Val = new byps.test.api.remote.BStub_RemoteArrayTypes23(transport);
			remoteArrayTypes4dimVal = new byps.test.api.remote.BStub_RemoteArrayTypes4dim(transport);
			remoteConstantsVal = new byps.test.api.remote.BStub_RemoteConstants(transport);
			remoteEnumsVal = new byps.test.api.remote.BStub_RemoteEnums(transport);
			remoteInlineInstanceVal = new byps.test.api.remote.BStub_RemoteInlineInstance(transport);
			remoteListTypesVal = new byps.test.api.remote.BStub_RemoteListTypes(transport);
			remoteMapTypesVal = new byps.test.api.remote.BStub_RemoteMapTypes(transport);
			remotePrimitiveTypesVal = new byps.test.api.remote.BStub_RemotePrimitiveTypes(transport);
			remoteReferencesVal = new byps.test.api.remote.BStub_RemoteReferences(transport);
			remoteServerCtrlVal = new byps.test.api.remote.BStub_RemoteServerCtrl(transport);
			remoteSetTypesVal = new byps.test.api.remote.BStub_RemoteSetTypes(transport);
			remoteStreamsVal = new byps.test.api.remote.BStub_RemoteStreams(transport);
			remoteWithAuthenticationVal = new byps.test.api.remote.BStub_RemoteWithAuthentication(transport);
			clientIFVal = new byps.test.api.srvr.BStub_ClientIF(transport);
			serverIFVal = new byps.test.api.srvr.BStub_ServerIF(transport);
			evolveIFVal = new byps.test.api.ver.BStub_EvolveIF(transport);
		}
Ejemplo n.º 57
0
		protected override BRemote internalCreate(BTransport transport) {
			return new BStub_BioFruitService(transport);
		}
Ejemplo n.º 58
0
		public static BClient_BUtilityRequests createClientR(BTransport transport) {
			return new BClient_BUtilityRequests(transport);
		}
Ejemplo n.º 59
0
 public BStub_SystemInformation(BTransport transport)
     : base(transport)
 {
 }
Ejemplo n.º 60
0
		protected BClient_BUtilityRequests(BTransport transport) 
			: base(transport, null)
		{
			initStubs(transportVal);
		}