public class PortMapping
extends java.lang.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
|
java.lang.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()
hashCode
in class java.lang.Object
public static final int generateHashCode(int progId, int verId, int proto)
progId
- intverId
- intproto
- intpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.