Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2002, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2002, 2009 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 14-19
Link Here
|
14 |
* Contributors: |
14 |
* Contributors: |
15 |
* David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability |
15 |
* David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability |
16 |
* David McKnight (IBM) - [244388] [dstore] Connection hangs when a miner not installed |
16 |
* David McKnight (IBM) - [244388] [dstore] Connection hangs when a miner not installed |
|
|
17 |
* David McKnight (IBM) - [278341] [dstore] Disconnect on idle causes the client hang |
17 |
*******************************************************************************/ |
18 |
*******************************************************************************/ |
18 |
|
19 |
|
19 |
package org.eclipse.dstore.internal.core.server; |
20 |
package org.eclipse.dstore.internal.core.server; |
Lines 66-73
Link Here
|
66 |
System.out.println(ServerReturnCodes.RC_FINISHED); |
67 |
System.out.println(ServerReturnCodes.RC_FINISHED); |
67 |
|
68 |
|
68 |
// only exit if there's no service manager |
69 |
// only exit if there's no service manager |
69 |
if (SystemServiceManager.getInstance().getSystemService() == null) |
70 |
if (SystemServiceManager.getInstance().getSystemService() == null){ |
70 |
System.exit(0); |
71 |
System.exit(0); |
|
|
72 |
} |
73 |
else { |
74 |
_dataStore.getClient().disconnectServerReceiver(); |
75 |
} |
71 |
} |
76 |
} |
72 |
} |
77 |
} |
73 |
|
78 |
|
Lines 83-89
Link Here
|
83 |
// if we do timeout then it's time to shutdown the server |
88 |
// if we do timeout then it's time to shutdown the server |
84 |
return; |
89 |
return; |
85 |
} |
90 |
} |
86 |
System.out.println("server timed out!"); //$NON-NLS-1$ |
|
|
87 |
_serverTimedOut = true; |
91 |
_serverTimedOut = true; |
88 |
} |
92 |
} |
89 |
|
93 |
|