com.oracle.coherence.patterns.command
Class DefaultContextConfiguration

java.lang.Object
  extended by com.oracle.coherence.patterns.command.DefaultContextConfiguration
All Implemented Interfaces:
ContextConfiguration, com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject, Serializable

public class DefaultContextConfiguration
extends Object
implements ContextConfiguration, com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject

The default implementation of a ContextConfiguration.

Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Brian Oliver
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.oracle.coherence.patterns.command.ContextConfiguration
ContextConfiguration.ManagementStrategy
 
Constructor Summary
DefaultContextConfiguration()
          Standard Constructor (with default values).
DefaultContextConfiguration(ContextConfiguration.ManagementStrategy managementStrategy)
          Standard Constructor (developer provided values).
 
Method Summary
 ContextConfiguration.ManagementStrategy getManagementStrategy()
          Returns the ContextConfiguration.ManagementStrategy for the Context being configured.
 void readExternal(DataInput in)
          
 void readExternal(com.tangosol.io.pof.PofReader reader)
          
 String toString()
          
 void writeExternal(DataOutput out)
          
 void writeExternal(com.tangosol.io.pof.PofWriter writer)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultContextConfiguration

public DefaultContextConfiguration()
Standard Constructor (with default values). The ContextConfiguration.ManagementStrategy is set to ContextConfiguration.ManagementStrategy.DISTRIBUTED by default.


DefaultContextConfiguration

public DefaultContextConfiguration(ContextConfiguration.ManagementStrategy managementStrategy)
Standard Constructor (developer provided values).

Parameters:
managementStrategy -
Method Detail

getManagementStrategy

public ContextConfiguration.ManagementStrategy getManagementStrategy()
Returns the ContextConfiguration.ManagementStrategy for the Context being configured.

Specified by:
getManagementStrategy in interface ContextConfiguration

readExternal

public void readExternal(DataInput in)
                  throws IOException

Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
IOException

writeExternal

public void writeExternal(DataOutput out)
                   throws IOException

Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
IOException

readExternal

public void readExternal(com.tangosol.io.pof.PofReader reader)
                  throws IOException

Specified by:
readExternal in interface com.tangosol.io.pof.PortableObject
Throws:
IOException

writeExternal

public void writeExternal(com.tangosol.io.pof.PofWriter writer)
                   throws IOException

Specified by:
writeExternal in interface com.tangosol.io.pof.PortableObject
Throws:
IOException

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2016. All rights reserved.