public class PortMapping extends Object
Contains the details of an RPC service registered with the PortMapper service.
Constructor and Description |
---|
PortMapping(int progId,
int verId,
int protocol,
int port)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
static int |
generateHashCode(int progId,
int verId,
int proto)
Generate a hash code for the specified program, version and protocol
|
int |
getPort()
Return the port number
|
int |
getProgramId()
Return the program id
|
int |
getProtocol()
Return the protocol type
|
int |
getVersionId()
Return the version id
|
int |
hashCode()
Return a hash code for the port mapping
|
String |
toString()
Return the port details as a string
|
public PortMapping(int progId, int verId, int protocol, int port)
progId
- intverId
- intprotocol
- intport
- intpublic final int getProgramId()
public final int getVersionId()
public final int getProtocol()
public final int getPort()
public int hashCode()
public static final int generateHashCode(int progId, int verId, int proto)
progId
- intverId
- intproto
- intCopyright © 2005–2018 Alfresco Software. All rights reserved.