本文整理了Java中flex.messaging.log.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:flex.messaging.log.Logger
类名称:Logger
方法名:info
[英]Logs out an info message.
[中]注销一条信息消息。
代码示例来源:origin: com.adobe.flex/com.springsource.flex.messaging
/**
* Receive the next message from the underlying MessageConsumer within the
* specified timeout interval.
*
* @param timeout The number of milliseconds to wait for a new message.
* @throws JMSException The thrown JMS exception.
*/
public Message receive(long timeout) throws JMSException
{
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info(Thread.currentThread()
+ " JMS consumer for JMS destination '" + destinationJndiName
+ "' is waiting " + timeout + " ms for new message to arrive");
return consumer.receive(timeout);
}
代码示例来源:origin: com.adobe.flex/com.springsource.flex.messaging
/**
* Receive the next message from the underlying MessageConsumer or wait
* indefinetely until a message arrives if there is no message.
*
* @return The received JMS message.
* @throws JMSException The thrown JMS exception.
*/
public Message receive() throws JMSException
{
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info(Thread.currentThread()
+ " JMS consumer for JMS destination '" + destinationJndiName
+ "' is waiting forever until a new message arrives.");
return consumer.receive();
}
代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-core
/**
* Receive the next message from the underlying MessageConsumer or wait
* indefinetely until a message arrives if there is no message.
*
* @return The received JMS message.
* @throws JMSException The thrown JMS exception.
*/
public Message receive() throws JMSException
{
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info(Thread.currentThread()
+ " JMS consumer for JMS destination '" + destinationJndiName
+ "' is waiting forever until a new message arrives.");
return consumer.receive();
}
代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-core
/**
* Receive the next message from the underlying MessageConsumer within the
* specified timeout interval.
*
* @param timeout The number of milliseconds to wait for a new message.
* @throws JMSException The thrown JMS exception.
*/
public Message receive(long timeout) throws JMSException
{
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info(Thread.currentThread()
+ " JMS consumer for JMS destination '" + destinationJndiName
+ "' is waiting " + timeout + " ms for new message to arrive");
return consumer.receive(timeout);
}
代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-core
private int internalParsePort(String url)
{
int port = ChannelSettings.parsePort(url);
// If there is no specified port, log an info message as urls without ports are supported
if (port == 0 && Log.isInfo())
log.info("No port specified in channel URL: {0}", new Object[]{url});
return port == -1? 0 : port; // Replace -1 with 0.
}
代码示例来源:origin: apache/flex-blazeds
private int internalParsePort(String url)
{
int port = ChannelSettings.parsePort(url);
// If there is no specified port, log an info message as urls without ports are supported
if (port == 0 && Log.isInfo())
log.info("No port specified in channel URL: {0}", new Object[]{url});
return port == -1? 0 : port; // Replace -1 with 0.
}
代码示例来源:origin: apache/flex-blazeds
/**
* Starts the <code>JMSProducer</code>. Subclasses should call <code>super.start</code>.
*/
public void start() throws NamingException, JMSException
{
super.start();
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info("JMS producer for JMS destination '"
+ destinationJndiName +"' is starting.");
}
代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-core
/**
* Starts the <code>JMSProducer</code>. Subclasses should call <code>super.start</code>.
*/
public void start() throws NamingException, JMSException
{
super.start();
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info("JMS producer for JMS destination '"
+ destinationJndiName +"' is starting.");
}
代码示例来源:origin: com.adobe.flex/com.springsource.flex.messaging
/**
* Starts the <code>JMSProducer</code>. Subclasses should call <code>super.start</code>.
*/
public void start() throws NamingException, JMSException
{
super.start();
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info("JMS producer for JMS destination '"
+ destinationJndiName +"' is starting.");
}
代码示例来源:origin: com.adobe.flex/com.springsource.flex.messaging
/**
* Starts the <code>JMSConsumer</code>. Subclasses should call <code>super.start</code>.
*
* @throws NamingException The thrown naming exception.
* @throws JMSException The thrown JMS exception.
*/
public void start() throws NamingException, JMSException
{
super.start();
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info("JMS consumer for JMS destination '"
+ destinationJndiName + "' is starting.");
}
代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-core
/**
* Starts the <code>JMSConsumer</code>. Subclasses should call <code>super.start</code>.
*
* @throws NamingException The thrown naming exception.
* @throws JMSException The thrown JMS exception.
*/
public void start() throws NamingException, JMSException
{
super.start();
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info("JMS consumer for JMS destination '"
+ destinationJndiName + "' is starting.");
}
代码示例来源:origin: apache/flex-blazeds
/**
* Starts the <code>JMSConsumer</code>. Subclasses should call <code>super.start</code>.
*
* @throws NamingException The thrown naming exception.
* @throws JMSException The thrown JMS exception.
*/
public void start() throws NamingException, JMSException
{
super.start();
if (Log.isInfo())
Log.getLogger(JMSAdapter.LOG_CATEGORY).info("JMS consumer for JMS destination '"
+ destinationJndiName + "' is starting.");
}
代码示例来源:origin: apache/flex-blazeds
protected void logInfo(ProxyContext context)
{
if (Log.isInfo())
{
Target target = context.getTarget();
String prefix = "-- " + context.getMethod() + " : ";
int targetPort = target.getUrl().getPort();
String targetURL = target.getUrl().getProtocol() + "://" + target.getUrl().getHost() +
(targetPort == -1 ? "" : ":" + targetPort) + target.getEncodedPath();
Log.getLogger(HTTPProxyService.LOG_CATEGORY).info(prefix + targetURL);
}
}
代码示例来源:origin: com.adobe.flex/com.springsource.flex.messaging.services.http
protected void logInfo(ProxyContext context)
{
if (Log.isInfo())
{
Target target = context.getTarget();
String prefix = "-- " + context.getMethod() + " : ";
int targetPort = target.getUrl().getPort();
String targetURL = target.getUrl().getProtocol() + "://" + target.getUrl().getHost() +
(targetPort == -1 ? "" : ":" + targetPort) + target.getEncodedPath();
Log.getLogger(HTTPProxyService.LOG_CATEGORY).info(prefix + targetURL);
}
}
}
代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-core
/**
*
* Implements TimeoutCapable.
* Inform the object that it has timed out.
*/
public void timeout()
{
if (Log.isInfo())
Log.getLogger(logCategory).info("Endpoint with id '" + endpoint.getId() + "' is timing out"
+ " a streaming connection for the FlexClient with id '" + flexClient.getId() + "'");
close(true /* disconnect client Channel */);
}
代码示例来源:origin: com.adobe.flex/com.springsource.flex.messaging
/**
* @exclude
* Implements TimeoutCapable.
* Inform the object that it has timed out.
*/
public void timeout()
{
if (Log.isInfo())
Log.getLogger(logCategory).info("Endpoint with id '" + endpoint.getId() + "' is timing out"
+ " a streaming connection for the FlexClient with id '" + flexClient.getId() + "'");
close(true /* disconnect client Channel */);
}
代码示例来源:origin: apache/flex-blazeds
/**
*
* Implements TimeoutCapable.
* Inform the object that it has timed out.
*/
public void timeout()
{
if (Log.isInfo())
Log.getLogger(logCategory).info("Endpoint with id '" + endpoint.getId() + "' is timing out"
+ " a streaming connection for the FlexClient with id '" + flexClient.getId() + "'");
close(true /* disconnect client Channel */);
}
代码示例来源:origin: com.adobe.flex/com.springsource.flex.messaging
/**
* Handle session destruction events. This will be invoked when the notifier's
* associated session is invalidated, and this will trigger the notifier to close.
*
* @param flexSession The FlexSession being invalidated.
*/
public void sessionDestroyed(FlexSession flexSession)
{
if (Log.isInfo())
Log.getLogger(logCategory).info("Endpoint with id '" + endpoint.getId() + "' is closing"
+ " a streaming connection for the FlexClient with id '" + flexClient.getId() + "'"
+ " since its associated session has been destroyed.");
close(true /* disconnect client Channel */);
}
代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-core
/**
* Handle session destruction events. This will be invoked when the notifier's
* associated session is invalidated, and this will trigger the notifier to close.
*
* @param flexSession The FlexSession being invalidated.
*/
public void sessionDestroyed(FlexSession flexSession)
{
if (Log.isInfo())
Log.getLogger(logCategory).info("Endpoint with id '" + endpoint.getId() + "' is closing"
+ " a streaming connection for the FlexClient with id '" + flexClient.getId() + "'"
+ " since its associated session has been destroyed.");
close(true /* disconnect client Channel */);
}
代码示例来源:origin: apache/flex-blazeds
/**
* Handle session destruction events. This will be invoked when the notifier's
* associated session is invalidated, and this will trigger the notifier to close.
*
* @param flexSession The FlexSession being invalidated.
*/
public void sessionDestroyed(FlexSession flexSession)
{
if (Log.isInfo())
Log.getLogger(logCategory).info("Endpoint with id '" + endpoint.getId() + "' is closing"
+ " a streaming connection for the FlexClient with id '" + flexClient.getId() + "'"
+ " since its associated session has been destroyed.");
close(true /* disconnect client Channel */);
}
内容来源于网络,如有侵权,请联系作者删除!