network : source refactoring 45/22245/1
authorHyunjong.park <phjwithyou.park@samsung.com>
Fri, 30 May 2014 09:12:42 +0000 (18:12 +0900)
committerHyunjong.park <phjwithyou.park@samsung.com>
Fri, 30 May 2014 09:17:17 +0000 (18:17 +0900)
add debug log, and remove variable of not using, change file manager name
Signed-off-by: Hyunjong.park <phjwithyou.park@samsung.com>
Change-Id: I6168fdb66dae1603c238a1e604d29162b04bd6b7

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkChartBoard.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/data/NetworkAPIDBManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/data/NetworkDataMaker.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/data/NetworkSeriesDBManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/data/StatusSeriesListSortComparator.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/data/type/NetworkSeriesType.java

index b2754a4..cbddd54 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Contact: 
- * Jooyoul Lee <jy.exe.lee@samsung.com>
+ * Hyunjong Park <phjwithyou.park@samsung.com>
  * Juyoung Kim <j0.kim@samsung.com>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
index 304e972..7c0b5a6 100644 (file)
@@ -1,3 +1,29 @@
+/*
+ *  Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: 
+ * Hyunjong Park <phjwithyou.park@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ * Contributors:
+ * - S-Core Co., Ltd
+ * 
+ */
+
 package org.tizen.dynamicanalyzer.ui.network.data;
 
 import java.sql.PreparedStatement;
index 1b178b8..9a74d98 100644 (file)
@@ -137,6 +137,8 @@ public class NetworkDataMaker {
                case LogCenterConstants.SOCKET_API_CONNECT: {
                        String[] strInput = parameter.split(CommonConstants.COMMA);
                        if (strInput.length <= 0) {
+                               DALogger.getInstance().error(
+                                               "argument length is wrong : " + input.getApiName());
                                return;
                        }
                        apiAddress = strInput[1].trim();
@@ -169,7 +171,8 @@ public class NetworkDataMaker {
                case LogCenterConstants.SOCKET_API_RECV_END:
                        setEndSeries(apiAddress, apiFD, time,
                                        NetworkSeriesType.ACCESS_TYPE_READ);
-                       payloadInfo = DownloadContentfileManager.getDowonloadFilePath(payloadInfo);
+                       payloadInfo = DownloadContentfileManager
+                                       .getDowonloadFilePath(payloadInfo);
                        break;
                case LogCenterConstants.SOCKET_API_SEND_START:
                        setStartSeries(apiAddress, apiFD, time, -1,
@@ -178,7 +181,8 @@ public class NetworkDataMaker {
                case LogCenterConstants.SOCKET_API_SEND_END:
                        setEndSeries(apiAddress, apiFD, time,
                                        NetworkSeriesType.ACCESS_TYPE_WRITE);
-                       payloadInfo = DownloadContentfileManager.getDowonloadFilePath(payloadInfo);
+                       payloadInfo = DownloadContentfileManager
+                                       .getDowonloadFilePath(payloadInfo);
                        break;
                case LogCenterConstants.SOCKET_API_EVENT_START:
                        setStartSeries(apiAddress, apiFD, time, -1,
@@ -191,6 +195,8 @@ public class NetworkDataMaker {
                case LogCenterConstants.SOCKET_API_BIND: {
                        String[] strInput = parameter.split(CommonConstants.COMMA);
                        if (strInput.length <= 0) {
+                               DALogger.getInstance().error(
+                                               "argument length is wrong : " + input.getApiName());
                                return;
                        }
                        apiAddress = strInput[1].trim();
@@ -203,6 +209,8 @@ public class NetworkDataMaker {
                        if (apiName.contains("epoll_ctl")) { //$NON-NLS-1$
                                String[] strInput = parameter.split(CommonConstants.COMMA);
                                if (strInput.length <= 0) {
+                                       DALogger.getInstance().error(
+                                                       "argument length is wrong : " + input.getApiName());
                                        return;
                                }
                                String clientFD = strInput[0].trim();
index 94e32e0..6202167 100644 (file)
@@ -1,3 +1,29 @@
+/*
+ *  Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: 
+ * Hyunjong Park <phjwithyou.park@samsung.com>
+ * Jooyoul Lee <jy.exe.lee@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ * Contributors:
+ * - S-Core Co., Ltd
+ * 
+ */
 package org.tizen.dynamicanalyzer.ui.network.data;
 
 import java.sql.PreparedStatement;
index 551997d..e624c34 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Contact: 
- * Jooyoul Lee <jy.exe.lee@samsung.com>
+ * Hyunjong Park <phjwithyou.park@samsung.com>
  * Juyoung Kim <j0.kim@samsung.com>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
index a3767af..68c44f9 100644 (file)
@@ -34,12 +34,11 @@ import org.tizen.dynamicanalyzer.constant.CommonConstants;
 import org.tizen.dynamicanalyzer.ui.network.data.NetworkSeriesDBManager;
 
 public class NetworkSeriesType {
-       public static final int HEAP_MEMORY = 128;
-       public static int STATUS_TYPE_OPEN = 0;
-       public static int STATUS_TYPE_CONNECTED = 1;
-       public static int ACCESS_TYPE_WAIT = 2;
-       public static int ACCESS_TYPE_READ = 3;
-       public static int ACCESS_TYPE_WRITE = 4;
+       public final static int STATUS_TYPE_OPEN = 0;
+       public final static int STATUS_TYPE_CONNECTED = 1;
+       public final static int ACCESS_TYPE_WAIT = 2;
+       public final static int ACCESS_TYPE_READ = 3;
+       public final static int ACCESS_TYPE_WRITE = 4;
 
        private int rid = 0;
        private String destinationAddress = CommonConstants.EMPTY;