Changeset 343:7f06d669913d for kraken-linux-api/src/main/java/org/krakenapps/linux/api/msgbus/EthernetInterfacePlugin.java
- Timestamp:
- 09/18/11 13:55:15 (8 months ago)
- Branch:
- default
- Convert:
- svn:7c3792e6-d75b-4784-96a6-b298f655ee64/trunk@2777
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kraken-linux-api/src/main/java/org/krakenapps/linux/api/msgbus/EthernetInterfacePlugin.java
r5 r343 1 /* 2 * Copyright 2011 Future Systems 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 1 16 package org.krakenapps.linux.api.msgbus; 2 17 … … 23 38 24 39 @MsgbusMethod 25 public void getEthernetInterfaces(Request req, Response resp) {40 public void getEthernetInterfaces(Request req, Response resp) throws IOException { 26 41 List<Map<String, Object>> objs = new ArrayList<Map<String, Object>>(); 27 42 List<EthernetInterface> interfaces = EthernetInterface.getEthernetInterfaces(); … … 40 55 @SuppressWarnings("unchecked") 41 56 @MsgbusMethod 42 public void setEthernetInterfaces(Request req, Response resp) {57 public void setEthernetInterfaces(Request req, Response resp) throws IOException { 43 58 Map<String, Object> interfaces = (Map<String, Object>) req.get("interfaces"); 44 59 for (String devname : interfaces.keySet()) {
Note: See TracChangeset
for help on using the changeset viewer.
