-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aea150e
commit 52c86b8
Showing
27 changed files
with
900 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/com/perforce/p4java/core/IServerIPMACAddress.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.perforce.p4java.core; | ||
|
||
public interface IServerIPMACAddress extends IServerResource { | ||
|
||
String getServerInterface(); | ||
|
||
String getMACAddress(); | ||
|
||
String getIPV4Address(); | ||
|
||
String getIPV6Address(); | ||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/com/perforce/p4java/impl/generic/core/ServerIPMACAddress.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.perforce.p4java.impl.generic.core; | ||
|
||
import com.perforce.p4java.core.IServerIPMACAddress; | ||
import java.util.Map; | ||
|
||
public class ServerIPMACAddress extends ServerResource implements IServerIPMACAddress { | ||
private String serverInterface; | ||
private String macAddress; | ||
private String ipv4Address; | ||
private String ipv6Address; | ||
|
||
public ServerIPMACAddress() {} | ||
|
||
public ServerIPMACAddress(Map<String, Object> map) { | ||
if(map.size() > 0 ) { | ||
this.serverInterface = String.valueOf(map.get("interface")); | ||
this.macAddress = String.valueOf(map.get("macAddress")); | ||
this.ipv4Address = String.valueOf(map.get("ipv4Address")); | ||
this.ipv6Address = String.valueOf(map.get("ipv6Address")); | ||
} | ||
} | ||
|
||
public String getServerInterface() { | ||
return serverInterface; | ||
} | ||
|
||
public String getMACAddress() { return macAddress; } | ||
|
||
public String getIPV4Address() { | ||
return ipv4Address; | ||
} | ||
|
||
public String getIPV6Address() { | ||
return ipv6Address; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.