Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2c011eca07be75393124929d7b22289e18db9771 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*******************************************************************************
 * Copyright (c) 2014 Composent, Inc. All rights reserved. This
 * program and the accompanying materials are made available under the terms of
 * the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: Scott Lewis (slewis@composent.com) - initial API and implementation
 ******************************************************************************/
package org.eclipse.ecf.internal.examples.raspberrypi.management.host;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

import org.eclipse.ecf.examples.raspberrypi.management.IRaspberryPi;

/**
 * Implementation of IRaspberryPi service interface.
 */
public class RaspberryPi implements IRaspberryPi {

	@Override
	public Map<String, String> getSystemProperties() {
		Properties props = System.getProperties();
		
		Map<String, String> result = new HashMap<String,String>();
		for (final String name: props.stringPropertyNames())
		    result.put(name, props.getProperty(name));
		
		System.out.println("REMOTE CALL: getSystemProperties()");
		return result;
	}

}

Back to the top