本文整理了Java中org.granite.logging.Logger.debug()
方法的一些代码示例,展示了Logger.debug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()
方法的具体详情如下:
包路径:org.granite.logging.Logger
类名称:Logger
方法名:debug
暂无
代码示例来源:origin: org.graniteds/granite-client
/**
* Reads flushed stored object
*
* @return the stored object
* @throws IOException
*/
protected Object readFlushedSO() throws IOException {
int index = dataInputStream.readUnsignedShort();
log.debug("Object Index: %d", index);
return storedObjects.get(index);
}
代码示例来源:origin: org.graniteds/granite-client-java
/**
* Store object in internal array
*
* @param o the object to store
*/
private void storeObject(Object o) {
storedObjects.add(o);
log.debug("storedObjects.size: %d", storedObjects.size());
}
代码示例来源:origin: org.graniteds/granite-client
/**
* Store object in internal array
*
* @param o the object to store
*/
private void storeObject(Object o) {
storedObjects.add(o);
log.debug("storedObjects.size: %d", storedObjects.size());
}
代码示例来源:origin: org.graniteds/granite-client
protected IndexedJavaClassDescriptor getFromStoredClassDescriptors(Class<?> clazz) {
if (debug) log.debug("getFromStoredClassDescriptors(clazz=%s)", clazz);
String name = JavaClassDescriptor.getClassName(clazz);
IndexedJavaClassDescriptor iDesc = storedClassDescriptors.get(name);
if (debug) log.debug("getFromStoredClassDescriptors() -> %s", iDesc);
return iDesc;
}
代码示例来源:origin: org.graniteds/granite-server
private void writeStoredObject(Object obj) throws IOException {
log.debug("Writing object reference for %s", obj);
dataOutput.write(AMF0Body.DATA_TYPE_REFERENCE_OBJECT);
dataOutput.writeShort((storedObjects.get(obj)).intValue());
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
public synchronized final void registerClasses(String destination, Class[] classes) {
log.debug("Register classes to \"" + destination + "\": " + Arrays.toString(classes));
final HashSet<Class> classHashSet = new HashSet<Class>();
Collections.addAll(classHashSet, classes);
if (destinationClasses.containsKey(destination)) {
destinationClasses.get(destination).addAll(classHashSet);
} else {
destinationClasses.put(destination, classHashSet);
}
}
代码示例来源:origin: org.graniteds/granite-server
public void close() {
RequestResponseKey key = this.key.getAndSet(null);
if (key != null) {
try {
key.getResponse().getOutputStream().close();
}
catch (Exception e) {
log.debug(e, "Could not close key: %s for channel: %s", key, this);
}
}
}
代码示例来源:origin: org.graniteds/granite-client-java-advanced
private void initCollection() {
log.debug("create collection");
first = 0;
last = 0;
count = 0;
initializing = true;
initComponent();
}
代码示例来源:origin: org.graniteds/granite-server-ejb
public void initGravity(Gravity gravity) {
try {
// Set reference in EJB proxy if found
InitialContext ic = new InitialContext();
org.granite.ejb.Gravity gravityEJB = (org.granite.ejb.Gravity)ic.lookup("java:global" + servletContext.getContextPath() + "/org.granite.ejb.Gravity");
gravityEJB.setGravity(gravity);
log.info("Registered Gravity EJB");
}
catch (Exception e) {
log.debug(e, "Gravity EJB not found");
}
}
代码示例来源:origin: org.graniteds/granite-server
public void setContinuation(Continuation continuation) {
log.debug("Setting continuation %s for client: %s", continuation, getId());
try {
if (this.continuation != null && this.continuation.isPending()) {
log.debug("Resuming previous continuation %s for client: %s", this.continuation, getId());
this.continuation.resume();
}
}
finally {
this.continuation = continuation;
}
}
代码示例来源:origin: org.graniteds/granite-client
public void uninitialize() {
loader.onUninitialize();
for (InitializationListener listener : initializationListeners)
listener.uninitialized(this);
log.debug("uninitialized");
}
代码示例来源:origin: org.graniteds/granite-server
public void onWebSocketClose(int closeCode, String message) {
log.debug("Channel %s websocket connection onClose %d, %s", getId(), closeCode, message);
this.session = null;
gravity.notifyDisconnected(this);
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Invalidate
public void stop() {
log.debug("Stop OSGiDestinationSimple: " + toString());
if (started) {
service.removeDestination(id);
started = false;
}
}
代码示例来源:origin: org.graniteds/granite-server
@Override
public boolean isConnected() {
log.debug("Channel %s websocket connection %s", getId(), session == null ? "(null)" : (session.isOpen() ? "(open)" : "(not open)"));
return session != null && session.isOpen();
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Invalidate
public void stop() {
log.debug("Stop OSGiDestinationAdapter: " + toString());
if (started) {
service.removeDestination(id);
started = false;
}
}
代码示例来源:origin: org.graniteds/granite-client
public void scan(Set<String> packageNames) {
if (packageNames != null && !packageNames.isEmpty()) {
RemoteAliasScanner scanner = Platform.getInstance().newRemoteAliasScanner();
Set<Class<?>> aliases = scanner.scan(packageNames);
for (Class<?> alias : aliases)
registerAlias(alias);
log.debug("Using remote aliases: %s", aliases);
}
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Invalidate
public void stop() {
log.debug("Stop OSGiChannelGranite: " + toString());
if (started) {
servlet.dispose();
servicesConfig.removeChannel(id);
started = false;
}
}
代码示例来源:origin: org.graniteds/granite-client
protected byte[] readAMF3ByteArray() throws IOException {
byte[] result = null;
int type = readAMF3Integer();
if ((type & 0x01) == 0) // stored object.
result = (byte[])getFromStoredObjects(type >> 1);
else {
result = readBytes(type >> 1);
addToStoredObjects(result);
}
if (debugMore) logMore.debug("readAMF3ByteArray() -> %s", result);
return result;
}
代码示例来源:origin: org.graniteds/granite-client
protected void writeAMF3Date(Date date) throws IOException {
if (debugMore) logMore.debug("writeAMF3Date(date=%s)", date);
write(AMF3_DATE);
int index = indexOfStoredObjects(date);
if (index >= 0)
writeAMF3IntegerData(index << 1);
else {
addToStoredObjects(date);
writeAMF3IntegerData(0x01);
writeDouble(date.getTime());
}
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Validate
public void start() {
log.debug("Start OSGiDestinationAdapter: " + toString());
if (service.findDestinationById(id) == null) {
service.addDestination(this);
started = true;
} else {
log.error("Destination \"" + id + "\" already registered");
}
}
内容来源于网络,如有侵权,请联系作者删除!