code
stringlengths
73
34.1k
label
stringclasses
1 value
public static ConnectionException ToConnectionPoolException(Throwable e) { if (e instanceof ConnectionException) { return (ConnectionException) e; } LOGGER.debug(e.getMessage()); if (e instanceof InvalidRequestException) { return new com.netflix.astyanax.connectio...
java
@Override public Connection<CL> borrowConnection(int timeout) throws ConnectionException { Connection<CL> connection = null; long startTime = System.currentTimeMillis(); try { // Try to get a free connection without blocking. connection = availableConnections.poll(); ...
java
private Connection<CL> waitForConnection(int timeout) throws ConnectionException { Connection<CL> connection = null; long startTime = System.currentTimeMillis(); try { blockedThreads.incrementAndGet(); connection = availableConnections.poll(timeout, TimeUnit.MILLISECONDS)...
java
@Override public boolean returnConnection(Connection<CL> connection) { returnedCount.incrementAndGet(); monitor.incConnectionReturned(host); ConnectionException ce = connection.getLastException(); if (ce != null) { if (ce instanceof IsDeadConnectionException) { ...
java
@Override public void markAsDown(ConnectionException reason) { // Make sure we're not triggering the reconnect process more than once if (isReconnecting.compareAndSet(false, true)) { markedDownCount.incrementAndGet(); if (reason != null && !(reason i...
java
private boolean tryOpenAsync() { Connection<CL> connection = null; // Try to open a new connection, as long as we haven't reached the max if (activeCount.get() < config.getMaxConnsPerHost()) { try { if (activeCount.incrementAndGet() <= config.getMaxConnsPerHost()) { ...
java
private void discardIdleConnections() { List<Connection<CL>> connections = Lists.newArrayList(); availableConnections.drainTo(connections); activeCount.addAndGet(-connections.size()); for (Connection<CL> connection : connections) { try { closedConnections.inc...
java
public void fillMutationBatch(ColumnListMutation<ByteBuffer> clm, Object entity) throws IllegalArgumentException, IllegalAccessException { List<?> list = (List<?>) containerField.get(entity); if (list != null) { for (Object element : list) { fillColumnMutation(clm, element); ...
java
public void fillColumnMutation(ColumnListMutation<ByteBuffer> clm, Object entity) { try { ByteBuffer columnName = toColumnName(entity); ByteBuffer value = valueMapper.toByteBuffer(entity); clm.putColumn(columnName, value); } catch(Exception e) { ...
java
public boolean setField(Object entity, ColumnList<ByteBuffer> columns) throws Exception { List<Object> list = getOrCreateField(entity); // Iterate through columns and add embedded entities to the list for (com.netflix.astyanax.model.Column<ByteBuffer> c : columns) { list...
java
public List<ByteBuffer> getBufferList() { List<ByteBuffer> result = buffers; reset(); for (ByteBuffer buffer : result) { buffer.flip(); } return result; }
java
public void prepend(List<ByteBuffer> lists) { for (ByteBuffer buffer : lists) { buffer.position(buffer.limit()); } buffers.addAll(0, lists); }
java
public <C2> ColumnPath<C> append(C2 name, Serializer<C2> ser) { path.add(ByteBuffer.wrap(ser.toBytes(name))); return this; }
java
public static java.util.UUID getUniqueTimeUUIDinMillis() { return new java.util.UUID(UUIDGen.newTime(), UUIDGen.getClockSeqAndNode()); }
java
public static ByteBuffer asByteBuffer(java.util.UUID uuid) { if (uuid == null) { return null; } return ByteBuffer.wrap(asByteArray(uuid)); }
java
public static UUID uuid(ByteBuffer bb) { bb = bb.slice(); return new UUID(bb.getLong(), bb.getLong()); }
java
private ByteBuffer toColumnName(Object obj) { SimpleCompositeBuilder composite = new SimpleCompositeBuilder(bufferSize, Equality.EQUAL); // Iterate through each component and add to a CompositeType structure for (FieldMapper<?> mapper : components) { try { composite....
java
T constructEntity(K id, com.netflix.astyanax.model.Column<ByteBuffer> column) { try { // First, construct the parent class and give it an id T entity = clazz.newInstance(); idMapper.setValue(entity, id); setEntityFieldsFromColumnName(entity, column.getRawName().du...
java
Object fromColumn(K id, com.netflix.astyanax.model.Column<ByteBuffer> c) { try { // Allocate a new entity Object entity = clazz.newInstance(); idMapper.setValue(entity, id); setEntityFieldsFromColumnName(entity, c.getRawName().duplicate()); ...
java
public String getComparatorType() { StringBuilder sb = new StringBuilder(); sb.append("CompositeType("); sb.append(StringUtils.join( Collections2.transform(components, new Function<FieldMapper<?>, String>() { public String apply(FieldMapper<?> input) { ...
java
public ByteBuffer readData() throws Exception { ColumnList<C> result = keyspace .prepareQuery(columnFamily) .setConsistencyLevel(consistencyLevel) .getKey(key) .execute() .getResult(); boolean hasColumn ...
java
public static <T> Callable<T> decorateWithBarrier(CyclicBarrier barrier, Callable<T> callable) { return new BarrierCallableDecorator<T>(barrier, callable); }
java
private synchronized <R> OperationResult<R> executeDdlOperation(AbstractOperationImpl<R> operation, RetryPolicy retry) throws OperationException, ConnectionException { ConnectionException lastException = null; for (int i = 0; i < 2; i++) { operation.setPinnedHost(ddlHost); ...
java
private void precheckSchemaAgreement(Client client) throws Exception { Map<String, List<String>> schemas = client.describe_schema_versions(); if (schemas.size() > 1) { throw new SchemaDisagreementException("Can't change schema due to pending schema agreement"); } }
java
private ThriftColumnFamilyDefinitionImpl toThriftColumnFamilyDefinition(Map<String, Object> options, ColumnFamily columnFamily) { ThriftColumnFamilyDefinitionImpl def = new ThriftColumnFamilyDefinitionImpl(); Map<String, Object> internalOptions = Maps.newHashMap(); if (options != null) ...
java
private ThriftKeyspaceDefinitionImpl toThriftKeyspaceDefinition(final Map<String, Object> options) { ThriftKeyspaceDefinitionImpl def = new ThriftKeyspaceDefinitionImpl(); Map<String, Object> internalOptions = Maps.newHashMap(); if (options != null) internalOptions.putAll(op...
java
private List<Future<Boolean>> startTasks(ExecutorService executor, List<Callable<Boolean>> callables) { List<Future<Boolean>> tasks = Lists.newArrayList(); for (Callable<Boolean> callable : callables) { tasks.add(executor.submit(callable)); } return tasks; }
java
public <T, K> void remove(ColumnFamily<K, String> columnFamily, T item) throws Exception { @SuppressWarnings({ "unchecked" }) Class<T> clazz = (Class<T>) item.getClass(); Mapping<T> mapping = getMapping(clazz); @SuppressWarnings({ "unchecked" }) Class<K> idFieldClass ...
java
public <T, K> List<T> getAll(ColumnFamily<K, String> columnFamily, Class<T> itemClass) throws Exception { Mapping<T> mapping = getMapping(itemClass); Rows<K, String> result = keyspace.prepareQuery(columnFamily) .getAllRows().execute().getResult(); return mapping.getAl...
java
public <T> Mapping<T> getMapping(Class<T> clazz) { return (cache != null) ? cache.getMapping(clazz, annotationSet) : new Mapping<T>(clazz, annotationSet); }
java
@Override public void start() { ConnectionPoolMBeanManager.getInstance().registerMonitor(config.getName(), this); String seeds = config.getSeeds(); if (seeds != null && !seeds.isEmpty()) { setHosts(config.getSeedHosts()); } config.getLatencyScoreStrategy().start...
java
@Override public void shutdown() { ConnectionPoolMBeanManager.getInstance().unregisterMonitor(config.getName(), this); for (Entry<Host, HostConnectionPool<CL>> pool : hosts.entrySet()) { pool.getValue().shutdown(); } config.getLatencyScoreStrategy().shutdown(); ...
java
@Override public final synchronized boolean addHost(Host host, boolean refresh) { // Already exists if (hosts.containsKey(host)) { // Check to see if we are adding token ranges or if the token ranges changed // which will force a rebuild of the token topology Host...
java
@Override public List<HostConnectionPool<CL>> getActivePools() { return ImmutableList.copyOf(topology.getAllPools().getPools()); }
java
@Override public synchronized boolean removeHost(Host host, boolean refresh) { HostConnectionPool<CL> pool = hosts.remove(host); if (pool != null) { topology.removePool(pool); rebuildPartitions(); monitor.onHostRemoved(host); pool.shutdown(); ...
java
@Override public <R> OperationResult<R> executeWithFailover(Operation<CL, R> op, RetryPolicy retry) throws ConnectionException { //Tracing operation OperationTracer opsTracer = config.getOperationTracer(); final AstyanaxContext context = opsTracer.getAstyanaxContext(); if(co...
java
public BoundStatement getBoundStatement(Q query, boolean useCaching) { PreparedStatement pStatement = getPreparedStatement(query, useCaching); return bindValues(pStatement, query); }
java
private Where addWhereClauseForRowRange(String keyAlias, Select select, RowRange<?> rowRange) { Where where = null; boolean keyIsPresent = false; boolean tokenIsPresent = false; if (rowRange.getStartKey() != null || rowRange.getEndKey() != null) { keyIsPresent = true; } if (rowRange.getStartToken() !...
java
private void bindWhereClauseForRowRange(List<Object> values, RowRange<?> rowRange) { boolean keyIsPresent = false; boolean tokenIsPresent = false; if (rowRange.getStartKey() != null || rowRange.getEndKey() != null) { keyIsPresent = true; } if (rowRange.getStartToken() != null || rowRange.getEndToken() !...
java
@Override public OperationResult<R> tryOperation(Operation<CL, R> operation) throws ConnectionException { Operation<CL, R> filteredOperation = config.getOperationFilterFactory().attachFilter(operation); while (true) { attemptCounter++; try { conne...
java
@Override public String getVersion() throws ConnectionException { return connectionPool.executeWithFailover( new AbstractOperationImpl<String>(tracerFactory.newTracer(CassandraOperationType.GET_VERSION)) { @Override public String internalExecute(Client...
java
@Override public Boolean call() throws Exception { error.set(null); List<Callable<Boolean>> subtasks = Lists.newArrayList(); // We are iterating the entire ring using an arbitrary number of threads if (this.concurrencyLevel != null || startToken != null|| endToken !...
java
protected XMLStreamReader createStreamReader(InputStream input) throws XMLStreamException { if (inputFactory == null) { inputFactory = XMLInputFactory.newInstance(); } return inputFactory.createXMLStreamReader(input); }
java
public ThriftType getThriftType(Type javaType) throws IllegalArgumentException { ThriftType thriftType = getThriftTypeFromCache(javaType); if (thriftType == null) { thriftType = buildThriftType(javaType); } return thriftType; }
java
public <T extends Enum<T>> ThriftEnumMetadata<?> getThriftEnumMetadata(Class<?> enumClass) { ThriftEnumMetadata<?> enumMetadata = enums.get(enumClass); if (enumMetadata == null) { enumMetadata = new ThriftEnumMetadataBuilder<>((Class<T>) enumClass).build(); ThriftEnumMetadat...
java
public <T> ThriftStructMetadata getThriftStructMetadata(Type structType) { ThriftStructMetadata structMetadata = structs.get(structType); Class<?> structClass = TypeToken.of(structType).getRawType(); if (structMetadata == null) { if (structClass.isAnnotationPresent(ThriftStruct.c...
java
private FieldDefinition declareTypeField() { FieldDefinition typeField = new FieldDefinition(a(PRIVATE, FINAL), "type", type(ThriftType.class)); classDefinition.addField(typeField); // add constructor parameter to initialize this field parameters.add(typeField, ThriftType.struct(met...
java
private Map<Short, FieldDefinition> declareCodecFields() { Map<Short, FieldDefinition> codecFields = new TreeMap<>(); for (ThriftFieldMetadata fieldMetadata : metadata.getFields()) { if (needsCodec(fieldMetadata)) { ThriftCodec<?> codec = codecManager.getCodec(fieldMetad...
java
private void defineConstructor() { // // declare the constructor MethodDefinition constructor = new MethodDefinition( a(PUBLIC), "<init>", type(void.class), parameters.getParameters() ); // invoke super (Object)...
java
private void defineGetTypeMethod() { classDefinition.addMethod( new MethodDefinition(a(PUBLIC), "getType", type(ThriftType.class)) .loadThis() .getField(codecType, typeField) .retObject() ); }
java
private void defineReadStructMethod() { MethodDefinition read = new MethodDefinition( a(PUBLIC), "read", structType, arg("protocol", TProtocol.class) ).addException(Exception.class); // TProtocolReader reader = new TProtocolRea...
java
private void injectStructFields(MethodDefinition read, LocalVariableDefinition instance, Map<Short, LocalVariableDefinition> structData) { for (ThriftFieldMetadata field : metadata.getFields(THRIFT_FIELD)) { injectField(read, field, instance, structData.get(field.getId())); } }
java
private void injectStructMethods(MethodDefinition read, LocalVariableDefinition instance, Map<Short, LocalVariableDefinition> structData) { for (ThriftMethodInjection methodInjection : metadata.getMethodInjections()) { injectMethod(read, methodInjection, instance, structData); } }
java
private void defineReadUnionMethod() { MethodDefinition read = new MethodDefinition( a(PUBLIC), "read", structType, arg("protocol", TProtocol.class) ).addException(Exception.class); // TProtocolReader reader = new TProtocolRead...
java
private Map<Short, LocalVariableDefinition> readSingleFieldValue(MethodDefinition read) { LocalVariableDefinition protocol = read.getLocalVariable("reader"); // declare and init local variables here Map<Short, LocalVariableDefinition> unionData = new TreeMap<>(); for (ThriftFieldMet...
java
private void invokeFactoryMethod(MethodDefinition read, Map<Short, LocalVariableDefinition> structData, LocalVariableDefinition instance) { if (metadata.getBuilderMethod().isPresent()) { ThriftMethodInjection builderMethod = metadata.getBuilderMethod().get(); read.loadVariable(instan...
java
private void defineReadBridgeMethod() { classDefinition.addMethod( new MethodDefinition(a(PUBLIC, BRIDGE, SYNTHETIC), "read", type(Object.class), arg("protocol", TProtocol.class)) .addException(Exception.class) .loadThis() ...
java
private void defineWriteBridgeMethod() { classDefinition.addMethod( new MethodDefinition(a(PUBLIC, BRIDGE, SYNTHETIC), "write", null, arg("struct", Object.class), arg("protocol", TProtocol.class)) .addException(Exception.class) .loadThis() ...
java
public static ScopedBindingBuilder bindFrameCodecFactory(Binder binder, String key, Class<? extends ThriftFrameCodecFactory> frameCodecFactoryClass) { return newMapBinder(binder, String.class, ThriftFrameCodecFactory.class).addBinding(key).to(frameCodecFactoryClass); }
java
public static ScopedBindingBuilder bindProtocolFactory(Binder binder, String key, Class<? extends TDuplexProtocolFactory> protocolFactoryClass) { return newMapBinder(binder, String.class, TDuplexProtocolFactory.class).addBinding(key).to(protocolFactoryClass); }
java
public static ScopedBindingBuilder bindWorkerExecutor(Binder binder, String key, Class<? extends ExecutorService> executorServiceClass) { return workerExecutorBinder(binder).addBinding(key).to(executorServiceClass); }
java
public static Collection<Method> findAnnotatedMethods(Class<?> type, Class<? extends Annotation> annotation) { List<Method> result = new ArrayList<>(); // gather all publicly available methods // this returns everything, even if it's declared in a parent for (Method method : type.ge...
java
@Override public Void read(TProtocol protocol) throws Exception { Preconditions.checkNotNull(protocol, "protocol is null"); return null; }
java
@Override public void write(Void value, TProtocol protocol) throws Exception { Preconditions.checkNotNull(protocol, "protocol is null"); }
java
@Config("thrift.max-frame-size") public ThriftServerConfig setMaxFrameSize(DataSize maxFrameSize) { checkArgument(maxFrameSize.toBytes() <= 0x3FFFFFFF); this.maxFrameSize = maxFrameSize; return this; }
java
public HostAndPort getRemoteAddress(Object client) { NiftyClientChannel niftyChannel = getNiftyChannel(client); try { Channel nettyChannel = niftyChannel.getNettyChannel(); SocketAddress address = nettyChannel.getRemoteAddress(); InetSocketAddress inetAddress = (...
java
protected final Set<String> inferThriftFieldIds() { Set<String> fieldsWithConflictingIds = new HashSet<>(); // group fields by explicit name or by name extracted from field, method or property Multimap<String, FieldMetadata> fieldsByExplicitOrExtractedName = Multimaps.index(fields, getOrExt...
java
protected final void verifyFieldType(short id, String name, Collection<FieldMetadata> fields, ThriftCatalog catalog) { boolean isSupportedType = true; for (FieldMetadata field : fields) { if (!catalog.isSupportedStructFieldType(field.getJavaType())) { metadataErrors.addEr...
java
private static String escapeJavaString(String input) { int len = input.length(); // assume (for performance, not for correctness) that string will not expand by more than 10 chars StringBuilder out = new StringBuilder(len + 10); for (int i = 0; i < len; i++) { char c = in...
java
public void addCodec(ThriftCodec<?> codec) { catalog.addThriftType(codec.getType()); typeCodecs.put(codec.getType(), codec); }
java
private Object convertToThrift(Class<?> cls) { Set<ThriftService> serviceAnnotations = ReflectionHelper.getEffectiveClassAnnotations(cls, ThriftService.class); if (!serviceAnnotations.isEmpty()) { // it's a service ThriftServiceMetadata serviceMetadata = new ThriftServiceMeta...
java
static String parse(final byte content[], final Metadata metadata, final int limit) throws TikaException, IOException { // check that its not unprivileged code like a script SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new SpecialPermission()...
java
public static void initializeSmsRadarService(Context context, SmsListener smsListener) { SmsRadar.smsListener = smsListener; Intent intent = new Intent(context, SmsRadarService.class); context.startService(intent); }
java
public static void stopSmsRadarService(Context context) { SmsRadar.smsListener = null; Intent intent = new Intent(context, SmsRadarService.class); context.stopService(intent); }
java
private void saveAttributesBeforeInclude(final Invocation inv) { ServletRequest request = inv.getRequest(); logger.debug("Taking snapshot of request attributes before include"); Map<String, Object> attributesSnapshot = new HashMap<String, Object>(); Enumeration<?> attrNames = request.get...
java
private void restoreRequestAttributesAfterInclude(Invocation inv) { logger.debug("Restoring snapshot of request attributes after include"); HttpServletRequest request = inv.getRequest(); @SuppressWarnings("unchecked") Map<String, Object> attributesSnapshot = (Map<String, Object>) inv ...
java
protected boolean isCandidateComponent(MetadataReader metadataReader) throws IOException { for (TypeFilter tf : this.excludeFilters) { if (tf.match(metadataReader, this.metadataReaderFactory)) { return false; } } for (TypeFilter tf : this.includeFilters) {...
java
@Override protected AbstractPropertyBindingResult getInternalBindingResult() { AbstractPropertyBindingResult bindingResult = super.getInternalBindingResult(); // by rose PropertyEditorRegistry registry = bindingResult.getPropertyEditorRegistry(); registry.registerCustomEditor(...
java
public final byte[] decode(byte[] source, int off, int len) { int len34 = len * 3 / 4; byte[] outBuff = new byte[len34]; // upper limit on size of output int outBuffPosn = 0; byte[] b4 = new byte[4]; int b4Posn = 0; int i = 0; byte sbiCrop = 0; byte sbiDecode = 0; for (i = off; i < off + ...
java
protected void initialize() { this.mappedFields = new HashMap<String, PropertyDescriptor>(); PropertyDescriptor[] pds = BeanUtils.getPropertyDescriptors(mappedClass); if (checkProperties) { mappedProperties = new HashSet<String>(); } for (int i = 0; i < pds.length; i+...
java
private String[] underscoreName(String camelCaseName) { StringBuilder result = new StringBuilder(); if (camelCaseName != null && camelCaseName.length() > 0) { result.append(camelCaseName.substring(0, 1).toLowerCase()); for (int i = 1; i < camelCaseName.length(); i++) { ...
java
public Options createOptions(OptionsConfiguration optionsConfiguration) throws MojoExecutionException { final Options options = new Options(); options.verbose = optionsConfiguration.isVerbose(); options.debugMode = optionsConfiguration.isDebugMode(); options.classpaths.addAll(optionsConfiguration.getPlugin...
java
public static InputSource getInputSource(File file) { try { final URL url = file.toURI().toURL(); return getInputSource(url); } catch (MalformedURLException e) { return new InputSource(file.getPath()); } }
java
public void execute() throws MojoExecutionException { synchronized (lock) { injectDependencyDefaults(); resolveArtifacts(); // Install project dependencies into classloader's class path // and execute xjc2. final ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader(); ...
java
protected void setupMavenPaths() { if (getAddCompileSourceRoot()) { getProject().addCompileSourceRoot(getGenerateDirectory().getPath()); } if (getAddTestCompileSourceRoot()) { getProject().addTestCompileSourceRoot(getGenerateDirectory().getPath()); } if (getEpisode() && getEpisodeFile() != null...
java
protected void logConfiguration() throws MojoExecutionException { super.logConfiguration(); // TODO clean up getLog().info("catalogURIs (calculated):" + getCatalogURIs()); getLog().info("resolvedCatalogURIs (calculated):" + getResolvedCatalogURIs()); getLog().info("schemaFiles (calculated):" + getSchemaF...
java
protected CatalogResolver createCatalogResolver() throws MojoExecutionException { final CatalogManager catalogManager = new CatalogManager(); catalogManager.setIgnoreMissingProperties(true); catalogManager.setUseStaticCatalog(false); // TODO Logging if (getLog().isDebugEnabled()) { catalogManager.set...
java
MeetMeRoomImpl getOrCreateRoomImpl(String roomNumber) { MeetMeRoomImpl room; boolean created = false; synchronized (rooms) { room = rooms.get(roomNumber); if (room == null) { room = new MeetMeRoomImpl(server, roomNumber); ...
java
public String getDecodedMessage() { if (message == null) { return null; } return new String(Base64.base64ToByteArray(message), Charset.forName("UTF-8")); }
java
public static CallerID buildFromComponents(final String firstname, final String lastname, final String number) { String name = ""; //$NON-NLS-1$ if (firstname != null) { name += firstname.trim(); } if (lastname != null) { if (name.length() > 0...
java
void idChanged(Date date, String id) { final String oldId = this.id; if (oldId != null && oldId.equals(id)) { return; } this.id = id; firePropertyChange(PROPERTY_ID, oldId, id); }
java
void nameChanged(Date date, String name) { final String oldName = this.name; if (oldName != null && oldName.equals(name)) { return; } this.name = name; firePropertyChange(PROPERTY_NAME, oldName, name); }
java
void setCallerId(final CallerId callerId) { final CallerId oldCallerId = this.callerId; this.callerId = callerId; firePropertyChange(PROPERTY_CALLER_ID, oldCallerId, callerId); }
java
synchronized void stateChanged(Date date, ChannelState state) { final ChannelStateHistoryEntry historyEntry; final ChannelState oldState = this.state; if (oldState == state) { return; } // System.err.println(id + " state change: " + oldState + " => " + s...
java
void setAccount(String account) { final String oldAccount = this.account; this.account = account; firePropertyChange(PROPERTY_ACCOUNT, oldAccount, account); }
java
void extensionVisited(Date date, Extension extension) { final Extension oldCurrentExtension = getCurrentExtension(); final ExtensionHistoryEntry historyEntry; historyEntry = new ExtensionHistoryEntry(date, extension); synchronized (extensionHistory) { extensionH...
java
public List<AsteriskChannel> getDialedChannels() { final List<AsteriskChannel> copy; synchronized (dialedChannels) { copy = new ArrayList<>(dialedChannels); } return copy; }
java
synchronized void channelLinked(Date date, AsteriskChannel linkedChannel) { final AsteriskChannel oldLinkedChannel; synchronized (this.linkedChannels) { if (this.linkedChannels.isEmpty()) { oldLinkedChannel = null; this.linkedChannels.a...
java
protected AsteriskVersion determineVersionByCoreSettings() throws Exception { ManagerResponse response = sendAction(new CoreSettingsAction()); if (!(response instanceof CoreSettingsResponse)) { // NOTE: you need system or reporting permissions logger.info("Could not ...
java
protected AsteriskVersion determineVersionByCoreShowVersion() throws Exception { final ManagerResponse coreShowVersionResponse = sendAction(new CommandAction(CMD_SHOW_VERSION)); if (coreShowVersionResponse == null || !(coreShowVersionResponse instanceof CommandResponse)) { // th...
java