com.hazelcast.config
Class SocketInterceptorConfig

java.lang.Object
  extended by com.hazelcast.config.SocketInterceptorConfig

public class SocketInterceptorConfig
extends Object

Contains the configuration for interceptor socket


Constructor Summary
SocketInterceptorConfig()
           
 
Method Summary
 String getClassName()
          Returns the name of the SocketInterceptor implementation class
 Object getImplementation()
          Returns the SocketInterceptor implementation object
 Properties getProperties()
          Gets all properties.
 String getProperty(String name)
          Gets a property.
 boolean isEnabled()
          Returns if this configuration is enabled
 SocketInterceptorConfig setClassName(String className)
          Sets the name for the SocketInterceptor implementation class
 SocketInterceptorConfig setEnabled(boolean enabled)
          Enables and disables this configuration
 SocketInterceptorConfig setImplementation(Object implementation)
          Sets the SocketInterceptor implementation object
 SocketInterceptorConfig setProperties(Properties properties)
          Sets the properties.
 SocketInterceptorConfig setProperty(String name, String value)
          Sets a property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocketInterceptorConfig

public SocketInterceptorConfig()
Method Detail

getClassName

public String getClassName()
Returns the name of the SocketInterceptor implementation class

Returns:
name of the class

setClassName

public SocketInterceptorConfig setClassName(String className)
Sets the name for the SocketInterceptor implementation class

Parameters:
className - the name of the SocketInterceptor implementation class to set
Returns:
this SocketInterceptorConfig instance

setImplementation

public SocketInterceptorConfig setImplementation(Object implementation)
Sets the SocketInterceptor implementation object

Parameters:
implementation - implementation object
Returns:
this SocketInterceptorConfig instance

getImplementation

public Object getImplementation()
Returns the SocketInterceptor implementation object

Returns:
SocketInterceptor implementation object

isEnabled

public boolean isEnabled()
Returns if this configuration is enabled

Returns:
true if enabled, false otherwise

setEnabled

public SocketInterceptorConfig setEnabled(boolean enabled)
Enables and disables this configuration

Parameters:
enabled -

setProperty

public SocketInterceptorConfig setProperty(String name,
                                           String value)
Sets a property.

Parameters:
name - the name of the property to set.
value - the value of the property to set
Returns:
the updated SocketInterceptorConfig
Throws:
NullPointerException - if name or value is null.

getProperty

public String getProperty(String name)
Gets a property.

Parameters:
name - the name of the property to get.
Returns:
the value of the property, null if not found
Throws:
NullPointerException - if name is null.

getProperties

public Properties getProperties()
Gets all properties.

Returns:
the properties.

setProperties

public SocketInterceptorConfig setProperties(Properties properties)
Sets the properties.

Parameters:
properties - the properties to set.
Returns:
the updated SSLConfig.
Throws:
IllegalArgumentException - if properties is null.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.