Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.cli.impl
Class ContextImpl

java.lang.Object
  extended by org.infinispan.cli.impl.ContextImpl
All Implemented Interfaces:
Context

public class ContextImpl
extends Object
implements Context

ContextImpl.

Since:
5.2
Author:
Tristan Tarrant

Constructor Summary
ContextImpl(IOAdapter outputAdapter, CommandBuffer commandBuffer)
           
 
Method Summary
 void disconnect()
           
 void error(String s)
           
 void error(Throwable t)
           
 void execute()
           
 void execute(CommandBuffer commandBuffer)
           
 CommandBuffer getCommandBuffer()
           
 CommandRegistry getCommandRegistry()
           
 Connection getConnection()
           
 IOAdapter getOutputAdapter()
           
 String getProperty(String key)
           
 boolean isConnected()
           
 boolean isQuitting()
           
 void println(String s)
           
 void refreshProperties()
           
 void setConnection(Connection connection)
           
 void setOutputAdapter(IOAdapter outputAdapter)
           
 void setProperty(String key, String value)
           
 void setQuitting(boolean quitting)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextImpl

public ContextImpl(IOAdapter outputAdapter,
                   CommandBuffer commandBuffer)
Method Detail

setOutputAdapter

public void setOutputAdapter(IOAdapter outputAdapter)
Specified by:
setOutputAdapter in interface Context

isConnected

public boolean isConnected()
Specified by:
isConnected in interface Context

isQuitting

public boolean isQuitting()
Specified by:
isQuitting in interface Context

setQuitting

public void setQuitting(boolean quitting)
Specified by:
setQuitting in interface Context

setProperty

public void setProperty(String key,
                        String value)
Specified by:
setProperty in interface Context

getProperty

public String getProperty(String key)
Specified by:
getProperty in interface Context

println

public void println(String s)
Specified by:
println in interface Context

error

public void error(String s)
Specified by:
error in interface Context

error

public void error(Throwable t)
Specified by:
error in interface Context

getCommandBuffer

public CommandBuffer getCommandBuffer()
Specified by:
getCommandBuffer in interface Context

disconnect

public void disconnect()
Specified by:
disconnect in interface Context

setConnection

public void setConnection(Connection connection)
Specified by:
setConnection in interface Context

execute

public void execute()
Specified by:
execute in interface Context

execute

public void execute(CommandBuffer commandBuffer)
Specified by:
execute in interface Context

getConnection

public Connection getConnection()
Specified by:
getConnection in interface Context

getCommandRegistry

public CommandRegistry getCommandRegistry()
Specified by:
getCommandRegistry in interface Context

getOutputAdapter

public IOAdapter getOutputAdapter()
Specified by:
getOutputAdapter in interface Context

refreshProperties

public void refreshProperties()
Specified by:
refreshProperties in interface Context

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.