public abstract class MemberDef
extends java.lang.Object
Discovery URL attribute:
Specifies how this instance will connect to the Metaspace, either as a fully connected peer, or as a remote client.
If connecting as a fully connected peer, specifies how this instance will discover other instances in the metaspace.
Discovery can be unicast (TCP) or multicast (PGM or RV).
There are three different discovery protocols:
List of semicolon separated IP address/port pairs. These are well known IP address/port pairs to discover
existing members. Ex. tcp://ip1:port1;ip2:port2;...
If no port is specified, a default port of 50000 will be used.
If user has specified some other port via TCP URL list it overrides the default discovery port. For example;
If user has specified tcp://self_ip:8000;IP2:8001/..; ActiveSpaces will open discovery port 8000 to listen for discovery requests of
new members to find the metaspace manager.
tibpgm://port/interface;multicast-group/daemon parameters/
Refer to documentation for PGM transport
tibrv://service/network/daemon/
Refer to documentation for RV transport
Listen URL attribute:
Defaults to tcp://
By default ActiveSpaces instance listens on the default host interface (as pointed to by 'hostname') and uses
the first free port it can find starting from port 50000 and automatically increasing the port number until
it finds a free port for ActiveSpaces internal data communication.
If your machine has blocked this range of ports please specify an available port here. Ex: tcp://self_ip:6000.
If user did not provide any argument for listen URL, the connection definition can be used to retrieve this
information after connecting to the metaspace.
Constructor and Description |
---|
MemberDef() |
Modifier and Type | Method and Description |
---|---|
static MemberDef |
create()
Returns a new MemberDef instance with default settings.
|
static MemberDef |
create(java.lang.String memberName,
java.lang.String discovery,
java.lang.String listen)
Returns a new MemberDef instance with the given attribute values.
|
abstract AuthenticationCallback |
getAuthenticationCallback()
Returns the security AuthenticationCallback instance.
|
abstract long |
getClientTimeout()
Returns the MemberDef setting for how much time (in milliseconds) to wait
for a client to reconnect.
|
abstract int |
getClusterSuspendThreshold()
Returns the MemberDef setting for how many lost host connections will be allowed
before membership operations are suspended.
|
abstract long |
getConnectTimeout() |
abstract Tuple |
getContext()
Returns the context tuple of the MemberDef instance.
|
abstract java.lang.String |
getDataStore()
Returns the data store location for shared-nothing persistence.
|
abstract java.lang.String |
getDiscovery()
Returns the discovery URL attribute value of the MemberDef instance.
|
abstract char[] |
getIdentityPassword()
Get the identity password.
|
abstract java.lang.String |
getListen()
Returns the listen URL attribute value of the MemberDef instance.
|
abstract java.lang.String |
getMemberName()
Returns the member name attribute value of the MemberDef instance.
|
abstract long |
getMemberTimeout()
Returns the MemberDef setting for how much time (in milliseconds) to wait
for a member to reconnect.
|
abstract java.lang.String |
getRemoteDiscovery()
Returns the remote discovery URL attribute value of the MemberDef instance.
|
abstract java.lang.String |
getRemoteListen()
Returns the remote listen URL attribute value of the MemberDef instance.
|
abstract java.lang.String |
getRouterListen()
Returns the site router listen URL attribute value of the MemberDef instance.
|
abstract long |
getRxBufferSize() |
abstract java.lang.String |
getSecurityPolicyFile()
Returns the member's security policy file location.
|
abstract java.lang.String |
getSecurityTokenFile()
Returns the security token file location.
|
abstract long |
getTimeout()
Deprecated.
|
abstract int |
getTransportThreadCount()
Returns the number of threads which can be used to service transport requests.
|
abstract int |
getWorkerThreadCount()
Returns the number of threads which can be used to service remote invocations.
|
abstract boolean |
isSystemSeeder() |
abstract boolean |
isSystemSiteRouter() |
abstract MemberDef |
setAuthenticationCallback(AuthenticationCallback callback)
Sets the security authentication callback method for the member.
|
abstract MemberDef |
setClientTimeout(long timeout)
Sets the amount of time (in milliseconds) to wait for a client to reconnect.
|
abstract MemberDef |
setClusterSuspendThreshold(int threshold)
Sets the number of host connections which can be lost after which membership
operations are suspended.
|
abstract MemberDef |
setConnectTimeout(long timeout)
Connect timeout helps to unnblock the connect call.
|
abstract MemberDef |
setContext(Tuple context)
Sets the context tuple of the MemberDef instance.
|
abstract MemberDef |
setDataStore(java.lang.String dataStore)
Sets the data store location for shared-nothing persistence.
|
abstract MemberDef |
setDiscovery(java.lang.String discovery)
Sets the discovery URL attribute of the MemberDef instance.
|
abstract MemberDef |
setIdentityPassword(char[] identityPassword)
Set the identity password for a token or a policy's security domain if the identity is encrypted.
|
abstract MemberDef |
setListen(java.lang.String listen)
Sets the listen URL attribute of the MemberDef instance.
|
abstract MemberDef |
setMemberName(java.lang.String name)
Sets the member name attribute value of the MemberDef instance.
|
abstract MemberDef |
setMemberTimeout(long timeout)
Sets the amount of time (in milliseconds) to wait for a member to reconnect.
|
abstract MemberDef |
setRemoteDiscovery(java.lang.String remoteDiscoveryUrl)
Sets the remote discovery URL attribute value of the MemberDef instance.
|
abstract MemberDef |
setRemoteListen(java.lang.String remoteListen)
Sets the remote listen URL attribute value of the MemberDef instance.
|
abstract MemberDef |
setRouterListen(java.lang.String routerListen)
Sets the site router listen URL attribute value of the MemberDef instance.
|
abstract MemberDef |
setRxBufferSize(long bufferSize) |
abstract MemberDef |
setSecurityPolicyFile(java.lang.String policyFile)
Sets the security policy file for the member.
|
abstract MemberDef |
setSecurityTokenFile(java.lang.String tokenFile)
Sets the security token file for the member.
|
abstract MemberDef |
setSystemSeeder(boolean isSystemSeeder) |
abstract MemberDef |
setSystemSiteRouter(boolean isSystemSiteRouter) |
abstract MemberDef |
setTimeout(long timeout)
Deprecated.
|
abstract MemberDef |
setTransportThreadCount(int count)
Sets the number of threads which can be used to service transport requests.
|
abstract MemberDef |
setWorkerThreadCount(int count)
Sets the number of threads which can be used to service remote invocations.
|
public static MemberDef create()
public static MemberDef create(java.lang.String memberName, java.lang.String discovery, java.lang.String listen)
memberName
- Member name attribute valuediscovery
- Discovery URL attribute valuelisten
- Listen URL attribute valuepublic abstract MemberDef setListen(java.lang.String listen)
listen
- The listen URL attribute valuepublic abstract java.lang.String getListen()
public abstract MemberDef setDiscovery(java.lang.String discovery)
discovery
- The discovery URL attribute valuepublic abstract java.lang.String getDiscovery()
public abstract MemberDef setMemberName(java.lang.String name)
name
- The member name attribute valuepublic abstract java.lang.String getMemberName()
public abstract MemberDef setRemoteDiscovery(java.lang.String remoteDiscoveryUrl)
remoteDiscoveryUrl
- The remote discovery URL attribute valuepublic abstract java.lang.String getRemoteDiscovery()
public abstract MemberDef setRemoteListen(java.lang.String remoteListen)
remoteListen
- The remote listen URL attribute valuepublic abstract java.lang.String getRemoteListen()
public abstract MemberDef setRouterListen(java.lang.String routerListen)
routerListen
- The site listen URL attribute valuepublic abstract java.lang.String getRouterListen()
public abstract MemberDef setContext(Tuple context)
context
- Context tuple for memberpublic abstract Tuple getContext()
@Deprecated public abstract MemberDef setTimeout(long timeout)
SpaceDef.setWriteTimeout(long)
or SpaceDef.setReadTimeout(long)
timeout
- The timeout in milliseconds@Deprecated public abstract long getTimeout()
public abstract MemberDef setMemberTimeout(long timeout)
timeout
- The timeout in milliseconds.public abstract long getMemberTimeout()
public abstract MemberDef setClusterSuspendThreshold(int threshold)
threshold
- The number of lost host connections which will cause membership
operations to be suspended.public abstract int getClusterSuspendThreshold()
public abstract MemberDef setClientTimeout(long timeout)
timeout
- The timeout in milliseconds.public abstract long getClientTimeout()
public abstract MemberDef setWorkerThreadCount(int count)
count
- The number of worker threadspublic abstract int getWorkerThreadCount()
public abstract MemberDef setTransportThreadCount(int count)
count
- The number of transport threadspublic abstract int getTransportThreadCount()
public abstract MemberDef setRxBufferSize(long bufferSize)
public abstract long getRxBufferSize()
public abstract MemberDef setDataStore(java.lang.String dataStore)
dataStore
- The data store location.public abstract java.lang.String getDataStore()
public abstract MemberDef setSecurityPolicyFile(java.lang.String policyFile)
policyFile
- The full path to the security policy file.public abstract MemberDef setSecurityTokenFile(java.lang.String tokenFile)
tokenFile
- The full path to the security token file.public abstract MemberDef setAuthenticationCallback(AuthenticationCallback callback)
callback
- A user provided implementation for supplying client credentials to
the security authentication callback mechanism. If the security policy for the metaspace
requires application-level client authentication, the ActiveSpaces framework
invokes the AuthenticationCallback.createUserCredential(com.tibco.as.space.security.AuthenticationInfo)
}
method during the join process of this member. If authentication is required and the
implementation doesn't provide the required client credential, the member will not be
able to connect to the metaspace. If authentication is required and the implementation doesn't
provide a callback, the default ActiveSpaces credential provider will be used.
If the security domain's policy doesn't require authentication, specifying the callback
is not required and any implementation provided, will be ignored.public abstract MemberDef setIdentityPassword(char[] identityPassword)
identityPassword
- public abstract java.lang.String getSecurityTokenFile()
public abstract java.lang.String getSecurityPolicyFile()
public abstract AuthenticationCallback getAuthenticationCallback()
public abstract char[] getIdentityPassword()
public abstract MemberDef setConnectTimeout(long timeout)
timeout
- time to wait (in milliseconds) until connection is successful.public abstract long getConnectTimeout()
public abstract MemberDef setSystemSeeder(boolean isSystemSeeder) throws ASException
isSystemSeeder
- set as system seeder default to trueASException
public abstract boolean isSystemSeeder() throws ASException
ASException
public abstract MemberDef setSystemSiteRouter(boolean isSystemSiteRouter) throws ASException
isSystemSiteRouter
- set as system site router default to trueASException
public abstract boolean isSystemSiteRouter() throws ASException
ASException
Copyright (c) 2014 Cloud Software Group, Inc. All rights reserved.