<commit_before>/**
 * Copyright (c) 2011, 2014 Eurotech and/or its affiliates
 *
 *  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:
 *   Eurotech
 */
package org.eclipse.kura.net.admin.modem;

import org.eclipse.kura.KuraException;

public interface IModemLinkService {

	public static final String SERVICE_NAME = IModemLinkService.class.getName();

	/**
	* Connect request with default timeout 
	* 
	* @throws KuraException
	*/
	public void connect() throws KuraException;
	
	/**
	* Connect request
	* @param tout - timeout in seconds as {@link int}
	* 
	* @throws KuraException
	*/
	public void connect(int tout) throws KuraException;

	/**
	* Disconnect request
	*
	* @throws KuraException
	*/
	public void disconnect () throws KuraException;
	
	public void release();
	
	public PppState getPppState () throws KuraException;
	
	public PppState getPppState (int tout) throws KuraException;
	
	/**
	* Reports IP address of cellular interface
	*
	* @return IP address as <code>String</code>
	* @throws KuraException
	*/
	public String getIPaddress() throws KuraException;
	
	/**
	* Reports gateway IP address (IP address of the peer)
	*
	* @return gateway IP address as <code>String</code>
	*/
	public String getGatewayIpAddress();
	
	/**
	* Reports name of network interface
	*
	* @return network interface name as <code>String</code>
	*/
	public String getIfaceName();
}<commit_msg>ported cellular optimizations from ESF 2.0.10<commit_after>/**
 * Copyright (c) 2011, 2014 Eurotech and/or its affiliates
 *
 *  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:
 *   Eurotech
 */
package org.eclipse.kura.net.admin.modem;

import org.eclipse.kura.KuraException;

public interface IModemLinkService {

	public static final String SERVICE_NAME = IModemLinkService.class.getName();

	/**
	* Connect request with default timeout 
	* 
	* @throws KuraException
	*/
	public void connect() throws KuraException;
	
	/**
	* Disconnect request
	*
	* @throws KuraException
	*/
	public void disconnect () throws KuraException;
	
	public PppState getPppState () throws KuraException;
	
	/**
	* Reports IP address of cellular interface
	*
	* @return IP address as <code>String</code>
	* @throws KuraException
	*/
	public String getIPaddress() throws KuraException;
	
	/**
	* Reports name of network interface
	*
	* @return network interface name as <code>String</code>
	*/
	public String getIfaceName();
}
{'fraction_non_alphanumeric': 0.097310686482661, 'fraction_numerical': 0.009907997169143666, 'mean_word_length': 3.968365553602812, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7665832', 'n_tokens_mistral': 903, 'n_tokens_neox': 833, 'n_words': 275}