mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
[226086][dstore][api][breaking] Move ServerLogger class to dstore.core
This commit is contained in:
parent
15d034a53d
commit
2a1ebc9416
3 changed files with 6 additions and 4 deletions
|
@ -12,9 +12,10 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Noriaki Takatsu (IBM) - [220126] [dstore][api][breaking] Single process server for multiple clients
|
* Noriaki Takatsu (IBM) - [220126] [dstore][api][breaking] Single process server for multiple clients
|
||||||
|
* David McKnight (IBM) - [226086] [dstore][api][breaking] Move ServerLogger class to dstore.core
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.dstore.universal.miners;
|
package org.eclipse.dstore.core.server;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
@ -22,7 +23,6 @@ import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
import org.eclipse.dstore.core.server.IServerLogger;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class that facilitates logging for errors, warnings, debug messages and info for DataStore
|
* Class that facilitates logging for errors, warnings, debug messages and info for DataStore
|
|
@ -30,6 +30,7 @@ import org.eclipse.dstore.core.miners.Miner;
|
||||||
import org.eclipse.dstore.core.model.Client;
|
import org.eclipse.dstore.core.model.Client;
|
||||||
import org.eclipse.dstore.core.model.DE;
|
import org.eclipse.dstore.core.model.DE;
|
||||||
import org.eclipse.dstore.core.model.DataElement;
|
import org.eclipse.dstore.core.model.DataElement;
|
||||||
|
import org.eclipse.dstore.core.server.ServerLogger;
|
||||||
|
|
||||||
|
|
||||||
public class EnvironmentMiner extends Miner
|
public class EnvironmentMiner extends Miner
|
||||||
|
|
|
@ -280,13 +280,14 @@ public class DownloadListener implements IDomainListener
|
||||||
return _status;
|
return _status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void wakeupServer(DataElement status)
|
private void wakeupServer(DataElement status)
|
||||||
{
|
{
|
||||||
if (status != null)
|
if (status != null)
|
||||||
{
|
{
|
||||||
// token command to wake up update handler
|
// token command to wake up update handler
|
||||||
DataElement cmdDescriptor = _dataStore.findCommandDescriptor("C_REFRESH"); //$NON-NLS-1$
|
DataElement subject = (DataElement)status.getParent().get(0);
|
||||||
DataElement subject = status.getParent().get(0);
|
DataElement cmdDescriptor = _dataStore.localDescriptorQuery(subject.getDescriptor(), "C_QUERY_EXISTS");
|
||||||
if (cmdDescriptor != null)
|
if (cmdDescriptor != null)
|
||||||
{
|
{
|
||||||
_dataStore.command(cmdDescriptor, subject);
|
_dataStore.command(cmdDescriptor, subject);
|
||||||
|
|
Loading…
Add table
Reference in a new issue