本文整理汇总了Java中com.infobright.io.InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT属性的典型用法代码示例。如果您正苦于以下问题:Java InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT属性的具体用法?Java InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT怎么用?Java InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.infobright.io.InfobrightNamedPipeLoader
的用法示例。
在下文中一共展示了InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readRep
@Override
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
super.readRep(rep, id_step, databases, counters);
try {
dataFormat = Enum.valueOf(DataFormat.class, rep.getStepAttributeString(id_step, TAG_DATA_FORMAT));
String agentPortStr = rep.getStepAttributeString(id_step, TAG_AGENT_PORT);
if (agentPortStr == null) {
agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
} else {
agentPort = Integer.parseInt(agentPortStr);
}
String charsetName = rep.getStepAttributeString(id_step, TAG_CHARSET);
charset = (charsetName == null ? InfobrightNamedPipeLoader.DEFAULT_CHARSET :
Charset.forName(charsetName));
debugFile = rep.getStepAttributeString(id_step, TAG_DEBUG_FILE);
} catch (Exception e) {
throw new KettleException("Unexpected error reading step information from the repository", e);
}
}
示例2: readRep
@Override
public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException {
super.readRep( rep, metaStore, id_step, databases );
try {
dataFormat = Enum.valueOf( DataFormat.class, rep.getStepAttributeString( id_step, TAG_DATA_FORMAT ) );
String agentPortStr = rep.getStepAttributeString( id_step, TAG_AGENT_PORT );
if ( agentPortStr == null ) {
agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
} else {
agentPort = Integer.parseInt( agentPortStr );
}
String charsetName = rep.getStepAttributeString( id_step, TAG_CHARSET );
charset =
( charsetName == null ? InfobrightNamedPipeLoader.DEFAULT_CHARSET : Charset.forName( charsetName ) );
debugFile = rep.getStepAttributeString( id_step, TAG_DEBUG_FILE );
} catch ( Exception e ) {
throw new KettleException( "Unexpected error reading step information from the repository", e );
}
}
示例3: parsePort
/**
*
* @param args
* @return
* @throws UsageException
* @throws NumberFormatException
*/
private int parsePort(String[] args) throws UsageException {
int port2 = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
for (int i = 0; i < args.length; i++) {
if (PORT_FLAG.equals(args[i])) {
if (i < args.length - 1) {
port2 = Integer.parseInt(args[i + 1]);
break;
} else {
throw new UsageException();
}
}
}
return port2;
}
示例4: setDefault
@Override
public void setDefault() {
this.dataFormat = DataFormat.TXT_VARIABLE; // default for ICE
// this.dataFormat = DataFormat.BINARY; // default for IEE
this.agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
this.charset = InfobrightNamedPipeLoader.DEFAULT_CHARSET;
}
示例5: setDefault
public void setDefault() {
this.dataFormat = DataFormat.TXT_VARIABLE; // default for ICE
// this.dataFormat = DataFormat.BINARY; // default for IEE
this.agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
this.charset = InfobrightNamedPipeLoader.DEFAULT_CHARSET;
}