@@ -137,20 +137,27 @@ public class OStorageRemote extends OStorageAbstract implements OStorageProxy, O
137
137
private final int maxReadQueue ;
138
138
139
139
public OStorageRemote (final String iClientId , final String iURL , final String iMode ) throws IOException {
140
- super (iURL , iURL , iMode , 0 , new OCacheLevelTwoLocatorRemote ()); // NO TIMEOUT @SINCE 1.5
141
- clientId = iClientId ;
142
- configuration = null ;
140
+ this (iClientId , iURL , iMode , null );
141
+ }
143
142
144
- clientConfiguration = new OContextConfiguration ();
145
- connectionRetry = clientConfiguration .getValueAsInteger (OGlobalConfiguration .NETWORK_SOCKET_RETRY );
146
- connectionRetryDelay = clientConfiguration .getValueAsInteger (OGlobalConfiguration .NETWORK_SOCKET_RETRY_DELAY );
147
- asynchEventListener = new OStorageRemoteAsynchEventListener (this );
148
- parseServerURLs ();
143
+ public OStorageRemote (final String iClientId , final String iURL , final String iMode , STATUS status ) throws IOException {
144
+ super (iURL , iURL , iMode , 0 , new OCacheLevelTwoLocatorRemote ()); // NO TIMEOUT @SINCE 1.5
145
+ if (status != null )
146
+ this .status = status ;
149
147
150
- asynchExecutor = Executors .newSingleThreadScheduledExecutor ();
148
+ clientId = iClientId ;
149
+ configuration = null ;
151
150
152
- maxReadQueue = Runtime .getRuntime ().availableProcessors () - 1 ;
153
- }
151
+ clientConfiguration = new OContextConfiguration ();
152
+ connectionRetry = clientConfiguration .getValueAsInteger (OGlobalConfiguration .NETWORK_SOCKET_RETRY );
153
+ connectionRetryDelay = clientConfiguration .getValueAsInteger (OGlobalConfiguration .NETWORK_SOCKET_RETRY_DELAY );
154
+ asynchEventListener = new OStorageRemoteAsynchEventListener (this );
155
+ parseServerURLs ();
156
+
157
+ asynchExecutor = Executors .newSingleThreadScheduledExecutor ();
158
+
159
+ maxReadQueue = Runtime .getRuntime ().availableProcessors () - 1 ;
160
+ }
154
161
155
162
public int getSessionId () {
156
163
return OStorageRemoteThreadLocal .INSTANCE .get ().sessionId .intValue ();
0 commit comments