Example usage for java.lang Short toString

List of usage examples for java.lang Short toString

Introduction

In this page you can find the example usage for java.lang Short toString.

Prototype

public static String toString(short s) 

Source Link

Document

Returns a new String object representing the specified short .

Usage

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamClusterId32Gen.java

public String toString() {
    String ret = "<CFAccClusterId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamClusterId32Gen.java

public String toString() {
    String ret = "<CFAstClusterId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternet.CFInternetISOCurrencyPKey.java

public String toString() {
    String ret = "<CFInternetISOCurrencyPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\""
            + "/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternet.CFInternetISOLanguagePKey.java

public String toString() {
    String ret = "<CFInternetISOLanguagePKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\""
            + "/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamClusterId64Gen.java

public String toString() {
    String ret = "<CFAccClusterId64Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Long.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamClusterId64Gen.java

public String toString() {
    String ret = "<CFAstClusterId64Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Long.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswRam.CFFswRamClusterId64Gen.java

public String toString() {
    String ret = "<CFFswClusterId64Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Long.toString(nextId) + "\"/>";
    return (ret);
}

From source file:com.baidu.oped.apm.profiler.modifier.connector.httpclient3.interceptor.ExecuteInterceptor.java

@Override
public void before(Object target, Object[] args) {
    if (isDebug) {
        logger.beforeInterceptor(target, args);
    }/*from w ww.  jav  a2s. co  m*/

    final Trace trace = traceContext.currentRawTraceObject();

    if (trace == null) {
        return;
    }

    final HttpMethod httpMethod = getHttpMethod(args);
    final boolean sampling = trace.canSampled();

    if (!sampling) {
        if (isDebug) {
            logger.debug("set Sampling flag=false");
        }
        if (httpMethod != null) {
            httpMethod.setRequestHeader(Header.HTTP_SAMPLED.toString(), SamplingFlagUtils.SAMPLING_RATE_FALSE);
        }

        return;
    }

    trace.traceBlockBegin();
    trace.markBeforeTime();
    TraceId nextId = trace.getTraceId().getNextTraceId();
    trace.recordNextSpanId(nextId.getSpanId());
    trace.recordServiceType(ServiceType.HTTP_CLIENT);

    if (httpMethod != null) {
        httpMethod.setRequestHeader(Header.HTTP_TRACE_ID.toString(), nextId.getTransactionId());
        httpMethod.setRequestHeader(Header.HTTP_SPAN_ID.toString(), String.valueOf(nextId.getSpanId()));
        httpMethod.setRequestHeader(Header.HTTP_PARENT_SPAN_ID.toString(),
                String.valueOf(nextId.getParentSpanId()));
        httpMethod.setRequestHeader(Header.HTTP_FLAGS.toString(), String.valueOf(nextId.getFlags()));
        httpMethod.setRequestHeader(Header.HTTP_PARENT_APPLICATION_NAME.toString(),
                traceContext.getApplicationName());
        httpMethod.setRequestHeader(Header.HTTP_PARENT_APPLICATION_TYPE.toString(),
                Short.toString(traceContext.getServerTypeCode()));
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_1.CFEnSyntaxRam.CFEnSyntaxRamTenantId32Gen.java

public String toString() {
    String ret = "<CFEnSyntaxTenantId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashRam.CFGCashRamClusterId32Gen.java

public String toString() {
    String ret = "<CFGCashClusterId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}