Changeset 343:7f06d669913d for kraken-linux-api/src/main/java/org/krakenapps/linux/api/script/LinuxApiScript.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/script/LinuxApiScript.java
r2 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.script; 2 17 18 import java.io.FileNotFoundException; 3 19 import java.io.IOException; 4 20 import java.net.InetAddress; … … 164 180 } 165 181 166 public void arp(String[] args) {182 public void arp(String[] args) throws FileNotFoundException { 167 183 List<ArpEntry> entries = ArpCache.getEntries(); 168 184 … … 175 191 } 176 192 177 public void routingTable(String[] args) {193 public void routingTable(String[] args) throws IOException { 178 194 List<RoutingEntry> entries = RoutingTable.getRoutingEntries(); 179 195 … … 287 303 } 288 304 289 public void dnsConfig(String[] args) {305 public void dnsConfig(String[] args) throws IOException { 290 306 DnsConfig dns = DnsConfig.getConfig(); 291 307 … … 316 332 @ScriptArgument(name = "second nameserver", type = "string", description = "second nameserver", optional = true), 317 333 @ScriptArgument(name = "third nameserver", type = "string", description = "third nameserver", optional = true) }) 318 public void setNameserver(String[] args) {334 public void setNameserver(String[] args) throws IOException { 319 335 DnsConfig dns = DnsConfig.getConfig(); 320 336 Object[] nameserver = dns.getNameserver().toArray();
Note: See TracChangeset
for help on using the changeset viewer.
