public class NameServerProxy extends PyroProxy implements Serializable
correlation_id, hostname, objectid, port, pyroAttrs, pyroHandshake, pyroHmacKey, pyroMethods, pyroOneway
Constructor and Description |
---|
NameServerProxy(PyroURI uri) |
NameServerProxy(String hostname,
int port) |
NameServerProxy(String hostname,
int port,
String objectid) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object[]> |
list_with_meta(String prefix,
String regex) |
Map<String,Object[]> |
list_with_meta(String prefix,
String regex,
String[] metadata_all,
String[] metadata_any) |
Map<String,String> |
list(String prefix,
String regex) |
Map<String,String> |
list(String prefix,
String regex,
String[] metadata_all,
String[] metadata_any) |
static NameServerProxy |
locateNS(String host) |
static NameServerProxy |
locateNS(String host,
byte[] hmacKey) |
static NameServerProxy |
locateNS(String host,
int port,
byte[] hmacKey) |
PyroURI |
lookup(String name) |
Object[] |
lookup(String name,
boolean return_metadata) |
void |
ping() |
void |
register(String name,
PyroURI uri,
boolean safe) |
void |
register(String name,
PyroURI uri,
boolean safe,
String[] metadata) |
int |
remove(String name,
String prefix,
String regex) |
void |
set_metadata(String name,
Set<String> metadata) |
__setstate__, _handshake, annotations, call_oneway, call, close, connect, finalize, getattr, getMetadata, getSetOfStrings, responseAnnotations, setattr, validateHandshake
public NameServerProxy(PyroURI uri) throws UnknownHostException, IOException
UnknownHostException
IOException
public NameServerProxy(String hostname, int port, String objectid) throws UnknownHostException, IOException
UnknownHostException
IOException
public NameServerProxy(String hostname, int port) throws IOException
IOException
public void ping() throws PickleException, IOException
PickleException
IOException
public PyroURI lookup(String name) throws PickleException, IOException
PickleException
IOException
public Object[] lookup(String name, boolean return_metadata) throws PickleException, IOException
PickleException
IOException
public int remove(String name, String prefix, String regex) throws PickleException, IOException
PickleException
IOException
public void register(String name, PyroURI uri, boolean safe) throws PickleException, IOException
PickleException
IOException
public void register(String name, PyroURI uri, boolean safe, String[] metadata) throws PickleException, IOException
PickleException
IOException
public Map<String,String> list(String prefix, String regex) throws PickleException, IOException
PickleException
IOException
public Map<String,String> list(String prefix, String regex, String[] metadata_all, String[] metadata_any) throws PickleException, IOException
PickleException
IOException
public Map<String,Object[]> list_with_meta(String prefix, String regex) throws PickleException, IOException
PickleException
IOException
public Map<String,Object[]> list_with_meta(String prefix, String regex, String[] metadata_all, String[] metadata_any) throws PickleException, IOException
PickleException
IOException
public void set_metadata(String name, Set<String> metadata) throws PickleException, IOException
PickleException
IOException
public static NameServerProxy locateNS(String host) throws IOException
IOException
public static NameServerProxy locateNS(String host, byte[] hmacKey) throws IOException
IOException
public static NameServerProxy locateNS(String host, int port, byte[] hmacKey) throws IOException
IOException
Copyright © 2016. All Rights Reserved.