com.perforce.p4java.impl.mapbased.rpc.func
Class RpcFunction

java.lang.Object
  extended by com.perforce.p4java.impl.mapbased.rpc.func.RpcFunction

public class RpcFunction
extends Object

General Perforce RPC function utilities and definitions.

An RPC function in this context is anything that can be encoded with the "func" field in an RPC packet, e.g. "func client-Message", "func user-files", or "func dm-Login".

Note that a lot of optimizations could be done here, but we'll hold off on this until we're clearer about usage models, actual performance, etc. -- HR. (And a lot of this would have been easier if the RPC protocol didn't insist on camel case or mixed case function strings...).


Field Summary
static RpcFunctionMetadata NO_METADATA
          Used to signal that there's no corresponding function metadata for an encoding or name.
static String TRACE_PREFIX
           
 
Constructor Summary
RpcFunction()
           
 
Method Summary
static RpcFunctionMetadata getMetadata(RpcFunctionSpec name)
           
static RpcFunctionMetadata getMetadata(String encoding, boolean relaxedCheck)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_PREFIX

public static final String TRACE_PREFIX
See Also:
Constant Field Values

NO_METADATA

public static final RpcFunctionMetadata NO_METADATA
Used to signal that there's no corresponding function metadata for an encoding or name.

Constructor Detail

RpcFunction

public RpcFunction()
Method Detail

getMetadata

public static RpcFunctionMetadata getMetadata(RpcFunctionSpec name)

getMetadata

public static RpcFunctionMetadata getMetadata(String encoding,
                                              boolean relaxedCheck)


Copyright © 2015 Perforce Software. All Rights Reserved.